Active Topics

 



Notices


Reply
Thread Tools
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#111
Originally Posted by evad View Post
UPDATE: GOT IT!
In /opt/alarmed/tweakrprofileswitcher.sh script I've changed first line from #!/bin/bash to #!/bin/ash - and now switching profiles works (even without a need to create a custom tweakrprofileswitcher.sh command)! Woohoo!
Dude you're a genius. Thanks a lot for figuring this one out. I read your bug report and started pondering over the problem again, because it was soo weird and random. I'll make the changes in the package and upload an update soon so everyone can profit.
Thanks again ^^

edit:
Package updated and tested, should work for everyone now?

though this doesn't explain why your syncevolution command runs fine manually but not from the alarmd_queue.ini... :| I *could* remove the '/bin/ash -c' prefix but I think that this would break commands that have stuff like '>>' in them and things.

Last edited by shapeshifter; 2010-03-27 at 09:45.
 

The Following 3 Users Say Thank You to shapeshifter For This Useful Post:
Posts: 642 | Thanked: 486 times | Joined on Aug 2008
#112
Originally Posted by shapeshifter View Post
Dude you're a genius. Thanks a lot for figuring this one out. I read your bug report and started pondering over the problem again, because it was soo weird and random. I'll make the changes in the package and upload an update soon so everyone can profit.
Thanks again ^^
in total this is in 5 files in total i.e. all the .sh files, a quick cat and grep showed this, so you need to change them also. mine wasnt working now it does!!!
 
grog's Avatar
Posts: 546 | Thanked: 85 times | Joined on Feb 2008 @ Winnipeg, Canada
#113
Originally Posted by shapeshifter View Post
Package updated and tested, should work for everyone now?
Works for me. I can even switch to/from Silent & General. Good work!!! TX
__________________
GROG!
N900 | ZAGG Body Armour | 16Gb A-DATA micro-sd
N810 | 2 x Patriot 8gb mini-SD | Boxwave Crystal Clear SS | Black Aluminum case | OTG dongle
N800 | 2 x 8gb OCX SD | Boxwave Anti-glare SS | PDAir book-style case
Holux M-1200 bluetooth GPS | iGo 4-row bluetooth keyboard | Linksys USB 10/100 ethernet | Plantronics Voyager 855 BT Headset
 

The Following User Says Thank You to grog For This Useful Post:
Posts: 180 | Thanked: 41 times | Joined on Mar 2007 @ Maine
#114
I have been lurking on thread for a while trying to figure out why alarmed wasn't working for me either, now it is working. Yes!!! Unfortunately, I am not a Linux maven and I am struggling to come up with a script that will reboot the phone which I want to use alarmed to trigger.

1) I couldn't get the dbus-send approach to work, I don't know why
2) You need to be root to run the reboot command and someone shot down the idea of having a checkbox in alarmed to run the command as root due to security concerns...not sure who cares about that since the phone is always with me and I have not installed openssh but maybe I am missing something
3) I tried 'rootsh reboot' and got some weird pop-up message that rootsh was no longer trusted (I forget the exact wording)

Sorry for the off topic rant, I got carried away. Thanks for alarmed, now that it switches profiles for me, I can remove system event scheduler.

Cheers,
Fred
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#115
Originally Posted by ffarber View Post
I am struggling to come up with a script that will reboot the phone which I want to use alarmed to trigger.
I just tried 'sudo reboot', and it seems to work. I also tried it as a comman execution and it's allright. I'm guessing rootsh needs to be installed for this anyway. But it seems to work. You might wanna try this.
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.
 
tokag's Avatar
Posts: 78 | Thanked: 69 times | Joined on Jan 2010 @ Alaska
#116
very nice app man. super useful, i thank you. my only suggestion for improvement is to add a link in the "extras" sections of the settings menu. otherwise, good stuff. thanks again.
 

The Following User Says Thank You to tokag For This Useful Post:
Posts: 180 | Thanked: 41 times | Joined on Mar 2007 @ Maine
#117
Originally Posted by shapeshifter View Post
I just tried 'sudo reboot', and it seems to work. I also tried it as a comman execution and it's allright. I'm guessing rootsh needs to be installed for this anyway. But it seems to work. You might wanna try this.
Thanks, I had tried that from xtrerminal and it asks for a password (I forgot to mention that in my prior post) but I will try again.

Fred
 
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#118
Originally Posted by shapeshifter View Post
edit:
Package updated and tested, should work for everyone now?
Works ok for me.

though this doesn't explain why your syncevolution command runs fine manually but not from the alarmd_queue.ini... :| I *could* remove the '/bin/ash -c' prefix but I think that this would break commands that have stuff like '>>' in them and things.
Does it make a difference that in this case /bin/ash is actually trying to execute a python app/script? Doesn't that conflict in some way?

I did workaround this, tough. Instead of executing /opt/syncevolution/sync.py I do /usr/bin/syncevolution - actual syncevolution application (sync.py is just a front-end for syncevolution). This way my syncing via alarmed works ok.

Generally, I rather wouldn't automatically insert any command execution prefixes as you do with /bin/ash -c 'command-entered-by-user' - if one user is savvy enough to schedule a custom command, he/she should type command exactly as it should run.

General suggestions/wishlist to Alarmed
Since it gladly works as I expected, here's couple of my suggestions to the app:
  • Add ability to disable/enable specific jobs, instead of deleting/adding them.
  • Automatically remove single-run jobs, ie. "alarm in 5 minutes" - add option to delete that job once it goes off.
  • On the jobs list only display name of job given by user (currently job descriptions, especially those based on cron syntax are painfully long).
  • Add more built-in functions, ie. launching device backup (suggested by someone before), (dis)connect cellular/wifi adapters, switch 2G/3G modes, change telepathy accounts online/offline statuses etc.
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________

Last edited by evad; 2010-03-28 at 00:44. Reason: Added suggestions
 

The Following User Says Thank You to evad For This Useful Post:
Posts: 74 | Thanked: 25 times | Joined on Jan 2010 @ Hong Kong, CHINA
#119
Is it just me, or are other people getting this too?

Code:
# apt-get -y install alarmed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  alarmed: Depends: pyside-qt4-core but it is not going to be installed
           Depends: pyside-qt4-maemo5 but it is not going to be installed
           Depends: pyside-qt4-gui but it is not going to be installed
E: Broken packages
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#120
Originally Posted by mdengler View Post
Is it just me, or are other people getting this too?

Code:
# apt-get -y install alarmed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  alarmed: Depends: pyside-qt4-core but it is not going to be installed
           Depends: pyside-qt4-maemo5 but it is not going to be installed
           Depends: pyside-qt4-gui but it is not going to be installed
E: Broken packages
I've not had that exact issue, but I can see that the pyside-qt4 packages are being held back from updating. This is due to the autobuilder using the new PR1.2 SDK to build the packages, meaning they're not compatible with the PR1.1.1 phones. You'll either need to get hold of older versions of the dependencies, build them yourself using the older SDK, or wait for PR1.2 to be released.
 

The Following 3 Users Say Thank You to Rob1n For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:03.