|
|
|
286
   
Group: Forum Members
Last Login: Today @ 00:06:58
Posts: 451,
Visits: 1,864
|
|
I'm trying to get my computer to automatically wake up at a certain time every day. The bios supports this, and I have seen it work after powering off the machine before os boots. However, after a clean shutdown, the machine steadfastly refuses to wake.
Any ideas?
Using ubuntu 7.10 x64 on a gigabyte GA-P35-S3G
|
|
|
|
|
486
   
Group: Forum Members
Last Login: Yesterday @ 21:47:58
Posts: 1,226,
Visits: 3,122
|
|
This is a BIOS setting, and normally the OS should not affect it.
However, if ACPI is being turned off by the OS, that could stop it working on a warm boot.
Try shutting down and unplugging it, then plugging it back in.
If it works on a cold boot, that is the issue.
*************
*************
The sig between the asterisks is SO COOL that ONLY REALLY COOL people can even see it!
|
|
|
|
|
286
   
Group: Forum Members
Last Login: Today @ 00:06:58
Posts: 451,
Visits: 1,864
|
|
Yes, the OS does seem to be affecting it.
Once set and saved, in the BIOS - if the machine is switched off before OS boots (and shuts down), it will work.
I did see somethings related to this on a mythubuntu thread. I'll check it out later - I was just hoping for a quick (lazy?) fix.
|
|
|
|
|
286
   
Group: Forum Members
Last Login: Today @ 00:06:58
Posts: 451,
Visits: 1,864
|
|
This is what I found. I'm hoping it will be the solution, but I'm being a bit dense about how to implement it. Do I simply add the text to the file at the correct place or should I replace any of the original file?
Found on http://www.mythtv.org/wiki/index.php/ACPI_Wakeup
modifying /etc/init.d/hwclock.sh with the following will fix this problem:
/etc/init.d/hwclock.sh
.........
stop|restart|reload|force-reload)
==> ACPITIME=`cat /proc/acpi/alarm`
if [ "$HWCLOCKACCESS" != no ]
then
if [ "$VERBOSE" != no ]
then
echo "Saving the System Clock time to the Hardware Clock..."
fi
[ "$GMT" = "-u" ] && GMT="--utc"
/sbin/hwclock --systohc $GMT $BADYEAR
if [ "$VERBOSE" != no ]
then
echo "Hardware Clock updated to `date`."
fi
==> echo "$ACPITIME" > /proc/acpi/alarm
|
|
|
|
|
486
   
Group: Forum Members
Last Login: Yesterday @ 21:47:58
Posts: 1,226,
Visits: 3,122
|
|
No, that is just a time update between the RTC and the system clock.
What you need is a program called nvram-wakeup, I think.
This link talks about it, for MythTV
*************
*************
The sig between the asterisks is SO COOL that ONLY REALLY COOL people can even see it!
|
|
|
|
|
286
   
Group: Forum Members
Last Login: Today @ 00:06:58
Posts: 451,
Visits: 1,864
|
|
Sorted.
I was on the right track, only I inserted the whole chunk of code rather than just the two highlighted lines.
I think the nvram stuff is for earlier kernel versions.
|
|
|
|