04-22-2022, 07:45 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2022
Device: Boox Nova 3 Color
|
Calibre accessing MTP device under KDE5 solution
Hi,
I was having issues accessing my device under KDE with Calibre - I went through the debug device detection, then installed mtp-tools (since that was missing from a fresh Ubuntu install) and was running "mtp-detect" to see what the issue was. After a bit of Google searching I found: There is a dbus-1 service here (for the most recent KDE5 versions) for the MTP daemon: /usr/share/dbus-1/services/org.kde.kmtpd5.service Older versions it might be: org.kde.kmtp.daemon.service By creating a local file to prevent KDE's mtp daemon from working I did the following (older versions of KDE will be different): mkdir -p ~/.local/share/dbus-1/services/ nano ~/.local/share/dbus-1/services/org.kde.kmtpd5.service Add the following text: [D-BUS Service] Hidden=true Name=org.kde.kmtpd5 And save the file - a logout or reboot will then disable the KDE MTP daemon. Now "mtp-detect" works and so does Calibre |
04-22-2022, 09:48 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, on non-windows OSes only one program can access an MTP device at a time. SO you have to prevent your desktop enviroment from automounting MTP devices to use them with calibre. I'm surprised there is not a more user friendly way to exclude mtp devices from being automounted in KDE.
|
04-23-2022, 08:50 AM | #3 |
the rook, bossing Never.
Posts: 11,156
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
It varies by desktop. On some you can switch off MTP automount, either in the control panel or filemanager but on some (Mate on Mint) you can't so I use the System Monitor (accessed by right click at start of task buttons on Place bar) pause the gvf-mtp-volume-monitor before connecting USB. Select processes and find it, right click and Stop (not Kill as it would respawn), which is same as Pausing it.
Some MTP devices will be seen by Calibre simply by right-click and eject on the desktop USB gadget device, works for ancient Sony phone but not Boyue Mars as it can't remount without cable removal and re-insertion after an eject on desktop. |
Tags |
calibre, dbus, kde, linux, mtperror |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 2.51.0 triggers MTP failure with particular device | mikebw | Devices | 4 | 02-05-2018 03:33 PM |
Accessing my Calibre library on the iPad (or any other mobile device) | Habakkuk | Devices | 6 | 08-09-2016 04:01 AM |
Calibre won't see my Android MTP device, File system sees it fine. (linux) | setherd | Devices | 8 | 08-02-2014 06:12 AM |
Solution to accessing 'old' Kobo website | Lynx-lynx | Kobo Reader | 2 | 09-16-2013 05:00 PM |
Sending files to MTP device without conversion | RichieTheK | Devices | 7 | 10-06-2012 12:49 PM |