Currently playing on my computer (tune in: pls, asx)
The Daily Biff
     

Tue, 28 Apr 2009

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



Comments


Your Comment

 
Name:
URL/Email:
  [http://... or mailto:you@wherever]
Title:
Comment:
Password:
  [see below for password]
  Save my Name and URL/Email for next time
   
 
(password is 8 characters: three thousand two hundred one followed by the word 'east')

         

April 2009
Sun Mon Tue Wed Thu Fri Sat
     
28    

About
柏忠毅 的 'the Daily Biff'
Rus Berrett's weblog

Contact Me
Email: rus at berrett dot org
AIM: biffordtdavis

Search 'The Daily Biff'



Proclamations
Exaggerated opinions of my own importance. Proceed with caution.

Buy Me Stuff
My wish list is my gift to you (yes, shameless, I know).

Subscribe
Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Categories
You can isolate posts by category using the following links.

  •   ·x10 (1)
  •     ·2005 (23)
  •     ·2006 (18)
  •     ·2007 (17)
  •     ·2008 (27)
  •     ·2009 (21)
  •     ·2010 (2)
  •     ·kids (3)
  •     ·pies (1)
  •     ·meat (21)
  •     ·cola (2)
  •     ·milk (2)
  •     ·meat (1)
  •     ·utah (5)

Archives
Past entries are available for review.

Blogroll
These are a few blogs run by my esteemed friends and colleagues. My personal comments about the blog (and its author) can be accessed by clicking on the "wtf?" graphic to the immediate right of each entry (wtf = "What the flip?" as in "What the flip is grandma doing at the sand dunes?").

Family

What the flip is "Yatyk's Musings"?  And who the flip is Mark Berrett?

Friends

What the flip is "The Improvist"?  And who the flip is Dan Brian?
What the flip is "The Borel-Cantelli Lemma"?  And who the flip is Norm Jones?


    
 
    Valid CSS!

Valid HTML 4.01 Transitional

Powered by blosxom