Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 08-22-2021, 03:55 PM   #1
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
Calibre does not detect Onyx Boox in Linux Debian 11

Hello,

My device is MTP device, and I have made sure that it is not automounted. Here is the copy of the debug device detetction:

===
Spoiler:


calibre 5.25 embedded-python: True is64bit: True
Linux-5.10.0-8-amd64-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.10.0-8-amd64', '#1 SMP Debian 5.10.46-4 (2021-08-03)')
Python 3.8.5
Interface language: en_GB
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 41, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 41, 0) && KFX metadata reader (from KFX Input) (1, 41, 0) && KFX Input (1, 41, 0) && Set KFX metadata (from KFX Output) (1, 54, 0) && KFX Output (1, 54, 0)
USB devices on system:
[['0x8087', '0xa2b', '0x10', '', '', ''],
['0x5c6', '0xf003', '0x318', 'Android', 'Android', '134d90c8']]

No disabled plugins
Looking for devices of type: MTP_DEVICE
MTP devices connected:
USBDevice(busnum=2, devnum=3, vendor_id=0x05c6, product_id=0xf003, bcd=0x0318, manufacturer=Android, product=Android, serial=134d90c8)

Trying to open: USBDevice(busnum=2, devnum=3, vendor_id=0x05c6, product_id=0xf003, bcd=0x0318, manufacturer=Android, product=Android, serial=134d90c8)
Opening device failed:
Traceback (most recent call last):
File "calibre/devices/mtp/unix/driver.py", line 216, in open
File "calibre/devices/mtp/base.py", line 25, in synchronizer
File "calibre/devices/mtp/unix/driver.py", line 168, in create_device
libmtp.MTPError: Unable to open MTP device with busnum=2 and devnum=3, tried 1 such devices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre/devices/mtp/unix/driver.py", line 146, in debug_managed_device_detection
File "calibre/devices/mtp/driver.py", line 128, in open
File "calibre/devices/mtp/base.py", line 25, in synchronizer
File "calibre/devices/mtp/unix/driver.py", line 219, in open
calibre.devices.errors.OpenFailed: Failed to open USBDevice(busnum=2, devnum=3, vendor_id=0x05c6, product_id=0xf003, bcd=0x0318, manufacturer=Android, product=Android, serial=134d90c8): Error: Unable to open MTP device with busnum=2 and devnum=3, tried 1 such devices


Looking for devices of type: SMART_DEVICE_APP
All IP addresses {'lo': [{'addr': '127.0.0.1', 'netmask': '255.0.0.0', 'peer': '127.0.0.1'}], 'wlo1': [{'addr': '10.0.0.12', 'netmask': '255.255.255.0', 'broadcast': '10.0.0.255'}]}
No device is connected

Looking for devices...

Devices possibly connected: None

Last edited by theducks; 08-22-2021 at 05:35 PM. Reason: spoilered
Kalkas is offline   Reply With Quote
Old 08-22-2021, 04:55 PM   #2
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
Does lsusb show it?
hobnail is offline   Reply With Quote
Advert
Old 08-22-2021, 05:20 PM   #3
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
Hello,

I am not sure about isusb, but the OS detect my device. I can send books to my device via Dolphin File Manager (in KDE Debian Linux).

Kind regards,
Aleksandar
Kalkas is offline   Reply With Quote
Old 08-22-2021, 08:54 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,320
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Only one program can access an MTP device at a time on Linux. Prevent your desktop/file manager from automounting the device and it will be detected in calibre.
kovidgoyal is offline   Reply With Quote
Old 08-22-2021, 10:16 PM   #5
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
Hello,

Thanks for your input. I have disabled automounting in settings, see the image settings.png. In the notifyer for removable devices, there is a button to mount, see the image not-mounted.png. But Calibre does not detect the device. I have once again copied the report of the debug device detection.

This problem appeared after upgrading to Debian 11. I had no such problems in the previous release of Debian 10.

Kind regards,
Aleksandar

===

COPY from the Debug Device Detection:

calibre 5.25 embedded-python: True is64bit: True
Linux-5.10.0-8-amd64-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.10.0-8-amd64', '#1 SMP Debian 5.10.46-4 (2021-08-03)')
Python 3.8.5
Interface language: en_GB
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 41, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 41, 0) && KFX metadata reader (from KFX Input) (1, 41, 0) && KFX Input (1, 41, 0) && Set KFX metadata (from KFX Output) (1, 54, 0) && KFX Output (1, 54, 0)
USB devices on system:
[['0x8087', '0xa2b', '0x10', '', '', ''],
['0x5c6', '0xf003', '0x318', 'Android', 'Android', '134d90c8']]

No disabled plugins
Looking for devices of type: MTP_DEVICE
MTP devices connected:
USBDevice(busnum=2, devnum=3, vendor_id=0x05c6, product_id=0xf003, bcd=0x0318, manufacturer=Android, product=Android, serial=134d90c8)

