Hi
Hope this is a quick one, i need to do two things now to finally get my media center waking up to record and shutting down (never got so far, im so close).
i can write a time in to the future to the /sys/class/rtc/rtc0/wakealarm, then hibernate (acpi-S4) and it will wake up as long as the bios RTC, and Hpet is disabled.
so only issue right now that
-
my ralink wifi card driver is dead on resume - just a simple rmmod and modprobe brings back the wlan0 interface and all is connected up fine again. - how can i script it? i looked at duplicating a ‘hook’ file to do just this looking at the pm-utils docs but and i coped it from a file that was already there, (/etc/pm/sleep.d/99at), but that crashes when the hibernate starts.
-
i need to finish my config, which would be for a normal user to run a script i have created to set the rtc time called /usr/bin/wakeup.sh, and being able to run the /usr/sbin/pm-hibernate, so they can then S4 the system ready for the next wakeup. can anyone please bang out a sudoers line to add to the file as i am seriously **** at them!
cheers