<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Make sure LID_SWITCH_RELIABILITY=write_open is useful"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101099">101099</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Make sure LID_SWITCH_RELIABILITY=write_open is useful
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>libinput
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>benjamin.tissoires@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>See the 3 top commits of <a href="https://github.com/bentiss/libinput">https://github.com/bentiss/libinput</a>
We were not able to trigger the required conditions to have the switch
overwritten by libinput.
I haven't finished writing the tests, but:
- an assert is raised with the current code when
* a keyboard gets paired with the lid switch
* the lid switch node report closed while it is physically opened
* a key gets pressed on the paired keyboard, which opens the lid switch
* the keyboard gets unplugged (on the Surface 3, closing the cover removes
the attached USB devices)
- we can't start observing keyboard events is the state is reported as opened
by evdev-lid.c
- we need to start listening to the events when pairing the keyboard if the
reported state is "closed"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>