Bug 83397

Summary: Reminder daemon should use acpi to wake up
Product: [Frameworks and Libraries] Reminder Daemon Reporter: Andreas Bayer <angel_azrael>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: gjditchfield, marc.mengel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Bayer 2004-06-15 01:42:57 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Debian testing/unstable Packages

It would be cool, if my notebook would wake up to remind my of a alarm and will go back to suspend after programming the next alarm.
Comment 1 Reinhold Kainhofer 2006-11-02 19:27:08 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 2 Marc Mengel 2010-02-10 17:44:39 UTC
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.
Comment 3 Allen Winter 2020-03-21 16:17:49 UTC
No worries. I'm simply moving these from the korgac product to korganizer::reminder .  sorry for the noise but I want to have all the reminder bugs located in the same place.
Comment 4 gjditchfield 2022-05-20 02:14:31 UTC

*** This bug has been marked as a duplicate of bug 280853 ***