LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   ACPI hibernate mode (linux 2.4.22, Mandrake 9.2, Dell Inspiron 1100) (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/acpi-hibernate-mode-linux-2-4-22-mandrake-9-2-dell-inspiron-1100-a-266193/)

arvind_s 12-14-2004 03:04 AM

ACPI hibernate mode (linux 2.4.22, Mandrake 9.2, Dell Inspiron 1100)
 
I have ACPI running on Mandrake 9.2 with 2.4.22 linux kernel on Dell Inspiron 1100. The Klaptop battery manager shows my battery status right; however, ACPI is not setup on it with commands to standby, suspend, or hibernate. Writing to /proc/acpi/sleep does work for a couple of sleep states (1 and 4, the latter only sometimes) from command prompt with me as root.

I have related questions:

- Adding these commands to the Klaptop manager ACPI interface for sleep and hibernate ("echo 1 >/proc/acpi/sleep", and "echo 4 >/proc/acpi/sleep") has no effect when I attempt to sleep/hibernate from its menu. I assume this has to do with with with user process not being permitted to open a file pipe /proc/acpi/sleep in write mode (I get that error message when attempting it from a command prompt as a user process).

I tried making up a single line script with suid enabled as root having just these single line commands, and then running them as an ordinary user -- the file permissions didn't work then either (is suid disabled by default?)

Can anyone advice on how to instruct ACPI to do how to standby/suspend/hibernate?


- Hibernate with "echo 4 >/proc/acpi/sleep" sometimes doesn't work -- the attempt to store process state stalls and I get back to my linux mandrake. Anyway to fix this?

Besides, hibernating on my system takes very very long (like 5mins or so), though resume works fine. Any ideas on how to make it faster? I currently have about 2GB of swap space -- to me, it looks like it should suffice. Or is it too small?


- Do people advice any other method of suspending/hibernating my system? I looked at software-suspend, but it seems like no longer available on my relatively old kernel -- besides, the Mandrake kernel version I have seems so patched (2.4.22-10mdk), patches meant for 2.4.22 won't work on my system.


Thanks a lot!
Arvind


All times are GMT -5. The time now is 11:00 PM.