Package: acpid Version: 1.0.4-5 Severity: normal Hello,
thanks for packaging acpid! In my system (ASUS M2000 laptop), after resuming from a suspend I get a powerbutton event (probably intending to mean that the power has been switched on). However, that calls powerbtn.sh which shuts down the machine right away. I solved this by changing powerbtn.sh this (very crude) way: #!/bin/sh # /etc/acpi/powerbtn.sh # Initiates a shutdown when the power putton has been # pressed. logger "Power button has been pressed" exit 0 if ps -Af | grep -q '[k]desktop' && test -f /usr/bin/dcop then dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0 else /sbin/shutdown -h now "Power button pressed" fi Another technique I've heard from another person with the same problem (Georg Greve, IIRC) is to touch a file on unsuspend and check its age in powerbtn.sh. Matthew Garrett told me that that requires extra care, as a file in /tmp can be created and continuously touched by any user and that would allow unauthorised people to prevent the machine for shutting down. Matthew will probably followup with more insight. Ciao, Enrico -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-686 Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Versions of packages acpid depends on: ii libc6 2.3.6-1 GNU C Library: Shared libraries an acpid recommends no packages. -- debconf information: acpid/noacpi: acpid/modules: ac processor battery button fan thermal -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]