Re: testusb on a HID device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

> I do not want to rmmod the hid module as I think it will affect my
> being-used usb keyboard and mouse too. I just want to rmmod the hid
> module for the device being tested.

I got this http://unix.stackexchange.com/questions/12005/how-to-use-linux-kernel-driver-bind-unbind-interface-for-usb-hid-devices
which talks about unbinding a device.

I did the below:

echo -n "0003:03EB:204D.0008" | sudo tee /sys/bus/hid/drivers/hid-generic/unbind

and I did not see the device here anymore:

ls -altr /sys/bus/hid/drivers/hid-generic
total 0
drwxr-xr-x 14 root root    0 Sep  8 22:38 ..
drwxr-xr-x  2 root root    0 Sep  8 22:38 .
--w-------  1 root root 4096 Sep  8 22:38 uevent
--w-------  1 root root 4096 Sep  8 22:38 new_id
--w-------  1 root root 4096 Sep  8 22:38 bind
lrwxrwxrwx  1 root root    0 Sep  8 22:38 0003:1532:010E.0006 ->
../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:1532:010E.0006
lrwxrwxrwx  1 root root    0 Sep  8 22:38 0003:1532:010E.0002 ->
../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:1532:010E.0002
lrwxrwxrwx  1 root root    0 Sep  8 22:38 0003:1532:010E.0001 ->
../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:1532:010E.0001
lrwxrwxrwx  1 root root    0 Sep  8 22:38 0003:093A:2510.0004 ->
../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:093A:2510.0004
--w-------  1 root root 4096 Sep  8 22:42 unbind

but, I still get the inappropriate ioctl messages:

s rmmod usbtest
smart_sudo rmmod usbtest
- (0:c:~/dev/kernel/src/linux-stable/tools/usb)  -  -  -  -  -  -  -
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
s modprobe usbtest vendor=0x03eb product=0x204d
smart_sudo modprobe usbtest vendor=0x03eb product=0x204d
- (0:c:~/dev/kernel/src/linux-stable/tools/usb)  -  -  -  -  -  -  -
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
s ./testusb -D /dev/bus/usb/004/003
smart_sudo ./testusb -D /dev/bus/usb/004/003
./testusb: /dev/bus/usb/004/003 may see only control tests
/dev/bus/usb/004/003 test 0 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 1 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 2 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 3 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 4 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 5 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 6 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 7 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 8 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 9 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 10 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 11 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 12 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 13 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 14 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 15 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 16 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 17 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 18 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 19 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 20 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 21 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 22 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 23 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 24 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 25 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 26 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 27 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 28 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/003 test 29 --> 25 (Inappropriate ioctl for device)

Any thoughts on what else I could be missing, please?

Thanks
Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux