RTC alams are working great for waking up my system when I want to record a program, but if I decide that I don't want my system to wake when it is scheduled to, I'm finding it hard to disable that previously scheduled alarm. I've tried:
sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm"
but when I subsequently do:
cat /proc/driver/rtc
The alarm has been changed to 5 minutes in the future.
I've also tried:
sudo sh -c "echo `date '+%s' -d '- 5 minutes'` > /sys/class/rtc/rtc0/wakealarm"
but that also moves the alarm to 5 minutes in the future (instead of the intended 5 mins in the past). For now I just unplug the laptop to disable the wake up, since it will not wake up a laptop on battery power. Any ideas of how to disable the RTC alarm? Thanks.