From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Tue, 07 Feb 2006 16:54:00 +0000 Subject: Re: Bluetooth UDEV info like empty after hi2hci Message-Id: <200602071954.02600.arvidjaar@mail.ru> List-Id: References: <1139304358.7057.12.camel@pc-05.ycom.ch> In-Reply-To: <1139304358.7057.12.camel@pc-05.ycom.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 07 February 2006 12:25, Alexandre Ghisoli wrote: > Hi, > > I've asked this on bluetooth mailing list, but I cannot see if this > issue come from UDEV or Bluetooth stack. > > Linux 2.6.15 > UDEV 084 > DiNovo keyb and mice > > > I cannot force the device name in udev to link it in xorg > configuration file. > > Fixed device name is required for the Xorg configuration, since kernel > and udev change device numbers at reconnect, after a Bluetooth stop to > save batteries. > > Example : > > /dev/input/event0 -> mouse at startup (in usb mode) > /dev/input/event1 -> keyboard (in usb mode) > /dev/input/event3 -> mouse in BT mode, if I touch mice first > /dev/input/event4 -> keyboard in BT mode > > After a while without using mouse, hidd will stop session with device. > Touching the mouse re-enable the link, but device number could be > event5 ! > > > So, I want to fix the device name with a udev script. Testing : > KERNEL=3D"event[0-9]*" SYSFS{idVendor}=3D"046d", > SYSFS{idProduct}=3D"b001", NAME=3D"input/ev-mx900", MODE=3D"0664" > > Not working !! > try using SYSFS{id/vendor}, SYSFS{id/product}. They are in subdirectory=20 of /sys/class/input/inputX. Not quite logical comparing with all other=20 subsystems. - -andrey > > /proc/bus/input/devices gives : > I: Bus=0005 Vendor=046d Product=B001 Version"00 > N: Name=3D"Bluetooth HID Boot Protocol Device" > P: Phys> S: Sysfs=3D/class/input/input4 > H: Handlers=3Dmouse1 event4 > B: EV=3D7 > B: KEY=3Dxxx > B: REL=103 > > And UDEV has only : > udevinfo -a -p /sys/class/input/mouse1 > > --cut-- > looking at device '/class/input/input4/mouse1': > KERNEL=3D"mouse1" > SUBSYSTEM=3D"input" > SYSFS{dev}=3D"13:33" > > looking at device '/class/input/input4': > ID=3D"input4" > BUS=3D"input" > DRIVER=3D"" > SYSFS{uniq}=3D"" > SYSFS{phys}=3D"" > SYSFS{name}=3D"Bluetooth HID Boot Protocol Device" > > > > > This mean that the udev struct is not filled with all needed infos to > match udev rules. > > Any help to make it working ? > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > Linux-hotplug-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD6NCqR6LMutpd94wRAmA+AJ9ljRgaZjHpwkjMovvOtPGkrtU9KACfRq0F uUCvBW0ptr4uzrsOPVQmxuA=3DkRjT -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=103432&bid#0486&dat=121642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel