[ltp] Isthere a T41 or T42 model which NEVER has ACPI drain problems
???
Bob Alexander
linux-thinkpad@linux-thinkpad.org
Sat, 29 Jan 2005 20:02:41 +0100
Mark W. Jeanmougin wrote:
> It "feels" like a 2:1 loss of time. For every 10 minutes of wall time
> that go by, my T42 thinks 20 have gone by. Right now (11a on Sat 29 Jan
> 05), my machine thinks it's 04:13 Sun 30 Jan 05.
>
> So, did anyone else have issues with machines fast forwarding while
> sleeping? Any ideas on where to start?
>
> I'm new to the list, so if I missed something obvious, please be
> gentle! :)
>
> Thanks,
>
> MJ
>
>
Yes,
quite FAQ ... so look through the archives and you will probably find
the solution.
FWIW here is my gotosleep script and you will see two lines which use
hwclock ... :)
#!/bin/sh
/usr/local/bin/radeontool light off
if lsmod | grep '^usbhid' >/dev/null ; then
/sbin/modprobe -r -s usbhid
fi
if lsmod | grep '^uhci_hcd' >/dev/null ; then
/sbin/modprobe -r -s uhci_hcd
fi
if lsmod | grep '^ehci_hcd' >/dev/null ; then
/sbin/modprobe -r -s ehci_hcd
fi
logger "Fn+F4 Suspending to RAM"
sync
hwclock --systohc
#echo -n mem > /sys/power/state
echo -n 3 > /proc/acpi/sleep
hwclock --hctosys
if !(lsmod | grep '^ehci_hcd') >/dev/null ; then
/sbin/modprobe -s ehci_hcd
fi
if !(lsmod | grep '^uhci_hcd') >/dev/null ; then
/sbin/modprobe -s uhci_hcd
fi
if !(lsmod | grep '^usbhid') >/dev/null ; then
/sbin/modprobe -s usbhid
fi
logger "Resuming from Fn+F4 Suspending to RAM"
/usr/local/bin/radeontool light on
HTH,
Bob