[Korganizer-devel] [Bug 83397] korgac should use acpi to wake up
Marc Mengel
marc.mengel at gmail.com
Wed Feb 10 17:44:42 CET 2010
https://bugs.kde.org/show_bug.cgi?id=83397
Marc Mengel <marc.mengel at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.mengel at gmail.com
--- Comment #2 from Marc Mengel <marc mengel gmail com> 2010-02-10 17:44:39 ---
I've got this working on my netbook now, based on the info from the
mythTV folks:
http://www.mythtv.org/wiki/ACPI_Wakeup
I'm currently doing it externally in a cron job, using the following
script:
----------------cut here--------------------
#!/bin/sh
delta=960
nextevent=`konsolekalendar --next --export-type=csv |
sed -e 's/"\([^,]*\)","\([^,]*\)",.*/\1 \2/'|
grep 'm$' |
head -1`
nextevent=`date --date="$nextevent" "+%s"`
nextevent=`expr $nextevent - $delta`
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $nextevent > /sys/class/rtc/rtc0/wakealarm
----------------cut here--------------------
This wakes up the laptop 16 minutes (960 seconds) before the next
calendar event.
To setup for this I had to make /sys/class/rtc/rtc0/wakealarm
be writable, and disable the systohwclock calls as per the mythTV
discussion.
In a proper setup, we would update the hardware clock and then set
the wakeup alarm whenever we either start the reminder daemon, or
whenever we alarm something, or whenever a new alarm comes in.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Korganizer-devel
mailing list