<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - libinput keep open motion sensor input device"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91563#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - libinput keep open motion sensor input device"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91563">bug 91563</a>
              from <span class="vcard"><a class="email" href="mailto:bugzilla@hadess.net" title="Bastien Nocera <bugzilla@hadess.net>"> <span class="fn">Bastien Nocera</span></a>
</span></b>
        <pre>(In reply to Matthieu Gautier from <a href="show_bug.cgi?id=91563#c6">comment #6</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=118007" name="attach_118007" title="patch to add to linux tree, to add INPUT_PROP_ACCELEROMETER">attachment 118007</a> <a href="attachment.cgi?id=118007&action=edit" title="patch to add to linux tree, to add INPUT_PROP_ACCELEROMETER">[details]</a></span>
> patch to add to linux tree, to add INPUT_PROP_ACCELEROMETER

> Sorry for my silence but, as said Bastien, I was away.
> (And, as I'm leaving again, I'll be silent for the next few weeks..)


> Indeed, the tag INPUT_PROP_ACCELEROMETER is missing in applesmc. Adding it
> [1] doesn't fix the problem. It shows that it is more complex that it seems
> ...</span >

The problem is that it's not an accelerometer, it only has 2 axis.

<span class="quote">> With the tag INPUT_PROP_ACCELEROMETER, a recent systemd version (>219, the
> fedora22 version[2]) properly add the udev ID_INPUT_ACCELEROMETER=1 tag.

> With this tag, libinput still open the device.</span >

It shouldn't though.

<span class="quote">> However, it seems to be the
> right thing to do. Gnome(-shell?) now detect the device is a accelerometer
> and display a button to deactivate screen rotation, so we should keep the
> device open.</span >

That would be iio-sensor-proxy opening it (once) and letting go of it until it
receives a kevent saying it's changed coarse orientation (which we'll never
receive because the driver doesn't send it).

I think that libinput should just ignore it. Is there a udev tag for that?</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>