linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] Exclude digitizers from joystick class
@ 2009-07-27 20:56 Anssi Hannula
  0 siblings, 0 replies; 2+ messages in thread
From: Anssi Hannula @ 2009-07-27 20:56 UTC (permalink / raw)
  To: linux-hotplug

Exclude digitizers and similar devices from ID_CLASS joystick by
checking modalias for BTN_DIGI.

This was also done for linux kernel joydev interface in linux commit
d07a9cba6be5c0e947afc1014b5a62182a86f1f1.

---
 rules/rules.d/60-persistent-input.rules |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/rules.d/60-persistent-input.rules b/rules/rules.d/60-persistent-input.rules
index c733ad5..c65517b 100644
--- a/rules/rules.d/60-persistent-input.rules
+++ b/rules/rules.d/60-persistent-input.rules
@@ -16,8 +16,8 @@ DRIVERS="atkbd", ENV{ID_CLASS}="kbd", GOTO="serial"
 DRIVERS="psmouse", ENV{ID_CLASS}="mouse", GOTO="serial"
 ATTRS{name}="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir", GOTO="serial"
 
-# joystick (ABS_X || ABS_WHEEL || ABS_THROTTLE) && !BTN_TOUCH
-ATTRS{modalias}="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", \
+# joystick (ABS_X || ABS_WHEEL || ABS_THROTTLE) && !BTN_TOUCH && !BTN_DIGI
+ATTRS{modalias}="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14[0A],*r*", \
   ENV{ID_CLASS}="joystick", GOTO="serial"
 
 # fill empty serial number
-- 
1.6.2.4




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

* Re: [patch] Exclude digitizers from joystick class
@ 2009-08-05  3:09 Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2009-08-05  3:09 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Jul 27, 2009 at 22:56, Anssi Hannula<anssi.hannula@iki.fi> wrote:
> Exclude digitizers and similar devices from ID_CLASS joystick by
> checking modalias for BTN_DIGI.

Applied this and the ACL patch.

Thanks,
Kay

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

end of thread, other threads:[~2009-08-05  3:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27 20:56 [patch] Exclude digitizers from joystick class Anssi Hannula
  -- strict thread matches above, loose matches on Subject: below --
2009-08-05  3:09 Kay Sievers

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).