Linux Hotplug development
 help / color / mirror / Atom feed
From: "Thomas Bächler" <thomas@archlinux.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] rules: input - fix detection of bluetooth hid devices in Xorg
Date: Tue, 02 Aug 2011 08:56:33 +0000	[thread overview]
Message-ID: <1312275393-28519-1-git-send-email-thomas@archlinux.org> (raw)

Commit c49df20758e0f22778cfc93b598f2929f4c86272 prevented udev from
creating broken symlinks for bluetooth hid devices. Unfortunately,
it also removed the ID_INPUT=1 and ID_INPUT_{KEY,MOUSE}=1 properties
from those devices. Xorg relies on these properties for cold- and
hotplugging of input devices.

With this patch, udev still omits the broken symlinks, but also
imports the input_id properties again.
---
 rules/rules.d/60-persistent-input.rules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rules/rules.d/60-persistent-input.rules b/rules/rules.d/60-persistent-input.rules
index 65a6381..28d50d2 100644
--- a/rules/rules.d/60-persistent-input.rules
+++ b/rules/rules.d/60-persistent-input.rules
@@ -2,9 +2,9 @@
 
 ACTION="remove", GOTO="persistent_input_end"
 SUBSYSTEM!="input", GOTO="persistent_input_end"
-SUBSYSTEMS="bluetooth", GOTO="persistent_input_end"
 
 ENV{ID_INPUT}="", IMPORT{program}="input_id %p"
+SUBSYSTEMS="bluetooth", GOTO="persistent_input_end"
 SUBSYSTEMS="usb", ENV{ID_BUS}="", IMPORT{program}="usb_id --export %p"
 
 # determine class name for persistent symlinks
-- 
1.7.6


             reply	other threads:[~2011-08-02  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02  8:56 Thomas Bächler [this message]
2011-08-04 21:26 ` [PATCH] rules: input - fix detection of bluetooth hid devices in Xorg Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1312275393-28519-1-git-send-email-thomas@archlinux.org \
    --to=thomas@archlinux.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox