![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2012
Location: UK
Device: Kindle Touch
|
![]()
After stopping USB drive mode is there any way to restart it other than physically unplugging the cable and plugging it back in?
|
![]() |
![]() |
![]() |
#2 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
In other words: What have you done? What OS is the machine running that it is plugged into? |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
To re-phrase the OP's question differently (if I understood it correctly): After the drive was ejected from the computer, but the cable is still plugged in, is there a way to (programmatically) set the Kindle to USB drive mode again? I am not aware of any solution. However, the same question would be interesting for USB Network: after turning on USB network, you also have to unplug and replug the cable for the device to be recognized as a "new one". Maybe there is some software solution to "reset" the USB port which would act as if the cable was unplugged/replugged? This certainly must be possible, but I'm completely lost when it comes to electronics and circuitery, so I probably can't be of any help. |
|
![]() |
![]() |
![]() |
#4 | ||
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
It might. There are two machines involved, both responding to "hot plug" events.
Let's walk this through in a bit of detail. Quote:
? Does the Kindle detect that ? (I don't have a working kindle at the moment to test this). If the Kindle did not detect that - then nothing has changed at the Kindle "device end" of the connection. And there is nothing to be done at/on the Kindle. What you need is to "reattach" the USB device on the host end after the "eject" on the host end. How that gets done depends on the OS the host end is running. If the Kindle did detect that ("eject" or "safely remove") - then you would have to "reattach" the USB device in both the Kindle/Linux OS and in the host/whatever OS. Need more details than where provided to answer either case above. Quote:
The how-to fake a "hot plug" (or "plug&play") event differs by OS. I hope that helps clarify the reasons for my question. |
||
![]() |
![]() |
![]() |
#5 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Yep, it does. While mounted, it shows the "If you want to read while charging, eject the Kindle, but leave the cable plugged" (or so). After unmounting, it becomes usable (and also, only then do the files on /mnt/us become accessible to programs running on the Kindle, as stated in another thread).
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2012
Location: UK
Device: Kindle Touch
|
Yes, you understood my question correctly. I notice that when my computer goes to stand-by while connected, my Kindle appears to do the same, and when my computer wakes up Kindle goes back to USB drive mode. That made me think there might be a way to fool the system. You are right, one way would be to make a special cable or USB hub with a switch to interrupt the connection for a moment.
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 32
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
|
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2012
Location: UK
Device: Kindle Touch
|
|
![]() |
![]() |
![]() |
#9 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I couldn't check that myself and I had forgotten that it switched to "charging" mode. So the process would be to reverse (on the Kindle) the switch to "charging" mode; Re-enable the "device gadget" kernel module (if it was removed by the switch); and then - if those changes where not auto-detected by the host end OS - do a "re-attach" at the host end. At which point, the answer to the O.P's question is: No. If the host end OS does auto-detect the mode-change at the device (Kindle) end, then the process above should do the job. In which case the answer to the O.P's question is: Yes. All too complicated for me - I would rather just unplug/plug the cable. ![]() |
|
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
-- DELETED --
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 32
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
|
|
![]() |
![]() |
![]() |
#12 | ||
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
How to reset the USB device(s) from (host PC) software to force redetect: http://stackoverflow.com/questions/9...he-windows-api Quote:
Last edited by geekmaster; 05-29-2012 at 08:41 AM. |
||
![]() |
![]() |
![]() |
#13 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Following commands executed on KT did the trick:
Code:
lipc-send-event com.lab126.hal usbPlugIn lipc-send-event com.lab126.hal usbConfigured Last edited by eureka; 05-29-2012 at 08:28 AM. |
![]() |
![]() |
![]() |
#14 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
BTW, for geeks: KT uses g_file_storage module (with parameter 'removable=y') for exporting it's "disk" as USB Mass Storage device. I've found some descriptions of it's work. As expected, this command exports diagnostic partition
![]() Code:
echo /dev/mmcblk0p2 > /sys/devices/platform/fsl-usb2-udc/gadget/gadget-lun0/file I believe, it's safe to mount exported diagnostic partition on computer for read/write. It's also could be safe to mount exported main partition on computer for read-only. Partition with /var/local should not be exported via this way (as it's mounted by KT OS in read/write mode). The same applies for userstore FAT parition. |
![]() |
![]() |
![]() |
#15 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
http://git.kernel.org/?p=linux/kerne...2202de;hb=HEAD Which is a view on: Documentation/usb/gadget_multi.txt in your kernel source tree. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Did I get my kindle stuck in USB Drive Mode? | peacedog | Amazon Kindle | 9 | 02-13-2020 08:13 AM |
Troubleshooting Kindle 3 usb drive mode problem | readpro | Amazon Kindle | 7 | 10-25-2011 12:22 AM |
Classic Stuck in USB Drive Mode, and worse... | varelov | Barnes & Noble NOOK | 5 | 06-10-2011 10:42 PM |
USB Drive Mode | copyrite | Amazon Kindle | 7 | 02-08-2011 10:47 AM |
USB Drive Mode on K3 | Paulinafrica | Amazon Kindle | 5 | 12-17-2010 12:43 AM |