android
  #1  
Old 04-13-2008, 01:11 PM
ellocco ellocco is offline
Junior Member
 
Join Date: Apr 2008
Posts: 10
Default MTP problems on Debian

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

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 0.2.6.1,
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:
Code:
/etc/udev/rules.d/libmtp.rules
Code:
# 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:
Code:
ldconfig
(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:
Code:
lsmod
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:
Quote:
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:
Code:
/etc/init.d/udev stop  |  /etc/init.d/udev start
,
but the problem remains.

Any ideas? What else can I check?

Kind regards,

ellocco

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]

  #2  
Old 05-04-2008, 11:44 AM
ellocco ellocco is offline
Junior Member
 
Join Date: Apr 2008
Posts: 10
Default

Here is an answer from the mailing list of the libmtp-project:
The problem is known and the problem needs perhaps repair
work on the USB-driver level:
http://sourceforge.net/mailarchive/m...mail.gmail.com

Linus suggests:
Quote:
I think the questions are better asked on the Linux USB ML:
http://www.linux-usb.org/mailing.html
Regards,

Stefan
Reply With Quote

  #3  
Old 01-11-2009, 02:40 PM
ellocco ellocco is offline
Junior Member
 
Join Date: Apr 2008
Posts: 10
Default MTP problems on Debian (new libmtp version 0.3.5)

Here is some info from Graham Hawkins (date 06-June-2008):
Quote:
There has been some recent activity at libmtp to make recent Sansa models (inc Fuze) work in MTP mode.
Turns out that the newer Sansas need to see an MS OS Descriptor probe before
turning on MTP (even if MTP mode is explicitly selected).
This appears to be on a per connection basis - so when you unplug it, it will
(probably) forget it was in MTP mode.
It is not clear what mode the Sansa thinks it is in if MTP is selected but the
MS OS Descriptor is not probed - maybe that explains some strange behaviour on
Linux systems.
http://markmail.org/message/3ueyrjsf7xqw2ya4

Has someone checked libmtp 0.3.5 on Debian?
Are Sansa devices now supported?

Regards,

Stefan
Reply With Quote

Reply

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 06:14 PM.