View Single Post
Old 12-01-2022, 08:06 AM   #1
NoobieWanKenobie
Junior Member
NoobieWanKenobie began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2022
Device: Kindle Paperwhite
Talking Calibre doesn't recognise Kindle on Linux [SOLUTION]

I run into this every time I reinstall Linux and I've seen people asking around about this so I'm leaving this post for future reference.

If "lsusb" command detects kindle but calibre doesn't recognise it then try calibre > preferences > miscellinious > debug device detection.
If you get the following error or something mentioning udisks:
Code:
jeepney.wrappers.DBusErrorResponse: [org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain] ('Not authorized to perform operation',)
Udisks mount call failed:
Try the following steps:

1. Make sure you have "udisks2" and "gvfs" installed.
2. Add the following rule to "/etc/polkit-1/rules.d/50-udisks.rules". (Replace wheel with your suitable group.
https://wiki.archlinux.org/title/Udisks#Permissions
https://github.com/coldfix/udiskie/wiki/Permissions
Code:
polkit.addRule(function(action, subject) {
  var YES = polkit.Result.YES;
  var permission = {
    // required for udisks1:
    "org.freedesktop.udisks.filesystem-mount": YES,
    "org.freedesktop.udisks.luks-unlock": YES,
    "org.freedesktop.udisks.drive-eject": YES,
    "org.freedesktop.udisks.drive-detach": YES,
    // required for udisks2:
    "org.freedesktop.udisks2.filesystem-mount": YES,
    "org.freedesktop.udisks2.encrypted-unlock": YES,
    "org.freedesktop.udisks2.eject-media": YES,
    "org.freedesktop.udisks2.power-off-drive": YES,
    // required for udisks2 if using udiskie from another seat (e.g. systemd):
    "org.freedesktop.udisks2.filesystem-mount-other-seat": YES,
    "org.freedesktop.udisks2.filesystem-unmount-others": YES,
    "org.freedesktop.udisks2.encrypted-unlock-other-seat": YES,
    "org.freedesktop.udisks2.eject-media-other-seat": YES,
    "org.freedesktop.udisks2.power-off-drive-other-seat": YES
  };
  if (subject.isInGroup("wheel")) {
    return permission[action.id];
  }
});
NoobieWanKenobie is offline   Reply With Quote