3
votes
0answers
128 views

How to tell if laptop was woken by rtc?

Say I set my laptop to wake every morning with rtcwake (e.g. echo $(date +%s 'tomorrow 08:00') > /sys/class/rtc/rtc0/wakealarm in a cron job or in /etc/pm/sleep.d/99-set-alarm.sh). Now, I'd like ...
2
votes
1answer
923 views

How to make the clock sync automatically after suspension of a Virtual Machine

I run Ubuntu 10.04 64-bit as a guest OS on a VMWare Player machine over Windows 7. I have the clock displayed in the panel and the location set to my time zone. Occasionally, I close VMWare Player ...
0
votes
3answers
142 views

Daemon wakeup via clock

I am writing a daemon (my first) and it needs to wake up every second and check a special piece of hardware. I have it checking the hardware, but how do I make it sleep, then wake on a specific ...