Re: [DIGImend-devel] Some problems with hidrd-convert
Brought to you by:
spb_nick
|
From: Mitch D. <mjd...@af...> - 2012-07-15 08:11:29
|
On Sun, Jul 8, 2012 at 6:21 PM, Nikolai Kondrashov <sp...@gm...> wrote: > > echo 0003:172F:0502.0002 | sudo tee /sys/bus/hid/drivers/generic-usb/unbind > echo 0003:172F:0502.0002 | sudo tee /sys/bus/hid/drivers/waltop/bind > > The format of HID bus device ID is this: > > TRANSPORT_BUS_ID:VENDOR_ID:PRODUCT_ID.DEVICE_NUMBER Very strange, the numbers I need are not what I expect: [root@xiaomao /]# cd /sys/bus/hid/drivers/hid-generic/ [root@xiaomao hid-generic]# ls -la total 0 drwxr-xr-x. 2 root root 0 Jul 14 18:37 . drwxr-xr-x. 15 root root 0 Jul 14 18:37 .. lrwxrwxrwx. 1 root root 0 Jul 14 19:20 0003:040B:2013.0001 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:040B:2013.0001 lrwxrwxrwx. 1 root root 0 Jul 14 19:20 0003:040B:2013.0002 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:040B:2013.0002 lrwxrwxrwx. 1 root root 0 Jul 14 19:20 0003:08F2:6370.0003 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/0003:08F2:6370.0003 --w-------. 1 root root 4096 Jul 14 18:37 bind --w-------. 1 root root 4096 Jul 14 18:37 new_id --w-------. 1 root root 4096 Jul 14 18:37 uevent --w-------. 1 root root 4096 Jul 14 18:37 unbind [root@xiaomao hid-generic]# lsusb Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0402:9665 ALi Corp. Bus 002 Device 003: ID 040b:2013 Weltrend Semiconductor Bus 002 Device 004: ID 08f2:6370 Gotop Information Inc. ## Note the bus and device number. I'll try according to your formula: [root@xiaomao hid-generic]# echo 0002:08f2:6370:0004 > unbind bash: echo: write error: No such device ## Let's try the symlink from the dir listing: [root@xiaomao hid-generic]# echo 0003:08F2:6370.0003 > unbind ## No error message! [root@xiaomao hid-generic]# ls -la total 0 drwxr-xr-x. 2 root root 0 Jul 14 18:37 . drwxr-xr-x. 15 root root 0 Jul 14 18:37 .. lrwxrwxrwx. 1 root root 0 Jul 14 19:20 0003:040B:2013.0001 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:040B:2013.0001 lrwxrwxrwx. 1 root root 0 Jul 14 19:20 0003:040B:2013.0002 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:040B:2013.0002 --w-------. 1 root root 4096 Jul 14 18:37 bind --w-------. 1 root root 4096 Jul 14 18:37 new_id --w-------. 1 root root 4096 Jul 14 18:37 uevent --w-------. 1 root root 4096 Jul 14 19:22 unbind [root@xiaomao hid-generic]# Also, I'm having a problem with loading modules: https://bugzilla.redhat.com/show_bug.cgi?id=840267 I think I'll have to wait for a solution to that before proceeding. > You can copy the approach used in drivers/hid/hid-uclogic.c - it is > hard to do simpler. I can help you with making a report descriptor, if > needed. Yes I'd like your help please? Do you understand the format of the current report? Mitch. |