Ubuntu Tech Tip: Fixing Camera "could not claim usb device" Errors
Once in a great while when I connect my camera to my
Ubuntu
desktop, I'll get an error code "could not claim the usb device". Usually
I bypass this annoyance by logging out and logging back in again, but today
I decided to google around and I found a fix.
The first step to fix the problem is to find out the hexadecimal vendor ID
and hexadecimal product ID of the camera. To get these, type
lsusb at the command prompt, like so:
-
% lsusb
Bus 007 Device 013: ID 04a9:3113 Canon, Inc.
The vendor and device IDs are shown in red above and are delimited with
a colon; the vendor ID is the first hexadecimal number and the product
ID is the second hexadecimal number. Now open up the file
/etc/udev/rules.d/40-permissions.rules and find the
USB device section. This section will be demarcated with
"usb_serial_start" and "usb_serial_end" lines and look something like
this:
-
# USB serial converters
# USB serial converters
SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="usb_serial_start"
GOTO="usb_serial_end"
LABEL="usb_serial_start"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", \
MODE="0660", GROUP="dialout"
LABEL="usb_serial_end"
Just before the "usb_serial_end" line, add the following:
-
ATTRS{idVendor}=="vendor_id", ATTRS{idProduct}=="product_id", \
MODE="0666", GROUP="plugdev"
In my case vendor_id is '04a9' and product_id is '3113'.
It's all better now... sweet!
(Update Tue May 5 09:26:20 PDT 2009 // fixed html validation errors... oops)
:: Posted by rus on Tue, 28 Apr 2009 11:51 pm
:: Filed under /tech
|