Public bug reported:

I was looking for a way to dump the HID report descriptor under Linux.
For that purpose, I need to detach the kernel usbhid driver from the HID
interfaces.

More detail in libusb mailing list archive.
http://www.nabble.com/How-to-dump-HID-report-descriptor-under-Linux-td19609562.html

[EMAIL PROTECTED]:~$ uname -a
Linux Ubuntu804 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 
GNU/Linux

[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ lsusb
Bus 001 Device 007: ID 04f2:0760 Chicony Electronics Co., Ltd
Bus 001 Device 006: ID ffff:0005
Bus 001 Device 005: ID 046d:c054 Logitech, Inc.
Bus 001 Device 004: ID 14c0:0008
Bus 001 Device 003: ID 1947:0033
Bus 001 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ ls
1-3:1.0  1-5:1.0  1-7:1.0  1-7:1.1  bind  module  new_id  uevent  unbind

So far so good. But then there is error thereafter. Maybe this is a Ubuntu
specific problem.

[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ sudo echo -n 1-7:1.0 >unbind
bash: unbind: Permission denied
[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ sudo echo -n 1-7:1.1 >unbind
bash: unbind: Permission denied 

It turns out that I need to enable root to be able to do the job.
[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ sudo passwd root
[sudo] password for mcuee:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ ls
1-3:1.0  1-5:1.0  1-7:1.0  1-7:1.1  bind  module  new_id  uevent  unbind

[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid$ su -
Password:
[EMAIL PROTECTED]:~# cd /sys/bus/usb/drivers/usbhid/
[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid# ls
1-3:1.0  1-5:1.0  1-7:1.0  1-7:1.1  bind  module  new_id  uevent  unbind
[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid# echo -n 1-7:1.0 >unbind
[EMAIL PROTECTED]:/sys/bus/usb/drivers/usbhid# echo -n 1-7:1.1 >unbind

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
sudo does not work with unbinding usb interface from usbhid driver
https://bugs.launchpad.net/bugs/288964
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to