Delivered-To: teg@jklm.no Received: by 10.142.161.10 with SMTP id j10cs107053wfe; Tue, 2 Aug 2011 01:56:53 -0700 (PDT) Received: by 10.42.173.72 with SMTP id q8mr2355371icz.105.1312275412906; Tue, 02 Aug 2011 01:56:52 -0700 (PDT) Return-Path: Received: from archlinux.org (gerolde.archlinux.org [66.211.214.132]) by mx.google.com with ESMTP id q4si6499842icc.117.2011.08.02.01.56.52; Tue, 02 Aug 2011 01:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of thomas@archlinux.org designates 66.211.214.132 as permitted sender) client-ip=66.211.214.132; Authentication-Results: mx.google.com; spf=pass (google.com: domain of thomas@archlinux.org designates 66.211.214.132 as permitted sender) smtp.mail=thomas@archlinux.org Received: by archlinux.org (Postfix) id A165C92046; Tue, 2 Aug 2011 04:56:28 -0400 (EDT) Delivered-To: tomegun@archlinux.org Received: from localhost.localdomain (92-016.eduroam.RWTH-Aachen.DE [134.61.92.16]) by archlinux.org (Postfix) with ESMTPSA id 621D09202E; Tue, 2 Aug 2011 04:56:27 -0400 (EDT) From: =?UTF-8?q?Thomas=20B=C3=A4chler?= To: Kay Sievers Cc: linux-hotplug@vger.kernel.org, Tom Gundersen , =?UTF-8?q?Thomas=20B=C3=A4chler?= Subject: [PATCH] rules: input - fix detection of bluetooth hid devices in Xorg Date: Tue, 2 Aug 2011 10:56:33 +0200 Message-Id: <1312275393-28519-1-git-send-email-thomas@archlinux.org> X-Mailer: git-send-email 1.7.6 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