maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] EvilAlarm (https://talk.maemo.org/showthread.php?t=57137)

cpulvermacher 2011-01-28 00:10

Re: [Announce] EvilAlarm
 
Quote:

Originally Posted by x-lette (Post 929840)
caco3, the author of SleepAnalyser, already confirmed that he could implement the ability to start an external program as "alarm". Now it would be very kind if you could add some commandline switch to EvilAlarm so it could get triggered by SleepAnalyser (if there isn't already such cmdline switch).

There is, evilalarm --wakeup starts the alarm directly.
This combination with sleepanalyser sounds rather neat, might try it myself.

Char 2011-01-28 04:27

Re: [Announce] EvilAlarm
 
now if only you could add a way to prevent switching off the phone :P
dunno if that's possible, though

these days i just find myself turning off the phone when my alarm goes off as a last resort :(

cpulvermacher 2011-01-28 13:01

Re: [Announce] EvilAlarm
 
I've also been doing that :(
You can remove the "Turn off" item from power button menu and disable long press by editing /etc/mce/mce.ini (if you know what you're doing), but it's an imperfect solution.

caco3 2011-01-28 16:16

Re: [Announce] EvilAlarm
 
Hi all

SleepAnalyser 2.1 now supports an external alarm command.
Happy wake ups ;)


P.S.
My Off-Button menu has an entry "stop current application".
That seems to be the dirtiest cheat to stop evilalarm.
To stop that, you would need a daemon which restarts it again immediately...

Char 2011-01-28 17:18

Re: [Announce] EvilAlarm
 
Quote:

Originally Posted by caco3 (Post 930701)
Hi all

SleepAnalyser 2.1 now supports an external alarm command.
Happy wake ups ;)

thanks! just what i needed!
Quote:

P.S.
My Off-Button menu has an entry "stop current application".
That seems to be the dirtiest cheat to stop evilalarm.
To stop that, you would need a daemon which restarts it again immediately...
doesn't do a thing for me.. i mean, it seems to KILL something for sure but evilalarm stays put

ps, cpulvermacher, i know about removing the context menu item and disabling long press, but 1. as you said, it's an imperfect solution and 2. i'd land up pulling out my battery next! haha

a random idea but it's something like Resetti in Animal Crossing, some "punishment" to force-killing EvilAlarm when you boot the phone next...

cpulvermacher 2011-01-28 17:18

Re: [Announce] EvilAlarm
 
Quote:

Originally Posted by caco3 (Post 930701)
Hi all

SleepAnalyser 2.1 now supports an external alarm command.
Happy wake ups ;)


P.S.
My Off-Button menu has an entry "stop current application".
That seems to be the dirtiest cheat to stop evilalarm.
To stop that, you would need a daemon which restarts it again immediately...

That was quick :)

(When using evilalarm normally it launches a daemon that does just that. With --wakeup, you may want to use evilalarm's "disable multitasking" option, that will hide the "stop current task" entry. (Actually, it may still be there but it'll kill backgrounded apps...))

x-lette 2011-01-28 18:00

Re: [Announce] EvilAlarm
 
That's really great news, caco3! :)

@cpulvermacher: could you provide some information on how to best set up evilalarm when triggerd by command line?
First of all I'd like to be sure that all settings I once saved via GUI are applied to evilalarm next time when run from commandline, right? Or are there any settings that just apply to current session and don't get saved as default?
Are there any more cmdline switches?

cpulvermacher 2011-01-28 18:35

Re: [Announce] EvilAlarm
 
Quote:

Originally Posted by x-lette (Post 930761)
Or are there any settings that just apply to current session and don't get saved as default?

All settings are saved when you leave the settings dialog, nothing you need to pay special attention to :)

Quote:

Originally Posted by x-lette (Post 930761)
Are there any more cmdline switches?

No particularly useful ones. You can use --daemon to start a process that will start the alarm at the configured time. (note that evilalarm will only save the alarm time when activating it)

x-lette 2011-01-28 18:55

Re: [Announce] EvilAlarm
 
Wonderful! Now I'll try that combination of SleepAnalyser and Evilalarm. In a perfect world I would get woken up when in light sleep with an alarm that definitely doesn't let me sleep any further :)

caco3 2011-01-28 20:48

Re: [Announce] EvilAlarm
 
Quote:

Originally Posted by cpulvermacher (Post 930794)
No particularly useful ones. You can use --daemon to start a process that will start the alarm at the configured time. (note that evilalarm will only save the alarm time when activating it)

Please let me know how we start evilalarm the best from SleepAnalyser


All times are GMT. The time now is 08:09.

vBulletin® Version 3.8.8