LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-01-2019, 05:33 AM   #1
_alex_
LQ Newbie
 
Registered: Jul 2019
Distribution: CentOS - Debian
Posts: 4

Rep: Reputation: Disabled
Connecting Camera / USB / not an MTP device / udev / CentOS


Hi,

I'm trying to connect my camera (Canon EOS Kiss X4 = 550D) through USB cable but for some reason it doesn't work with my CentOS 7.

var/log says
Quote:
Aug 1 12:17:20 localhost kernel: usb 3-2: new high-speed USB device number 15 using xhci_hcd
Aug 1 12:17:20 localhost kernel: usb 3-2: New USB device found, idVendor=04a9, idProduct=31ea
Aug 1 12:17:20 localhost kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 1 12:17:20 localhost kernel: usb 3-2: Product: Canon Digital Camera
Aug 1 12:17:20 localhost kernel: usb 3-2: Manufacturer: Canon Inc.
Aug 1 12:17:20 localhost mtp-probe: checking bus 3, device 15: "/sys/devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2"
Aug 1 12:17:20 localhost mtp-probe: bus: 3, device: 15 was not an MTP device
Aug 1 12:17:52 localhost kernel: usb 3-2: USB disconnect, device number 15
udevadm monitor shows
Quote:
KERNEL[17552.038664] add /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2 (usb)
KERNEL[17552.039442] add /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2/3-2:1.0 (usb)
UDEV [17552.086414] add /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2 (usb)
UDEV [17552.088596] add /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2/3-2:1.0 (usb)
KERNEL[17583.577266] remove /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2/3-2:1.0 (usb)
KERNEL[17583.578127] remove /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2 (usb)
UDEV [17583.580727] remove /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2/3-2:1.0 (usb)
UDEV [17583.600850] remove /devices/pci0000:00/0000:00:1c.3/0000:19:00.0/usb3/3-2 (usb)
I tried fiddling with udev rules but I get the same results quoted above.
Taking the usb ID from lsusb command
Quote:
Bus 003 Device 016: ID 04a9:31ea Canon, Inc. EOS Rebel T2i / EOS 550D / EOS Kiss X4
and created a rule in
Quote:
/etc/udev/rules.d/90-myrules.rules
with the following line
Quote:
SUBSYSTEMS=="usb", ENV{MTP_NO_PROBE}="1", ENV{MODALIAS}=="usb:04a9:31ea", ENV{MODALIAS}="usb-storage"
The Shotwell app sees for a small instant the camera and then pops the error : "Unable to fetch previews from the camera: Unsupported operations (-6)" which is a result of the usb failure I believe, but just thought of providing this additional info.

Googled the stuff but can't find a solution and am not very knowledgeable on udev, any one has an idea ?

Thanks in advance
Alex
 
Old 08-01-2019, 08:29 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
From what little I know, Canon cameras are PTP by default as far as I know and not USB mass storage devices. I don't know if you can switch modes in the camera. While your camera is supported by gPhoto there was an issue where it only worked when connected to a USB 2 and not USB 3 port. You might have to upgrade the kernel.

gphoto2 is probably not installed by default but it should be to detect the camera and display its protocol.

gphoto2 --auto-detect
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Applications 18.12.0 has rewritten MTP device support. Does it solve any previous MTP problems? Nille_kungen Slackware 6 10-15-2018 11:04 AM
mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4 does not exist error Geremia Slackware 9 01-01-2015 10:54 PM
[SOLVED] USB is not a MTP device the_bigbalu Linux - Desktop 1 05-28-2013 02:55 AM
On slack-current: /usr/bin/mtp-getfile -> /tmp/package-libmtp/usr/bin/mtp-connect ? LuckyCyborg Slackware 3 05-03-2010 01:13 PM
Connecting an mtp device to amarok2 amishtechie Linux - Software 2 09-24-2008 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration