Thread (27 messages) 27 messages, 5 authors, 2021-03-18

Re: [systemd-devel] [usb-storage] Re: Amazon Kindle disconnect after Synchronize Cache

From: Matthias Schwarzott <zzam@gentoo.org>
Date: 2021-03-16 21:53:08

Am 16.03.21 um 18:04 schrieb Alan Stern:
On Tue, Mar 16, 2021 at 05:43:34PM +0100, Hans de Goede wrote:
quoted
Thank you for this patch, yes if this works it would IMHO be
a much better solution then the udev rule.
Thank you for the patch.
I think it would be mildly better, but not a whole lot.  Since the
Kindle describes itself as having removable media, the kernel normally
probes it periodically to make sure the media remains present.  The
default probing interval is 2 seconds.  Reducing it to 0.9 seconds
doesn't represent an exorbitant additional load IMO -- especially since
Kindles don't tend to spend huge amounts of time connected to computers.

If it's merely a question of where to change the polling interval from
the default (automatically in the kernel or by userspace), that also
doesn't seem like a terribly important choice.  Certainly a udev rule or
hwdb entry is a lot easier to maintain than special-case code in the
kernel.
quoted
One question though, if this works to fix the undesired ejects,
will an actual eject (using e.g. the eject utility as say
"sudo eject /dev/sda") still be seen as an eject by the kindle
after this ?
It should be.  Maybe Matthias will try it and let us know.
Just for reference a direct answer here:
Yes, eject keeps working as it should.
quoted
Because that is actually kind of important for everyone using their
Kindle with Calibre, breaking that would not be good.
I also tried to upload a book using calibre (without disabling any 
workarounds in calibre).
The full process did work fine.

Regards
Matthias
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help