Bug 84201 - Support shutting down when pressing the twl4030_pwrbutton
Summary: Support shutting down when pressing the twl4030_pwrbutton
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: ARM Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 21:51 UTC by Thomas Dziedzic
Modified: 2014-09-23 02:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
udevadm info -a -p $(udevadm info -q path -n /dev/input/event0) (1.52 KB, text/plain)
2014-09-22 21:51 UTC, Thomas Dziedzic
Details

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.