Can't connect Android device via USB

Hello,

I want to connect my Android device via USB and MTP. However, Dolphin always says, that no MTP device was found. Nevertheless, it does show up on the left side in the device category, and I sometimes (in some cases, but not always) get notices about whether I want to open it in the file manager, when I connect the USB cable.

The problem is definitely on the computer, as I don’t have problems on my laptop (using the same cable).
I already tried installing android-udev as mentioned here.

I’m using KDE plasma, and already updated everything.

I noticed some errors in journalctl:

Sep 26 14:54:21 elendil-pc org.kde.kmtpd5[3565]: ERROR: Could not close session!
Sep 26 14:54:21 elendil-pc org.kde.kmtpd5[3565]: inep: usb_get_endpoint_status(): Kein passendes Gerät gefunden
Sep 26 14:54:21 elendil-pc org.kde.kmtpd5[3565]: outep: usb_get_endpoint_status(): Kein passendes Gerät gefunden
Sep 26 14:54:24 elendil-pc kernel: usb 1-4: new high-speed USB device number 23 using xhci_hcd
Sep 26 14:54:24 elendil-pc kernel: usb 1-4: New USB device found, idVendor=18d1, idProduct=4ee1, bcdDevice= 4.40
Sep 26 14:54:24 elendil-pc kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 26 14:54:24 elendil-pc kernel: usb 1-4: Product: Pixel 4a
Sep 26 14:54:24 elendil-pc kernel: usb 1-4: Manufacturer: Google
Sep 26 14:54:24 elendil-pc kernel: usb 1-4: SerialNumber: 0A281JEC208291
Sep 26 14:54:30 elendil-pc org.kde.kmtpd5[3565]: PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
Sep 26 14:54:30 elendil-pc org.kde.kmtpd5[3565]: LIBMTP libusb: Attempt to reset device
Sep 26 14:54:30 elendil-pc kernel: usb 1-4: reset high-speed USB device number 23 using xhci_hcd
Sep 26 14:54:31 elendil-pc kernel: usb 1-4: reset high-speed USB device number 23 using xhci_hcd
Sep 26 14:55:31 elendil-pc org.kde.kmtpd5[3565]: LIBMTP PANIC: failed to open session on second attempt
Sep 26 14:55:31 elendil-pc kiod5[3565]: kf.kiod.kmtpd.: LIBMTP_Open_Raw_Device_Uncached: Could not open MTP device

Kein passendes Gerät gefunden translates to No matching/fitting device found

Thanks for help! :slight_smile:

Try to reboot Dolphin after device connected

Now it tells me, that the file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-4 doesn’t exist.

When that happens i normally close dolphin and open it again. You can try other file manager too like nautilus to see if the problem is your pc or from dolphin

Nautilus is also not working. (tranlated): “MTP-Device 001,025 can’t be opened”

Try to reinstall adb fastboot (android-tools) or go to your phone and reset the mtp options

Try to reinstall adb fastboot (android-tools)

I didn’t even have them installed. I installed them, and there is no difference.

or go to your phone and reset the mtp options

What exactly are you talking about? Also: It does work with other computers, so I doubt that the issue is on the phone.

I am getting out of ideas XD. The only thing that i can remeber is to change the kernel version. Try using your phone with lts kernel or viceversa if you are using lts

I can’t switch the kernel of my phone.
If you are talking about the kernel in EOS: I’m using Zen, and I’m actually quite happy with it. I don’t want to switch it - and it should generally be possible to use MTP with the zen kernel, right?

Also: I’m pretty sure that it did work with it previously.

Well, i am out of ideas then :neutral_face:. Hope another person can help…

1 Like

What is the output of yay -Qs mtp?

$ yay -Qs mtp
local/gvfs-gphoto2 1.48.1-1 (gnome)
    Virtual filesystem implementation for GIO (gphoto2 backend; PTP camera, MTP media player)
local/gvfs-mtp 1.48.1-1 (gnome)
    Virtual filesystem implementation for GIO (MTP backend; Android, media player)
local/ksmtp 21.08.1-1
    Job-based library to send email through an SMTP server
local/libcddb 1.3.2-6
    Library that implements the different protocols (CDDBP, HTTP, SMTP) to access data on a CDDB server (e.g. http://freedb.org).
local/libmtp 1.1.19-1
    Library implementation of the Media Transfer Protocol

Try installing mtpfs using yay -S mtpfs
A reboot might be needed.

1 Like

Not working. However, the message that the file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-4 doesn’t exist, doesn’t show anymore. (However I’m pretty sure that it didn’t show all the time previously, so this might not have changed anything at all.)

Did you enable the developer options on your mobile device, so you can select, if you want to charge or if you want to have access via MTP?

Yes. However I don’t think that’s just a developer option on CalyxOS (which I’m using). I might as well be wrong, though.

I’m not sure, but I guess that it could be a problem with mentioned OS. I don’t have any experience with this one, so I’m afraid I can be of no further help.
Never had any issues, as long as mtpfs was installed.

As I said, it’s working on my laptop (running Fedora), and I think it did work in the past on EOS. But thanks for your help! :slight_smile:

Maybe you are able to find some useful information over there

1 Like

Unfortunately no. My problem is mentioned there, but the solution does not work.