Prev Previous Post   Next Post Next
Old 04-13-2008, 01:11 PM
ellocco ellocco is offline
Junior Member
Join Date: Apr 2008
Posts: 10
Default MTP problems on Debian

utopia:/home/ellocco# mtp-detect
libmtp version:

Attempting to connect device(s)
PTP: Opening session
PTP_ERROR_IO: Trying again after re-initializing USB interface
usb_claim_interface(): Bad file descriptor
LIBMTP PANIC: Could not open session on device 1
LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1599
Detect: There has been an error connecting. Exiting
I work with an sansa 200v2, I have upgraded libmtp to,
this version supports my player, it knows about the correct vendor ID
(VID=0781) and the correct product ID (PID= 7422, for MTP-mode),
I also checked the UDEV-rules, I includet a rule for my device in the
udev rules file for libmtp6, - in the current version "libmtp7.rules" of libmtp7 it is allready includet:
# SanDisk Sansa e200/e250/e260/e270/e280v2
ATTRS{idVendor}=="0781", ATTRS{idProduct}=="7422", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio"
As a super user I also gave the command:
(xubuntu-users have to work with the pre-command sudo )

As I understand it, libmtp needs fuse,
so I checked my kernel and added the fuse-module to my kernel
(I had to compile it from the sources).

I also checked if usb_storage module is in the kernel, I gave the command:
The modul is not loaded, - I think this is good, - I don't know if it is really necessary to remove it from kernel, but I have read about it, that this modul
can interfer with libmtp.

Here is, what I read about the problem:
Sandisk sansa c150 and probably several other Sandisk devices
(and possibly devices from other manufacturers) have a dual
mode with MTP and USB mass storage. The device will initially
claim to be mass storage so udev will capture is and make the
use of MTP mode impossible. One way of avoiding it could be to
be to blacklist the "usb-storage" module in
/etc/modprobe.c/blacklist with a row like this:
"blacklist usb-storage". Some have even removed the
"usb-storage.ko" (kernel module file) to avoid loading.
The USB mass storage-mode is also refered as UMS or MSC mode.

I also rebooted the machine and restarted UDEV:
/etc/init.d/udev stop  |  /etc/init.d/udev start
but the problem remains.

Any ideas? What else can I check?

Kind regards,


Last edited by ellocco; 05-04-2008 at 11:40 AM. Reason: adding the information, that there are defferences between "libmtp.rules" and "libmtp7.rules"
Reply With Quote

Advertisement [Remove Advertisement]


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 01:43 PM.