FS#30003 - [acpid] handler.sh takes precedence over custom event handlers.

Attached to Project: Community Packages
Opened by Nolan (sneakin) - Thursday, 24 May 2012, 12:34 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 25 May 2012, 11:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: acpid's handler.sh takes precedence over custom event handlers. It seems as though the "anything" event handler gets called in addition to custom handlers. Now I can't make the power button suspend and NOT shutdown.


Additional info:
* package version(s): latest in repository
* config and/or log files etc.


Steps to reproduce:
1. Create /etc/acpid/events/power so it contains:

event=button/power
action=pm-suspend

2. Restart acpid
3. Press power button
4. Expect suspend, got suspend followed by shutdown

I noticed an explicit call to `power-off`was added to handler.sh. My assumption that custom handlers override may be wrong.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Friday, 25 May 2012, 11:53 GMT
Reason for closing:  Not a bug
Comment by Sébastien Luttringer (seblu) - Friday, 25 May 2012, 11:53 GMT
Each handler receive defined acpi events.

Modifiy the default handler. Replace poweroff in handler.sh by what you want to do. This is pure configuration.

Loading...