Author Topic: (Solved) I bought a Kindle. Charging battery with PCLinuxOS  (Read 2671 times)

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6232
Re: I bought a Kindle. Charging battery with PCLinuxOS
« Reply #30 on: November 07, 2011, 09:28:26 PM »

why arent these devices autocharge when connected and they need to either be ejected or whatever port they are connected manually turned on for charging?

travisn000, this tool seem to automatically allow charging when a kindle or ipad is plugged in. Is this the expected and desirable feature? what if somebody want the kindle connected but not charging? like when its connected to a laptop that runs on battery?

This solution seem more appropriate that mine since it can pinpoint precise device to work with, unlike mine that just goes with whatever last usb device connected.

Somebody with a kindle should test these and give their opinions. More and more people will start coming and ask for how to charge their kindles and more forum knowledge will go a long way in helping them out.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: I bought a Kindle. Charging battery with PCLinuxOS
« Reply #31 on: November 08, 2011, 09:07:09 AM »
Unfortunately, I haven't had a chance to test.  I've pretty much settled in with the eject command in Konsole.

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.

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4518
  • Philosophy= Bigger Hammer
Re: I bought a Kindle. Charging battery with PCLinuxOS
« Reply #32 on: November 08, 2011, 10:29:21 AM »
George .. could you please mark this thread as solved
Please Donate Today..Or I Will Make You Wish You Had

Offline Georgetoon

  • Hero Member
  • *****
  • Posts: 3187
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: I bought a Kindle. Charging battery with PCLinuxOS
« Reply #33 on: November 08, 2011, 11:06:18 AM »
George .. could you please mark this thread as solved

Apologies.

Done.:)
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.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: I bought a Kindle. Charging battery with PCLinuxOS
« Reply #34 on: November 08, 2011, 07:09:19 PM »

why arent these devices autocharge when connected and they need to either be ejected or whatever port they are connected manually turned on for charging?

travisn000, this tool seem to automatically allow charging when a kindle or ipad is plugged in. Is this the expected and desirable feature? what if somebody want the kindle connected but not charging? like when its connected to a laptop that runs on battery?

From what I understand these devices behave as they do (no charging), because the default power output for a connected usb device is 100 mA, which is not enough to trigger a charging state for such power hungry devices (or even maintain a charge).  USB spec allows for up to up to 500mA of power over usb, which is just enough to trigger charging on most of these devices.  Ejecting the device makes the full 500 mA available again, as does the iPad app that I modified for use with the kindle; the iPad and many similar devices will draw up to 2000mA (2A) from a wall charger (I'm guessing the kernel default to 100mA as a precaution to avoid over powering any device; 100mA is the bottom end of the spec).

As far as the solution I posted, I pretty sure it still allows for regular mount/unmount access to the device; it just uses a udev rule and a few C commands to signal the kernel via libusb that the device can handle the full 500 mA (max) available over USB v2.  

I'm not sure why someone would have a problem with the kernel increasing the power to charging levels every time the device is connected, as any modern device will simply stop accepting the charge if it doesn't need it..  in the unplugged laptop situation I would expect the user would only have the device connected long enough to transfer files and would then disconnect it if they were concerned about power usage.


I suppose the udev rule could probably be modified to use a GUI prompt to ask for permission before upping the current on the device, but I would bet most people would find this quite intrusive.

If there was enough interest we could also write a GUI / script to manage the creation of the udev rules so that any device with similar needs could be used.  Perhaps this management tool would be where the user could set the option to be prompted for charging.


In case any one is interested, all I did with the iPad charging app is to remove the Apple vendor and product ID's from the original app and replace them with variables that could then be set via a command line option.  Since the udev rule that runs the charge application uses these same vendor and product ID's to recognize the device, I had the udev rule pass the ID's to the charge app instead of having them hard coded as they were in the original code.   This should make it work as a more universal charge triggering app as long as a corresponding udev rule is added.

« Last Edit: November 08, 2011, 07:24:13 PM by travisn000 »

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6232
Re: (Solved) I bought a Kindle. Charging battery with PCLinuxOS
« Reply #35 on: November 08, 2011, 07:51:44 PM »

thanks for the explanation travisn000,

autocharging when the device is plugged seem to be a better alternative if the device can still function as expected while charging.

This ipad tool is released under the GPL, it will be nice if it was automatically included in the base install. We will probably score a few cheap points if somebody installs pclinuxos and plug in their kindle or ipad and it automatically start charging.

The tool is small enough and would hardly make a difference in the total image size.

Hopefully somebody with a kindle and willing to test it will come forward.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline ElCuervo

  • Hero Member
  • *****
  • Posts: 4148
  • I'm walking on sunshine!
Re: (Solved) I bought a Kindle. Charging battery with PCLinuxOS
« Reply #36 on: November 09, 2011, 03:38:17 PM »
I will give it a try as soon as I have my paying work project done ;) - probably next day or two.
"If there were no change, there would be no butterflies" - Walt Disney

http://linuxcounter.net/cert/433721.png

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: (Solved) I bought a Kindle. Charging battery with PCLinuxOS
« Reply #37 on: November 11, 2011, 06:16:16 AM »
I will give it a try as soon as I have my paying work project done ;) - probably next day or two.

thanks!