[ubuntu-uk] wake up from suspend at a given time

Albert Vilella avilella at gmail.com
Sun Oct 8 10:48:23 BST 2006


I respond to myself:

Apparently the 2.6.17 (or older) kernels have a /proc/acpi/alarm interface:

date -d "5 minutes" +"%Y-%m-%d %H:%M:%S" > /proc/acpi/alarm
or
date -d "7 hours" +"%Y-%m-%d %H:%M:%S" > /proc/acpi/alarm

then use whatever is needed to send the computer to suspend:

/etc/acpi/sleep.sh

And newer kernels have a rtc-acpi module that does the same instead.

I haven't found out any way to elegantly hook up Rhythmbox to the wake
up process though. Any ideas?

Cheers,

    Albert.


On 10/7/06, Albert Vilella <avilella at gmail.com> wrote:
> Hi,
>
> Another thing that I've been investigating without much success.
>
> I am trying to set up the laptop to wake up from suspend, so that I
> can use it as an alarm clock and trigger Rhythmbox to play a song.
> Does anybody know how to do that?
>
> There used to be an "apmsleep" package for Linux that would wake up
> the laptop at a given time. But I guess nowadays that has to be done
> in acpi world...
>
> Any ideas?
>
>     Albert.
>



More information about the ubuntu-uk mailing list