From: Jeremy Nickurak Date: Mon, 01 May 2006 21:17:08 +0000 Subject: udev and Logitech Elite USB keyboard Message-Id: <20060501211708.GA24629@agaeris.rifetech.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="rwEMma7ioTxnRzrJ" List-Id: To: linux-hotplug@vger.kernel.org --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm having some trouble with udev under debian sid, as discussed at http:/b= ugs.debian.org/365444 . I'm using a Logitech Elite USB keyboard. which has several additional butto= ns, as well as a mouse scroll-wheel, which appears as a usb mouse. The evde= v node for the keyboard works mostly, but missing some keyboard keys. The missing keys, as well as the scroll wheel, show up under the mouse's ev= dev node. Some of them show up as mouse buttons, some of them as keyboard k= eys. I had problems with debian's persistent-input.rules, which looks for a keyb= oard with SYSFS{bInterfaceProtocol}=3D=3D"01" (which works fine), and a mou= se with SYSFS{bInterfaceProtocol}=3D=3D"02". This fails, as the mouse/keybo= ard device has SYSFS{bInterfaceProtocol}=3D=3D"00". I've also had substantial trouble writing my own custom rule that reliably = matches this model's hardware, and sees the evdev nodes for the mouse and s= croller seperate, because afaict, the information required to do so spans t= wo sysfs sections. MD suggested I ask here for further information: > Are you sure that this is really the mouse device and not something else > this keyboard provides? Do you get only these two devices when you > connect the keyboard? We probably can't assume that "00" is a mouse, cause > according the HID spec it mean "no protocol" which can be anything. We may > need to work around this, but I don't know what's the right fix here. Any help would be appreciated. The SYSFS info for the two evdev devices is as follows: Keyboard: atrus@agaeris:~$ udevinfo -a -p /class/input/input1/event1 udevinfo starts with the device the node belongs to and then walks up the device chain, to print for every device found, all possibly useful attribut= es in the udev key format. Only attributes within one device section may be used together in one rule, to match the device for which the node will be created. looking at device '/class/input/input1/event1': KERNEL=3D=3D"event1" SUBSYSTEM=3D=3D"input" SYSFS{dev}=3D=3D"13:65" looking at device '/class/input/input1': ID=3D=3D"input1" BUS=3D=3D"input" DRIVER=3D=3D"" SYSFS{uniq}=3D=3D"" SYSFS{phys}=3D=3D"usb-0000:00:07.2-1/input0" SYSFS{name}=3D=3D"Logitech Logitech USB Keyboard" looking at device '/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0': ID=3D=3D"1-1:1.0" BUS=3D=3D"usb" DRIVER=3D=3D"usbhid" SYSFS{modalias}=3D=3D"usb:v046DpC30Ad1500dc00dsc00dp00ic03isc01ip01" SYSFS{bInterfaceProtocol}=3D=3D"01" SYSFS{bInterfaceSubClass}=3D=3D"01" SYSFS{bInterfaceClass}=3D=3D"03" SYSFS{bNumEndpoints}=3D=3D"01" SYSFS{bAlternateSetting}=3D=3D" 0" SYSFS{bInterfaceNumber}=3D=3D"00" looking at device '/devices/pci0000:00/0000:00:07.2/usb1/1-1': ID=3D=3D"1-1" BUS=3D=3D"usb" DRIVER=3D=3D"usb" SYSFS{configuration}=3D=3D"" SYSFS{product}=3D=3D"Logitech USB Keyboard" SYSFS{manufacturer}=3D=3D"Logitech" SYSFS{maxchild}=3D=3D"0" SYSFS{version}=3D=3D" 1.10" SYSFS{devnum}=3D=3D"2" SYSFS{speed}=3D=3D"1.5" SYSFS{bMaxPacketSize0}=3D=3D"8" SYSFS{bNumConfigurations}=3D=3D"1" SYSFS{bDeviceProtocol}=3D=3D"00" SYSFS{bDeviceSubClass}=3D=3D"00" SYSFS{bDeviceClass}=3D=3D"00" SYSFS{bcdDevice}=3D=3D"1500" SYSFS{idProduct}=3D=3D"c30a" SYSFS{idVendor}=3D=3D"046d" SYSFS{bMaxPower}=3D=3D"100mA" SYSFS{bmAttributes}=3D=3D"a0" SYSFS{bConfigurationValue}=3D=3D"1" SYSFS{bNumInterfaces}=3D=3D" 2" looking at device '/devices/pci0000:00/0000:00:07.2/usb1': ID=3D=3D"usb1" BUS=3D=3D"usb" DRIVER=3D=3D"usb" SYSFS{configuration}=3D=3D"" SYSFS{serial}=3D=3D"0000:00:07.2" SYSFS{product}=3D=3D"UHCI Host Controller" SYSFS{manufacturer}=3D=3D"Linux 2.6.16 uhci_hcd" SYSFS{maxchild}=3D=3D"2" SYSFS{version}=3D=3D" 1.10" SYSFS{devnum}=3D=3D"1" SYSFS{speed}=3D=3D"12" SYSFS{bMaxPacketSize0}=3D=3D"64" SYSFS{bNumConfigurations}=3D=3D"1" SYSFS{bDeviceProtocol}=3D=3D"00" SYSFS{bDeviceSubClass}=3D=3D"00" SYSFS{bDeviceClass}=3D=3D"09" SYSFS{bcdDevice}=3D=3D"0206" SYSFS{idProduct}=3D=3D"0000" SYSFS{idVendor}=3D=3D"0000" SYSFS{bMaxPower}=3D=3D" 0mA" SYSFS{bmAttributes}=3D=3D"c0" SYSFS{bConfigurationValue}=3D=3D"1" SYSFS{bNumInterfaces}=3D=3D" 1" looking at device '/devices/pci0000:00/0000:00:07.2': ID=3D=3D"0000:00:07.2" BUS=3D=3D"pci" DRIVER=3D=3D"uhci_hcd" SYSFS{modalias}=3D=3D"pci:v00001106d00003038sv00000925sd00001234bc0Csc0= 3i00" SYSFS{local_cpus}=3D=3D"1" SYSFS{irq}=3D=3D"12" SYSFS{class}=3D=3D"0x0c0300" SYSFS{subsystem_device}=3D=3D"0x1234" SYSFS{subsystem_vendor}=3D=3D"0x0925" SYSFS{device}=3D=3D"0x3038" SYSFS{vendor}=3D=3D"0x1106" looking at device '/devices/pci0000:00': ID=3D=3D"pci0000:00" BUS=3D=3D"" DRIVER=3D=3D"" Scroll wheel: =20 atrus@agaeris:~$ udevinfo -a -p /class/input/input2/event2 udevinfo starts with the device the node belongs to and then walks up the device chain, to print for every device found, all possibly useful attribut= es in the udev key format. Only attributes within one device section may be used together in one rule, to match the device for which the node will be created. looking at device '/class/input/input2/event2': KERNEL=3D=3D"event2" SUBSYSTEM=3D=3D"input" SYSFS{dev}=3D=3D"13:66" looking at device '/class/input/input2': ID=3D=3D"input2" BUS=3D=3D"input" DRIVER=3D=3D"" SYSFS{uniq}=3D=3D"" SYSFS{phys}=3D=3D"usb-0000:00:07.2-1/input1" SYSFS{name}=3D=3D"Logitech Logitech USB Keyboard" looking at device '/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.1': ID=3D=3D"1-1:1.1" BUS=3D=3D"usb" DRIVER=3D=3D"usbhid" SYSFS{modalias}=3D=3D"usb:v046DpC30Ad1500dc00dsc00dp00ic03isc00ip00" SYSFS{bInterfaceProtocol}=3D=3D"00" SYSFS{bInterfaceSubClass}=3D=3D"00" SYSFS{bInterfaceClass}=3D=3D"03" SYSFS{bNumEndpoints}=3D=3D"01" SYSFS{bAlternateSetting}=3D=3D" 0" SYSFS{bInterfaceNumber}=3D=3D"01" looking at device '/devices/pci0000:00/0000:00:07.2/usb1/1-1': ID=3D=3D"1-1" BUS=3D=3D"usb" DRIVER=3D=3D"usb" SYSFS{configuration}=3D=3D"" SYSFS{product}=3D=3D"Logitech USB Keyboard" SYSFS{manufacturer}=3D=3D"Logitech" SYSFS{maxchild}=3D=3D"0" SYSFS{version}=3D=3D" 1.10" SYSFS{devnum}=3D=3D"2" SYSFS{speed}=3D=3D"1.5" SYSFS{bMaxPacketSize0}=3D=3D"8" SYSFS{bNumConfigurations}=3D=3D"1" SYSFS{bDeviceProtocol}=3D=3D"00" SYSFS{bDeviceSubClass}=3D=3D"00" SYSFS{bDeviceClass}=3D=3D"00" SYSFS{bcdDevice}=3D=3D"1500" SYSFS{idProduct}=3D=3D"c30a" SYSFS{idVendor}=3D=3D"046d" SYSFS{bMaxPower}=3D=3D"100mA" SYSFS{bmAttributes}=3D=3D"a0" SYSFS{bConfigurationValue}=3D=3D"1" SYSFS{bNumInterfaces}=3D=3D" 2" looking at device '/devices/pci0000:00/0000:00:07.2/usb1': ID=3D=3D"usb1" BUS=3D=3D"usb" DRIVER=3D=3D"usb" SYSFS{configuration}=3D=3D"" SYSFS{serial}=3D=3D"0000:00:07.2" SYSFS{product}=3D=3D"UHCI Host Controller" SYSFS{manufacturer}=3D=3D"Linux 2.6.16 uhci_hcd" SYSFS{maxchild}=3D=3D"2" SYSFS{version}=3D=3D" 1.10" SYSFS{devnum}=3D=3D"1" SYSFS{speed}=3D=3D"12" SYSFS{bMaxPacketSize0}=3D=3D"64" SYSFS{bNumConfigurations}=3D=3D"1" SYSFS{bDeviceProtocol}=3D=3D"00" SYSFS{bDeviceSubClass}=3D=3D"00" SYSFS{bDeviceClass}=3D=3D"09" SYSFS{bcdDevice}=3D=3D"0206" SYSFS{idProduct}=3D=3D"0000" SYSFS{idVendor}=3D=3D"0000" SYSFS{bMaxPower}=3D=3D" 0mA" SYSFS{bmAttributes}=3D=3D"c0" SYSFS{bConfigurationValue}=3D=3D"1" SYSFS{bNumInterfaces}=3D=3D" 1" looking at device '/devices/pci0000:00/0000:00:07.2': ID=3D=3D"0000:00:07.2" BUS=3D=3D"pci" DRIVER=3D=3D"uhci_hcd" SYSFS{modalias}=3D=3D"pci:v00001106d00003038sv00000925sd00001234bc0Csc0= 3i00" SYSFS{local_cpus}=3D=3D"1" SYSFS{irq}=3D=3D"12" SYSFS{class}=3D=3D"0x0c0300" SYSFS{subsystem_device}=3D=3D"0x1234" SYSFS{subsystem_vendor}=3D=3D"0x0925" SYSFS{device}=3D=3D"0x3038" SYSFS{vendor}=3D=3D"0x1106" looking at device '/devices/pci0000:00': ID=3D=3D"pci0000:00" BUS=3D=3D"" DRIVER=3D=3D"" --=20 Jeremy Nickurak -=3D Email/Jabber: atrus@rifetech.com =3D- --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEVnrUtjFmtbiy5uYRAm6+AJ9jeHx9FzGohPBkWu0CWkZoSXvVLwCgjyD9 QuHAWtPbHKI3rV/k5Qo12JE= =ylq2 -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ-- ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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