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

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



John M Flinchbaugh 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


Something I missed. echo 4 >/proc/acpi/sleep indeed does so. Then what? You power down? With the button? I reboot with resume=/dev/hda13 in the boot cmdline and linux complains about not being shutdown right, and he cycles through all the steps anyway.

H.







Reply to: