Your message dated Tue, 24 Apr 2007 17:39:42 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Add configuration entry for sleep button
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: acpid
Version: 1.0.4-5
Severity: wishlist
acpid contains a sample entry /etc/acpi/events/powerbtn , which shuts
down the system if the power button is pressed.
I propose to add a similar entry for the sleep button, which activates
suspend-to-RAM. That way the sleep button should automatically work on most
systems :-).
Add the following files to the package:
file /etc/acpi/sleepbtn.sh
---------cut-----------------
#!/bin/sh
# /etc/acpi/sleepbtn.sh
# Initiates suspend-to-RAM when the sleep putton has been
# pressed.
# If powersaved is running, let it process the acpi event
if pidof powersaved; then
exit 0
fi
sync # just to be safe :-)
# initiate suspend-to-RAM via sysfs interface
echo -n mem > /sys/power/state
---------cut-----------------
file /etc/acpi/events/sleepbtn
---------cut-----------------
# /etc/acpi/events/sleepbtn
# This is called when the user presses the sleep button and calls
# /etc/acpi/sleepbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button sleep.*" and "button/sleep.*" because
# of kernel changes.
event=button[ /]sleep
action=/etc/acpi/sleepbtn.sh
---------cut-----------------
--- End Message ---
--- Begin Message ---
Hi,
please install the acpi-support package which includes
scripts for this too.
Kind regards
Nico
--
Nico Golde - http://ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
pgpM6G0su2qLe.pgp
Description: PGP signature
--- End Message ---