[Bug 187128] Re: Change /etc/init.d/hwclock.sh to enable RTC alarm in BIOS
Thomas Hotz
thomas.hotz at gmail.com
Thu Nov 22 08:24:36 UTC 2012
** Changed in: util-linux (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/187128
Title:
Change /etc/init.d/hwclock.sh to enable RTC alarm in BIOS
Status in “util-linux” package in Ubuntu:
Incomplete
Bug description:
I had a problem with RTC alarm in BIOS in Ubuntu 7.10 and 8.04 alpha3,
finally solved thanks to
http://www.mythtv.org/wiki/index.php/ACPI_Wakeup#Disable_hwclock_updates_.28FUSSY_BIOS.29
Quote:
Most linux distributions write the current system time back to the bios when shutting down the machine. Some BIOSes refuse to wake up if the hardware clock is modified after the alarm timer has been set. To avoid that the current system time is written back to the hardware clock it required to change your startup scripts.
...
Ubuntu & Debian
modifying /etc/init.d/hwclock.sh with the following will fix this
problem:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/187128/+subscriptions
More information about the foundations-bugs
mailing list