You are not logged in.

#1 2017-10-23 22:21:35

halgi
Member
Registered: 2016-05-19
Posts: 27

[SOLVED] MTP failing to read device information

I have a huawei honor 5x and am unable to connect to my phoen via mtpfs jmtpfs gmtp etc...

Here is the output of jmtpfs when I try it:

 jmtpfs mnt/
Device 0 (VID=12d1 and PID=1082) is a Huawei Ascend P8.
LIBMTP PANIC: Unable to read device information on device 20 on bus 1, trying to continueterminate called after throwing an instance of 'MtpErrorCantOpenDevice'
  what():  Can't open device
Aborted (core dumped)

Here is the similar output from gmtp:

 gmtp 
Detect: No raw devices found.
Detect: No raw devices found.
Device 0 (VID=12d1 and PID=1082) is a Huawei Ascend P8.
LIBMTP PANIC: Unable to read device information on device 29 on bus 1, trying to continueDetect: Unable to open raw device?
LIBMTP PANIC: Trying to dump the error stack of a NULL device!
LIBMTP PANIC: Trying to clear the error stack of a NULL device!

Here is my device in lsusb

Bus 001 Device 029: ID 12d1:1082 Huawei Technologies Co., Ltd. 

Here is the rule in /usr/lib/udev/rules.d/69-libmtp.rules

cat /usr/lib/udev/rules.d/69-libmtp.rules | grep 1082
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1082", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Any ideas on how to fix this ?

Last edited by halgi (2017-10-23 22:28:36)

Offline

#2 2017-10-23 22:28:21

halgi
Member
Registered: 2016-05-19
Posts: 27

Re: [SOLVED] MTP failing to read device information

Interestingly enough, I switched to using a USB 3.0 port instead of a 2.0 one and this seemed to solve the problem. I'm not sure why.

I'm going to mark this as solved I guess.

Offline

#3 2022-02-19 10:58:07

zerospinmuon
Member
Registered: 2021-11-04
Posts: 3

Re: [SOLVED] MTP failing to read device information

The same error also appears if the mobile device is in screen locked state.

Offline

#4 2022-02-19 11:28:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [SOLVED] MTP failing to read device information

Please pay attention to the dates and don't necrobump 5 year old solved threads, even though your post may be topical.

Closing.

Offline

Board footer

Powered by FluxBB