Package: acpitool Version: 0.4.0-1 Severity: normal
Hello, Both suspend to ram and suspend to disk from acpitool, function correctly. Except for this issue: When suspending to ram my laptop with acpitool -s, everything goes right until I resume (by pressing powerbutton or opening screen cover): then the laptop resumes but immediately it shutdowns. This happens because acpid reads a powerbutton pressed event, and therefore it causes the /etc/acpi/powerbtn.sh script to be run, which in turn forces a computer shutdown. - Not sure if this bug should be acpid's, instead. - - Also, I think this bug might be related to bug #334788. - Anyway, acpid's behaviour seems somewhat consistent to me, as - in fact - the powerbutton is pressed (must be pressed) to resume from suspend to ram. Therefore, I think that the point here is that acpid should be aware of being in a "special case", when resuming from suspend to ram. So, I came up with a workaround: - The main idea is creating a stamp file in /var/run right before entering suspend, and making powerbtn.sh script to check if that file exists, before calling shutdown. If the file exists, we are in suspend "special case" and do nothing. - I have renamed powerbtn.sh to powerbtn.sh.old, and created a new powerbtn.sh with the following contents: #!/bin/bash # # Replaces original powerbtn.sh for handling ACPI suspend mode # correctly # acpisuspend -c && /etc/acpi/powerbtn.sh.old - acpisuspend is a wrapper script around acpitool, which allows me to call suspend modes (-s|-S options), and also check if we are in suspend process (-c option). acpisuspend -c returns false if the stamp file exists. This acpisuspend script is also responsible for creating the stamp file in /var/run, so we can keep track of suspend process. I include attached all the files that make this workaround. Suspend to disk (hibernate) causes no issues. My laptop model is: HP Pavilion ze4944ea (Intel Centrino 1.4Ghz) Regards, Daniel R. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages acpitool depends on: ii libc6 2.3.5-13 GNU C Library: Shared libraries an ii libgcc1 1:4.0.2-9 GCC support library ii libstdc++6 4.0.2-9 The GNU Standard C++ Library v3 Versions of packages acpitool recommends: ii acpid 1.0.4-5 Utilities for using ACPI power man -- no debconf information
acpisuspend.tar.gz
Description: Binary data