plugin suggestion: sleeptimer/alarm clock

Discussion about user contributed plugins

Moderator: Moderator

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Postby lorenzodes » Thu Apr 17, 2008 5:25 pm

I don't have /sys/class/rtc/rtcN/wakealarm here, apparently this box is not timed wakeup capable.
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Thu Apr 17, 2008 6:28 pm

lorenzodes wrote:I don't have /sys/class/rtc/rtcN/wakealarm here, apparently this box is not timed wakeup capable.

try with:

Code: Select all

modprobe rtc-cmos

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Postby lorenzodes » Thu Apr 17, 2008 6:31 pm

castorinop wrote:
lorenzodes wrote:I don't have /sys/class/rtc/rtcN/wakealarm here, apparently this box is not timed wakeup capable.


try with:

Code: Select all

modprobe rtc-cmos


As I said, it is not timed-wakeup capable, i.e. it doesn't power on :P

Script looks fine though, you can submit it.
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Sat Apr 19, 2008 12:50 am


User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Mon Apr 21, 2008 12:14 pm

Uatschitchun wrote:* ClockAlarms shouldn't be installed into /etc/mms for /etc is only writeable by root ... better would be ~/.mms/

if only for mms can run without any problem. the plugin should be store the alarms configuration into homedir()/ClockAlarms.
Uatschitchun wrote:* clock/alarm-plugin only is installable together with n-a ... shouldn't that be changed somehow?
good suggestion.
Uatschitchun wrote:* /proc/acpi/alarm is owned by root here ... so alarm.sh has to be called as root, too? How would this be working with non-root user?

2 ideas in mind:
* udev rules: example:

Code: Select all

KERNEL=="alarm", MODE="0666"

* script alarm and sudo:

Code: Select all

sudo sh -c 'echo "$@" > /proc/acpi/alarm'
and add your user into sudoes

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Mon Apr 21, 2008 9:42 pm


User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Tue Apr 29, 2008 11:50 am

@arj: you consider merge this feature into mainline ?

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Tue Apr 29, 2008 4:58 pm

Sure. I'll have a look at it. Thanks!

User avatar
frosch
Posts: 70
Joined: Mon Feb 25, 2008 2:06 pm
Location: Germany

Postby frosch » Tue Jul 22, 2008 8:26 pm

if I set a alarm event to 06:59:00,
why is the plugin fetching 07:57:00 to
/usr/lib/mms/alarm.sh ??

I understand this 2 minutes for starting up the computer
but what is this +1h?
My system is running local time,
the motherboard is running UTC (-2h)...

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CC/IT d- s+:- a+ C++(+++) UL+> P L++> E- W+++ N+ o-- K- w O- M- !V-- PS+++ PE+ Y+ PGP++ t+ 5@ X? R tv- b++(+++) DI-? D---- G++ e* h---- r- y+++
------END GEEK CODE BLOCK------

User avatar
castorinop
veteran
Posts: 331
Joined: Wed Jun 07, 2006 6:34 pm
Location: Argentina
Contact:

Postby castorinop » Fri Aug 01, 2008 1:04 pm

frosch wrote:if I set a alarm event to 06:59:00,
why is the plugin fetching 07:57:00 to
/usr/lib/mms/alarm.sh ??

I understand this 2 minutes for starting up the computer
but what is this +1h?
My system is running local time,
the motherboard is running UTC (-2h)...


maybe convert to utc hour into alarm.sh


Return to “user plugins”

Who is online

Users browsing this forum: No registered users and 2 guests