[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how can I put an acpi laptop to sleep?



Hi.  The software suspend  help in the kernel says to use swsusp to
suspend the machine and in that same area it gives a big warning about
enabling the sleep states -- is this warning no longer accurate and
where do I get swsusp?


Thanks.

on Thu, 9 Dec 2004 11:10:16 -0500 John M Flinchbaugh <glynis@butterfly.hjsoft.com> wrote:

> On Thu, Dec 09, 2004 at 07:10:58AM -0600, Hugo Vanwoerkom wrote:
>> >>Hi.  I have an IBM thinkpad and I installed Debian on it and got a
>> >>daemon called sleepd -- however it wants a command to actually put the
>> >>machine to sleep. Its default was apm -s which of course never worked
>> >>because the machine is an acpi machine.
>> >>
>> >>Any suggestions will be appreciated.
>> >>
>> >Maybe you want to have a look at this:
>> >http://softwaresuspend.berlios.de/
>> Anyone with experience of using this vs. the 2.6 native option?
>
> i just use the native 2.6 swsusp and acpi with my r40.
>
> for the command, i just coded a little script that ultimately calls:
> echo 4 > /proc/acpi/sleep
> and i've added bits along the way, like resetting the clock, disabling
> laptop mode, etc.
>
> here's most my script:
> #!/bin/sh
> chvt 12 # since i like to watch
>
> /etc/init.d/laptop-mode stop
> /etc/init.d/hwclock.sh stop
>
> echo 4 > /proc/acpi/sleep
>
> /etc/init.d/hwclock.sh start
> /etc/init.d/laptop-mode start
> -- 
> ____________________}John Flinchbaugh{______________________
> | glynis@hjsoft.com         http://www.hjsoft.com/~glynis/ |
> ~~Powered by Linux: Reboots are for hardware upgrades only~~

-- 
         John Covici
         covici@ccs.covici.com



Reply to: