[ltp] Re: How to turn your T42p into a brick with ACPI...

Shannon McMackin linux-thinkpad@linux-thinkpad.org
Mon, 11 Apr 2005 00:18:25 -0400


This is a multi-part message in MIME format.
--------------080507040603020603000401
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit



David A. Desrosiers wrote:
>>And on the basis that you said a 30-45 second resume time was 
>>absolutely unacceptable to you, I suggest you abandon looking at it 
>>anyway.
> 
> 
> 	Having to disassemble the laptop to remove the backup battery 
> at every suspend is even more unacceptable. I'd be willing to give the 
> 45-second bootup a try, if it worked on my laptop... it doesn't, so 
> that's not even an option, even if it was a 1-second bootup. 
> 
> 
> 
> David A. Desrosiers
> desrod@gnu-designs.com
> http://gnu-designs.com

Now that I'm back, did I miss something?  Have you tried swsusp2 and 
found it would not work?  I find that hard to believe.

What may not work is that you don't want to patch a new kernel everytime 
you get a new one which seems to be often.  Given that I understand.

For suspend to ram with ACPI, I unload a few modules prior to the 
suspend and it works well for me.  This does not require swsusp2. 
Here's my lid script that works for me:

> #!/bin/sh
> # Stop WECM service
> service ibm-wclient stop
> # Flush all changes to disk
> sync
> # Sync hardware clock to system clock
> hwclock --systohc
> # Unload USB
> modprobe -r uhci_hcd
> modprobe -r ohci_hcd
> # Unload WiFi
> modprobe -r ath_pci
> # Go to sleep
> echo 3 > /proc/acpi/sleep
> # On wake, put everything back
> hwclock --hctosys
> modprobe uhci_hcd
> modprobe ohci_hcd
> modprobe ath_pci
> service ibm-wclient start

HTH...

Shannon

--------------080507040603020603000401
Content-Type: text/x-vcard; charset=utf-8;
 name="mcmackin.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="mcmackin.vcf"

begin:vcard
fn:Shannon McMackin
n:McMackin;Shannon
adr;dom:;;;Front Royal;VA
email;internet:mcmackin@earthlink.net
title:RHCE
version:2.1
end:vcard


--------------080507040603020603000401--