<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Support shutting down when pressing the twl4030_pwrbutton"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84201">84201</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Support shutting down when pressing the twl4030_pwrbutton
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gostrc@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>ARM
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=106696" name="attach_106696" title="udevadm info -a -p $(udevadm info -q path -n /dev/input/event0)">attachment 106696</a> <a href="attachment.cgi?id=106696&action=edit" title="udevadm info -a -p $(udevadm info -q path -n /dev/input/event0)">[details]</a></span>
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
<a href="http://cgit.freedesktop.org/systemd/systemd/tree/src/login/70-power-switch.rules">http://cgit.freedesktop.org/systemd/systemd/tree/src/login/70-power-switch.rules</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>