Bug 84201

Summary: Support shutting down when pressing the twl4030_pwrbutton
Product: systemd Reporter: Thomas Dziedzic <gostrc>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: ARM   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: udevadm info -a -p $(udevadm info -q path -n /dev/input/event0)

Description Thomas Dziedzic 2014-09-22 21:51:34 UTC
Created attachment 106696 [details]
udevadm info -a -p $(udevadm info -q path -n /dev/input/event0)

Current Behavior:
When pressing the power switch, my system does not shut down.

Expected Behavior:
The system should shut down.

Fix:
I had to add the following line to http://cgit.freedesktop.org/systemd/systemd/tree/src/login/70-power-switch.rules

SUBSYSTEMS=="input", ATTRS{name}=="twl4030_pwrbutton", TAG+="power-switch"

Additional Info:
I don't know if I used the best attributes so I attached the output for
udevadm info -a -p $(udevadm info -q path -n /dev/input/event0)

Please let me know the best course of action is.
I can provide a patch if you would like.
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-09-23 02:17:35 UTC
Thank you for the report. I added your rule with a small modification in http://cgit.freedesktop.org/systemd/systemd/commit/?id=58d4aabedd.

BTW, 'udevadm info -a /dev/input/event0' now also works.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.