Trying to open: USBDevice(busnum=2, devnum=3, vendor_id=0x05c6, product_id=0xf003, bcd=0x0318, manufacturer=Android, product=Android, serial=134d90c8)
Opening device failed:
Traceback (most recent call last):
File "calibre/devices/mtp/unix/driver.py", line 216, in open
File "calibre/devices/mtp/base.py", line 25, in synchronizer
File "calibre/devices/mtp/unix/driver.py", line 168, in create_device
libmtp.MTPError: Unable to open MTP device with busnum=2 and devnum=3, tried 1 such devices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre/devices/mtp/unix/driver.py", line 146, in debug_managed_device_detection
File "calibre/devices/mtp/driver.py", line 128, in open
File "calibre/devices/mtp/base.py", line 25, in synchronizer
File "calibre/devices/mtp/unix/driver.py", line 219, in open
calibre.devices.errors.OpenFailed: Failed to open USBDevice(busnum=2, devnum=3, vendor_id=0x05c6, product_id=0xf003, bcd=0x0318, manufacturer=Android, product=Android, serial=134d90c8): Error: Unable to open MTP device with busnum=2 and devnum=3, tried 1 such devices


Looking for devices of type: SMART_DEVICE_APP
All IP addresses {'lo': [{'addr': '127.0.0.1', 'netmask': '255.0.0.0', 'peer': '127.0.0.1'}], 'wlo1': [{'addr': '10.0.0.12', 'netmask': '255.255.255.0', 'broadcast': '10.0.0.255'}]}
No device is connected

Looking for devices...

Devices possibly connected: None
Kalkas is offline   Reply With Quote
Advert
Old 08-23-2021, 01:52 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,320
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The debug output shows that libmtp is unable to open your device, so either your device is already opened or you have permissions issues. You will need to figure out which it is.
kovidgoyal is offline   Reply With Quote
Old 08-23-2021, 04:04 AM   #7
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
If it is permission issue, how do I solve it?
Kalkas is offline   Reply With Quote
Old 08-23-2021, 05:37 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,320
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No clue, you will need to ask in your distributions forums. In general check the permissions on the usb device nodes.
kovidgoyal is offline   Reply With Quote
Old 08-23-2021, 07:34 AM   #9
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,964
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I find that the file system has exclusive MTP on some versions of Linux desktop.
On some devices doing an eject solves it.
But I go
System Monitor -> Processes -> scroll to "gvfs-mtp-volume-monitor" Right Click: Stop Process
Then Calibre works with the Boyue Likebook Mars perfectly.

You need to Right Click and "Continue Process" to have File Manager access when you arn't using Calibre, maybe to copy some non-book files or something.


MTP is horrible. Only one program at a time can use it. This is an MTP issue, not Linux. Same problem in Windows, such as connecting an audio library / player. By default Explorer gets it.

Warning:
On Linux: Don't end or Kill "gvfs-mtp-volume-monitor" as it will be automagically restarted. Some desktops/filemanagers allow disable of MTP FS and then Calibre works. I usually use Mint Linux 20.1, Mate desktop (Marco) and Caja File manager. That combo doesn't let Calibre access MTP devices and the Control Panel settings to disable MTP Filemanager only work on other desktops. Maybe KDE. I have usually 2 or 3 desktop managers and 2 or 3 accounts on every Linux I have in case of accidents and to test issues like this.

It's not USB permissions.

Last edited by Quoth; 08-23-2021 at 07:42 AM. Reason: Warning
Quoth is offline   Reply With Quote
Old 08-23-2021, 01:33 PM   #10
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
Hello Quoth,

Thanks for your reply.

Calibre could detect my Onyx device in the previous release of Debian 10, and I recall that I had other file managers installed in my system. But after upgrading to Debian 11 (with pure installation), I did not install other file managers, but have only the default KDE file manager Dolphin.

Once again, thanks for your helpful reply.

Kind regards,
Aleksandar
Kalkas is offline   Reply With Quote
Old 08-28-2021, 02:20 AM   #11
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
The problem is now solved after I installed mtp-tools from the Debian repository. It was not installed by default. In addition one has also to install mtpfs.

After installing mtp-tools, Calibre now detects the Onyx device!
Kalkas is offline   Reply With Quote
Old 08-28-2021, 02:24 AM   #12
Kalkas
Member
Kalkas began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2017
Device: Kindle Voyage
The problem is now solved after installing mtp-tools! Mtp-tools must be installed and it is part of Debian repository. It is not installed by default.

After installing it, Calibre can now detetct my Onyx device!
Kalkas is offline   Reply With Quote
Old 08-28-2021, 06:38 AM   #13
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,964
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Linux Mint is essentially Debian with some Ubuntu. I installed the mtp-tools, but that only worked for the KDE desktop. With Mate and Caja you have to:
System Monitor -> Processes -> scroll to "gvfs-mtp-volume-monitor" Right Click: Stop Process
Otherwise it mounts in the filesystem on insertion.

Glad you got it sorted @Kalkas as I'd forgotten about mtp-tools.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Onyx Boox Note 10.3 on Linux norbusan Onyx Boox 23 06-20-2019 05:52 AM
Calibre 3 and rar on Debian Linux norbusan Calibre 47 07-25-2017 10:14 AM
Glo Where's Debian GNU/Linux image for Kobo Glo?哪里有Kobo Glo的Debian GNU/Linux镜像? zaoqi Kobo Developer's Corner 0 04-09-2017 02:33 AM
Debian/Ubuntu on Onyx Boox M96 daniele_dll Onyx Boox 35 08-18-2016 02:13 PM
Installing calibre 1.26 in linux debian with no sudo Nix Hard Calibre 5 03-02-2014 10:47 PM


All times are GMT -4. The time now is 05:43 PM.


MobileRead.com is a privately owned, operated and funded community.