linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Input/HID: joydev fixes for motion sensors
@ 2017-08-18  2:01 Roderick Colenbrander
  2017-08-18  2:01 ` [PATCH 1/3] Input: Add new property INPUT_PROP_COMPOSITE Roderick Colenbrander
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Roderick Colenbrander @ 2017-08-18  2:01 UTC (permalink / raw)
  To: linux-input
  Cc: Dmitry Torokhov, Benjamin Tissoires, Jiri Kosina,
	Roderick Colenbrander

From: Roderick Colenbrander <roderick.colenbrander@sony.com>

Hi,

Some weeks ago we submitted an earlier version of this patch set,
which attempted to blacklist dualshock 3 / 4 motion sensor devices
from joydev. The motion sensor devices got picked up since the hid-sony
driver in recent months split the motion sensors of in separate devices.

The earlier version of this patch set, added a filter to joydev to
ignore devices which have INPUT_PROP_ACCELEROMETER set. Dmitry pointed
out that often you could use a motion sensor device as a joystick. He
felt the issue is with composite devices.

The discussion didn't result in a conclusion. This patch set only
filters out motion sensors if they are part of a composite device.
Since there is no way during driver initialization to determine
whether we are dealing with a composite device, we introduce a new
property INPUT_PROP_COMPOSITE to determine this. I think having such
flag is beneficial for userspace as well, since applications now get a hint
that a device is part of a composite device without having to infer
this from a EVIOCGPHYS / EVIOCGUINIQ match across devices.

Hopefully this patches will be accepted for 4.14, but maybe earlier if
still possible as the next wave of distributions will likely be on 4.13
with more users dealing with this issue.

Thanks,
Roderick


Roderick Colenbrander (3):
  Input: Add new property INPUT_PROP_COMPOSITE
  HID: sony: Set INPUT_PROP_COMPOSITE flag on sub devices.
  Input: joydev - ignore accelerometer devices

 Documentation/input/event-codes.rst    | 12 ++++++++++++
 drivers/hid/hid-sony.c                 |  8 ++++++++
 drivers/input/joydev.c                 |  5 +++++
 include/uapi/linux/input-event-codes.h |  1 +
 4 files changed, 26 insertions(+)

-- 
2.9.4


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-08-24  0:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18  2:01 [PATCH v2 0/3] Input/HID: joydev fixes for motion sensors Roderick Colenbrander
2017-08-18  2:01 ` [PATCH 1/3] Input: Add new property INPUT_PROP_COMPOSITE Roderick Colenbrander
2017-08-18  3:24   ` Peter Hutterer
2017-08-22 23:34     ` Colenbrander, Roelof
2017-08-23  5:54       ` Peter Hutterer
2017-08-18  2:01 ` [PATCH 2/3] HID: sony: Set INPUT_PROP_COMPOSITE flag on sub devices Roderick Colenbrander
2017-08-23  8:50   ` Bastien Nocera
2017-08-23 23:46     ` Roderick Colenbrander
2017-08-18  2:01 ` [PATCH 3/3] Input: joydev - ignore accelerometer devices Roderick Colenbrander
2017-08-23  8:45   ` Bastien Nocera
2017-08-24  0:01     ` Roderick Colenbrander
2017-08-23  9:04 ` [PATCH v2 0/3] Input/HID: joydev fixes for motion sensors Bastien Nocera
2017-08-23 23:57   ` Roderick Colenbrander
2017-08-24  0:08     ` Bastien Nocera
2017-08-24  0:59       ` Roderick Colenbrander
2017-08-23  9:08 ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).