<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:peter.hutterer@who-t.net" title="Peter Hutterer <peter.hutterer@who-t.net>"> <span class="fn">Peter Hutterer</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - LID_SWITCH_RELIABILITY=write_open doesn't work"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102039">bug 102039</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>NEEDINFO
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - LID_SWITCH_RELIABILITY=write_open doesn't work"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102039#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - LID_SWITCH_RELIABILITY=write_open doesn't work"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102039">bug 102039</a>
              from <span class="vcard"><a class="email" href="mailto:peter.hutterer@who-t.net" title="Peter Hutterer <peter.hutterer@who-t.net>"> <span class="fn">Peter Hutterer</span></a>
</span></b>
        <pre>Post the top of libinput-debug-events --verbose please, that should show if
libinput pairs the switch correctly. The obvious question too: are you typing
or using the touchpad?

(In reply to Jason D. Clinton from <a href="show_bug.cgi?id=102039#c3">comment #3</a>)
<span class="quote">> When closing the lid, suspending, opening the lid and resuming (all with the
> HWDB change above enabled), only the lid close event shows up:

> $ sudo libinput-debug-events --device /dev/input/event0 
> WARNING: This compatibility wrapper will be removed in the future. Please
> run 'libinput debug-events' instead
> -event0   DEVICE_ADDED     Lid Switch                        seat0 default
> group1  cap:S
>  event0   SWITCH_TOGGLE     +7.30s switch lid state 1
> ^C</span >

this cannot work. libinput relies on other devices (keyboard, touchpad) to send
events and thus signal that the lid is open. If you init libinput this way, it
only listens to the lid device, so it can never detect any input that would
trigger the write open. See
<a href="http://who-t.blogspot.com.au/2017/02/libinput-and-lid-switch-events.html">http://who-t.blogspot.com.au/2017/02/libinput-and-lid-switch-events.html</a> for an
explanation</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>