Author Topic: Kindle Eject and Mount  (Read 1922 times)

Offline The Chief

  • Hero Member
  • *****
  • Posts: 2339
Re: Kindle Eject and Mount
« Reply #15 on: October 11, 2011, 04:42:22 PM »
I suppose what he really needs is a way to make it charge from the USB connector without ejecting it.   

Perhaps that would be simpler to figure out - but not by me, I don't even understand why it doesn't charge anytime the cable is plugged in... the power is there, on the connector.

Retired Senior Chief, Retired Software Engineer, Active GrandPa

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #16 on: October 11, 2011, 06:33:26 PM »
I suppose what he really needs is a way to make it charge from the USB connector without ejecting it.  

Perhaps that would be simpler to figure out - but not by me, I don't even understand why it doesn't charge anytime the cable is plugged in... the power is there, on the connector.


Blackberries have a similiar issue with charging, and a piece of software was written as part of an opensource software solution for blackberry on linux to address this.  I believe it has something to do with standard USB protocol not supplying enough power...  The project is called Barry (the specific part is bcharge)..  For someone with time and programming experience it might be possible to modify the software for the kindle (..add the device ID's tothe software to trick it into thinking the kindle is a blackberry and increase the current on that USB port) ???


EDIT:  here is a better explanation:
Quote
'bcharge' is a utility that's part of the Barry project - which aims to be a complete desktop toolset for interfacing your BlackBerry with linux. The purpose of the bcharge tool is to detect when a BB has been plugged in and then alter the current to the USB port - it will increase the default 100mA flow up to 500mA, which is what the BlackBerry is expecting. This is exactly what the Windows driver does.
« Last Edit: October 11, 2011, 06:38:52 PM by travisn000 »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #17 on: October 11, 2011, 07:07:04 PM »
Another (easier) possibility to hack might be the iPad charging software from Rainbow software...  It does essentially the same as bcharge, but is available as a discreet piece of software (..easier to modify and compile).  It is available here:

http://www.rainbow-software.org/linux/

EDIT:

I just downloaded the source for this app...  it looks pretty easy to modify...  you just need the vendor and product ID's for your device (get them via the "lsusb" command when the kindle is plugged in), and then modify the ipad_charge.c and 95-ipad_charge.rules files to use the vendor ID and product ID of your device.  After that it should be a simple make  / make install procedure.
« Last Edit: October 11, 2011, 07:33:15 PM by travisn000 »

Offline The Chief

  • Hero Member
  • *****
  • Posts: 2339
Re: Kindle Eject and Mount
« Reply #18 on: October 12, 2011, 10:41:08 AM »
Another (easier) possibility to hack might be the iPad charging software from Rainbow software...  It does essentially the same as bcharge, but is available as a discreet piece of software (..easier to modify and compile).  It is available here:

http://www.rainbow-software.org/linux/

EDIT:

I just downloaded the source for this app...  it looks pretty easy to modify...  you just need the vendor and product ID's for your device (get them via the "lsusb" command when the kindle is plugged in), and then modify the ipad_charge.c and 95-ipad_charge.rules files to use the vendor ID and product ID of your device.  After that it should be a simple make  / make install procedure.


I just grabbed the source, too.  I'll take a look to see how hard I think it might be to set it up for multiple devices, and allow the user to add/delete devices (even if they have to edit a config file).  Or maybe just move the device IDs to a config file.

Retired Senior Chief, Retired Software Engineer, Active GrandPa

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #19 on: October 12, 2011, 01:30:54 PM »
I just grabbed the source, too.  I'll take a look to see how hard I think it might be to set it up for multiple devices, and allow the user to add/delete devices (even if they have to edit a config file).  Or maybe just move the device IDs to a config file.

I had hoped someone with C/C++ programming expierience would jump in!

If you can get the main app set up to read from a config file, I can write a short bash/gtkdialog GUI to help users with setup

(help them to locate device/vendor ID's, write them to a config file, and then write the matching udev rules to the rules file).
« Last Edit: October 12, 2011, 02:48:50 PM by travisn000 »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #20 on: October 13, 2011, 09:42:15 PM »
Mark-

I decided to try my hand at altering the ipad_charge app, and I think I found a pretty easy way to make it work for you (and other devices)...  If you are willing to test, post the vendor and device ID for your kindle..  or just the entire output of the command  lsusb  ..with it connected


« Last Edit: October 14, 2011, 05:49:07 AM by travisn000 »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #21 on: October 14, 2011, 05:49:50 AM »

Here is my version:   http://dl.dropbox.com/u/2425248/usb_charge-1.1.tar.gz

I went ahead and set it up with the existing vendor/product ID's for ipad/ipad2, as well as a vendor/product ID for a Kindle that I found posted on the internet (VENDOR_ID="0x1949", PRODUCT_ID="0x0004"); I also compiled it, so all you should have to do is download, unzip, cd into folder, and run (as root) "make install" (or just manually copy the usb_charge binary to /usr/bin and 95-usb_charge.rules to /etc/udev/rules.d.)
 ;D

Online Crow

  • Hero Member
  • *****
  • Posts: 8817
  • OBJECTS IN MIRROR... ARE LOSING
Re: Kindle Eject and Mount
« Reply #22 on: February 12, 2012, 09:16:23 PM »
travisN000 I just noted that I can unmount and eject the Kindle in LXDE + task-enlightenment using the "places" widget and it charges without problems.

Did you received feedback about usb_charge?
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3231
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kindle Eject and Mount
« Reply #23 on: February 13, 2012, 09:21:24 AM »
travisN000 I just noted that I can unmount and eject the Kindle in LXDE + task-enlightenment using the "places" widget and it charges without problems.

Did you received feedback about usb_charge?

Yes, I simply issue the eject command and it goes right into charging mode.:) 

Thing is though, since getting the tablet, not using the Kindle as much.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Online Crow

  • Hero Member
  • *****
  • Posts: 8817
  • OBJECTS IN MIRROR... ARE LOSING
Re: Kindle Eject and Mount
« Reply #24 on: February 13, 2012, 08:08:20 PM »
I finally got a second Kindle and I'm using it daily  :)  I have all kind of texts from novels to work documents
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #25 on: February 14, 2012, 07:41:41 AM »
travisN000 I just noted that I can unmount and eject the Kindle in LXDE + task-enlightenment using the "places" widget and it charges without problems.

Did you received feedback about usb_charge?

.. as far as I know, nobody has tested it....  I cannot, as I don't own one (I bought a nook color and nook tab)

Online Crow

  • Hero Member
  • *****
  • Posts: 8817
  • OBJECTS IN MIRROR... ARE LOSING
Re: Kindle Eject and Mount
« Reply #26 on: February 14, 2012, 05:19:42 PM »
I will do it as soon as I have time, lots of work lately  :)
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412