<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#c8">Comment # 8</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:dev@mgautier.fr" title="Matthieu Gautier <dev@mgautier.fr>"> <span class="fn">Matthieu Gautier</span></a>
</span></b>
<pre>(In reply to Bastien Nocera from <a href="show_bug.cgi?id=91563#c7">comment #7</a>)
<span class="quote">> (In reply to Matthieu Gautier from <a href="show_bug.cgi?id=91563#c6">comment #6</a>)
> > 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
> > ...
>
> The problem is that it's not an accelerometer, it only has 2 axis.</span >
Yes, systemd 219 tag input as accelerometer if they have 3 axis.
Recent version add a test on INPUT_PROP_ACCELEROMETER property to also tag a
input device correctly.
<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.
>
> It shouldn't though.
>
> > 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.
>
> 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?</span >
There is no test on ID_INPUT_ACCELEROMETER in libinput code to discard a input
device. We could add it if needed (as it is done for TABLET_PAD and JOYSTICK).
Another way, is to remove the ID_INPUT tag (What I've done with udev rule).
Libinput should not open a device without ID_INPUT tag (but there is this bug
of gdm opening it at each "resume" without closing it).</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>