08-17-2014, 10:58 PM | #1 |
Wizard
Posts: 1,199
Karma: 3765734
Join Date: Feb 2012
Location: Ottawa, Ontario, Canada
Device: Kobo Libra 2, Lenovo Tab M10 FHD Plus, Lenovo Tab M8 HD
|
Connecting a Kobo Aura HD in FreeBSD
Hi,
Just wanted to share my findings on trying to get Calibre fulling working on my FreeBSD 10.0-RELEASE amd64 box. My trusty Kobo Aura HD just would not attach automatically. Mounting it to a directory and doing things that way is suboptimal, as I would like to use the Kobo Extended plugin. First, I tried all of Koyal's suggestions. Unfortunately that didn't get me very far. So I dusted off my rusty programming skills and set about trying to track down the problem. (Never programmed in Python, so that added a bit to my confusion.) Running calibre in a terminal gave me the following error message: (forgive me, the line numbers are off due to the debugging statements I've added.): Code:
Unable to open device <calibre_plugins.kobotouch_extended.device.driver.KOBOTOUCHEXTENDED object at 0x822273510> Traceback (most recent call last): File "/usr/local/lib/calibre/calibre/gui2/device.py", line 194, in do_connect dev.open(detected_device, self.current_library_uuid) File "/usr/local/lib/calibre/calibre/devices/usbms/device.py", line 891, in open self.open_freebsd() File "/usr/local/lib/calibre/calibre/devices/usbms/device.py", line 831, in open_freebsd raise DeviceError(_('Unable to mount the device')) DeviceError: Unable to mount the device Code:
paths = manager.FindDeviceStringMatch('usb.serial',d.serial) Code:
/org/freedesktop/Hal/devices/usb_device_2237_4193_N204B42111283_if0 Code:
dpaths = manager.FindDeviceStringMatch('storage.originating_device', path) Code:
/org/freedesktop/Hal/devices/usb_device_2237_4193_N204B42111283_if0 Code:
/org/freedesktop/Hal/devices/usb_device_2237_4193_N204B42111283_if0_scsi_host Now, to get around this, I've used an ugly hack of inserting this code just above line 728: Code:
mypaths = manager.FindDeviceStringMatch('info.parent', path) mypath = mypaths[0] I'm hoping someone who's more experienced with Python and its interactions with DBUS & HAL might be able to help get this into a proper patch. |
08-17-2014, 11:10 PM | #2 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have no experience with HAL, which as I recall is an awful mess, but from what you describe, simply doing
dpaths = manager.FindDeviceStringMatch('storage.originating _device', path) + manager.FindDeviceStringMatch('info.parent', path) should do the trick. |
Advert | |
|
08-17-2014, 11:33 PM | #3 |
Wizard
Posts: 1,199
Karma: 3765734
Join Date: Feb 2012
Location: Ottawa, Ontario, Canada
Device: Kobo Libra 2, Lenovo Tab M10 FHD Plus, Lenovo Tab M8 HD
|
Well, I forgot one important thing: I changed the dpaths= line (line 728) to take the new mypath variable. The manager.FindDeviceStringMatch('storage.originating _device' call needs the value that my manager.FindDeviceStringMatch('info.parent' call finds, and without it the rest of the code fails.
|
08-17-2014, 11:35 PM | #4 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes,but doing this
dpaths = manager.FindDeviceStringMatch('storage.originating _device', path) + manager.FindDeviceStringMatch('info.parent', path) means that dpaths will now include both matches on originating_device and matches on info.parent, so if no matches are found for originating_device, info_parent will be used. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch Connecting an external keyboard to Kobo Touch/Aura | robaire | Kobo Reader | 12 | 05-03-2017 07:02 PM |
Aura HD Kobo Glo/Aura/Aura HD future firmware feature request thread | arspr | Kobo Reader | 25 | 03-26-2015 05:19 AM |
Dymo tape fix for eBay Kobo Aura and Aura HD covers | RobertJSawyer | Kobo Reader | 2 | 02-10-2014 10:34 AM |
Problem connecting Kobo Aura HD to Internet | ktkat1949 | Kobo Reader | 19 | 01-17-2014 10:50 AM |
Canadian shoppers discount on kobo aura and aura hd | eejit | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 11-28-2013 01:43 AM |