Package: acpi-support Version: 0.138-9 Severity: wishlist Hi!
I recently found out that some machines have bugs that can send the acpi events twice, this should problably be fixed on the BIOS if the problem is on their ACPI code (but we know how most makers work on this regard), sometimes the problem is that the user (or his/her baby) presses the button several times thinking that it hasn't worked the first time, on any of this cases if the event was to hibernate you'll get an hibernation and then as many as the events that have been generated on waking up. I believe that adding some locking mechanism on the event handling code on the scripts could easily solve this processing for example just one button at the same time or one button of the same kind at the same time. I have done some testing about this, my code being somthing like this... if lockfile -r0 /etc/acpi/powerbtn.lock then pm-hibernate # this needs to be run on the background otherwise events will not be # processed while the lock is on and just wait for us to finish ( sleep 2 ; rm -f /etc/acpi/powerbtn.lock ) & fi and found it to work perfectly, even though I would press the button lots of time while we were hibernating. Another thing I'd like to see is that the hibernate.sh script should include the same screen locking code that the suspend script has right now, I never understook why one has that code and the other doesn't. Thanks in advance. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/1 CPU core) Locale: LANG=gl_ES.UTF-8, LC_CTYPE=gl_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages acpi-support depends on: ii acpi-fakekey 0.138-9 tool to generate fake key events ii acpi-support-base 0.138-9 scripts for handling base ACPI eve ii acpid 1:2.0.12-1 Advanced Configuration and Power I ii lsb-base 3.2-28 Linux Standard Base 3.2 init scrip ii pm-utils 1.4.1-8 utilities and scripts for power ma ii x11-xserver-utils 7.6+3 X server utilities Versions of packages acpi-support recommends: ii dbus 1.4.14-1 simple interprocess messaging syst pn radeontool <none> (no description available) pn vbetool <none> (no description available) ii xscreensaver 5.14-1 Automatic screensaver for X Versions of packages acpi-support suggests: pn rfkill <none> (no description available) pn xinput <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org