How to tell KDE to release an MTP device

Does anyone know a clean way to tell KDE to release control of a connected MTP device?

The background is I want to backup my phone. To do that, I mount it with jmtpfs and then run rsync with some selected patterns. This used to work but since some time, jmtpfs fails with the error message:

libusb_claim_interface() reports device is busy, likely in use by GVFS or KDE MTP device handling alreadyLIBMTP PANIC: Unable to initialize device

I have figured out a workaround is to stop the systemd user service dbus-:1.2-org.kde.kiod5@0.service, but that doesn’t seem like a clean way and will likely have side effects.

Does anyone know a good way to do this?

Have a look at 412257 – kiod5 doesn't release usb device when it is not in use

Thank you for that pointer!

It isn’t just me then. Given the age of that report, the problem should have been there already in 5.16, it’s a bit odd I haven’t seen it until recently. But the report clearly is about the problem and explains the situation.

1 Like