NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libusb-1.0, does it even work?



On Sun 23 Jan 2022 at 09:50:20 -0500, Greg Troxel wrote:
>   just mount it and then run calibre

Yes you can do that. It's a bit hidden: Toolbar icon "Connect/share" ->
sub-item "connect to folder".

However then you miss the knowledge that calibre might have about the
reader.

I think the way it goes is like this: the driver for each device
has the vendor/product codes. If one of those is recognized (and that's
why it scans for arbitrary usb devices), the driver also knows the name
which is typically used to mount its file systems (automatic mounters
generally find some volume name to use for that).

It also often has device-specific code, for example to access the
reader's book database (typically it's in some file on the file system).
An example is in /usr/pkg/lib/calibre/calibre/devices/prst1/ .

There is also a scan for MTP devices and wireless Bonjour/zeroconf
("smart_device_app") (I haven't tested either of those).

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index