Solved Kindle SY69JL not detected by Calibre

Hello, I recently installed Calibre wishing to transfer some books to my Kindle. The Kindle is detected on other PCs, so it's not a Kindle / cable issue. I followed the installation instructions, such as:

To talk to USB and MTP devices the user needs to be able to access the device node in /dev.
to be aware of USB devices attached to the machine, the user needs to be a member of the operator group: # pw groupmod operator -m yourusername
Then, add the following to /etc/devfs.rules, or create this file if it does not exist yet: [system=10]add path 'usb/*' mode 0660 group operator
To load these new rules, add the following to /etc/rc.conf: devfs_system_ruleset="system"
Then, restart devfs # service devfs restart

This is what libusb.get_devices() returns:

Code:
calibre-debug
Welcome to the interactive calibre shell!
Use exit to quit
>>> from calibre.constants import plugins
>>> libusb, err = plugins['libusb']
>>> libusb.get_devices()
[((0, 2, 32903, 2603, 16), {}), ((0, 3, 1266, 46507, 16), {'manufacturer': 'SunplusIT Inc', 'product': 'Integrated Camera'}), ((0, 4, 3034, 790, 516), {'manufacturer': 'Generic', 'product': 'USB3.0-CRW', 'serial': '20120501030900000'}), ((0, 5, 6473, 4, 784), {'product': 'Internal Storage'})]


libusb detects my webcam, but not my kindle.

This is whan camcontrol devlist returns

Code:
doas camcontrol devlist

<SAMSUNG MZVLW512HMJP-000L7 7L7QCXY7>  at scbus0 target 0 lun 1 (pass0,nda0)
<Generic- SD/MMC 1.00>             at scbus1 target 0 lun 0 (da0,pass1)
<Kindle Internal Storage 0310>     at scbus2 target 0 lun 0 (da1,pass2)


I mounted my Kindle using "mount -t msdosfs /dev/da1s1 /mnt"
It shows up in /mnt and I can access its contents.

However, my kindle doesn't show up when I open Calibre. I recently received this error in Calibre when trying to send books to the mounted folder.

Code:
calibre, version 7.16.0

ERROR: Error: Error communicating with device

Failed to access files in the main memory of your device. You should contact the device manufacturer for support. Common fixes are: try a different USB cable/USB port on your computer. If you device has a "Reset to factory defaults" type of setting somewhere, use it. Underlying error: [Errno 13] Permission denied: '/mnt/documents/.driveinfo.calibre'


Traceback (most recent call last):

  File "/usr/local/lib/calibre/calibre/devices/usbms/driver.py", line 154, in get_device_information

    self.driveinfo['main'] = self._update_driveinfo_file(self._main_prefix, 'main')

                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/calibre/calibre/devices/usbms/driver.py", line 134, in _update_driveinfo_file

    with open(os.path.join(prefix, self.DRIVEINFO), 'wb') as f:

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PermissionError: [Errno 13] Permission denied: '/mnt/documents/.driveinfo.calibre'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/usr/local/lib/calibre/calibre/gui2/device.py", line 112, in run

    self.result = self.func(*self.args, **self.kwargs)

                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/calibre/calibre/gui2/device.py", line 526, in _get_device_information

    info = self.device.get_device_information(end_session=False)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/calibre/calibre/devices/usbms/driver.py", line 163, in get_device_information

    raise_os_error(e)

  File "/usr/local/lib/calibre/calibre/devices/usbms/driver.py", line 144, in raise_os_error

    raise OSError(_('Failed to access files in the main memory of'

OSError: Failed to access files in the main memory of your device. You should contact the device manufacturer for support. Common fixes are: try a different USB cable/USB port on your computer. If you device has a "Reset to factory defaults" type of setting somewhere, use it. Underlying error: [Errno 13] Permission denied: '/mnt/documents/.driveinfo.calibre'



Any help would be greatly appreciated, thank you.
 
Solved it by resetting the kindle to a blank slate - apparently that .driveinfo.calibre file wasn't allowing calibre to access the folder. Files transfer fine now when i select "Connect to folder" and link it to the point I mounted my Kindle at.
 
Back
Top