GUI for SHR fast charge mode: possible?

Rask Ingemann Lambertsen rask at sygehus.dk
Sun Mar 1 19:25:00 CET 2009


On Sun, Feb 22, 2009 at 01:20:05PM -0500, Joel Newkirk wrote:
> On Sun, 22 Feb 2009 17:37:36 +0100
> Francesco de Virgilio <fradeve11 at gmail.com> wrote:
> 
> > IOError: [Errno 2] No such file or directory:
> > '/sys/class/i2c-adapter/i2c-0/0-0073/charger_type'
> 
> /sys/class/power_supply/adapter/type
> (I think...)

   There's no direct equivalent to charger_type.

$ head /sys/class/power_supply/*/type
==> /sys/class/power_supply/ac/type <==
Mains

==> /sys/class/power_supply/adapter/type <==
Mains

==> /sys/class/power_supply/battery/type <==
Battery

==> /sys/class/power_supply/usb/type <==
USB

$ head /sys/class/power_supply/*/online
==> /sys/class/power_supply/ac/online <==
1

==> /sys/class/power_supply/adapter/online <==
0

==> /sys/class/power_supply/battery/online <==
1

==> /sys/class/power_supply/usb/online <==
0

   Note that unless you solder in such a thing yourself, the GTA01 and GTA02
don't have an adapter input. Also, in latest andy-tracking the USB vs. ac
detection is broken (as is the case in the example above).

> > For me the fast-charging mode is really important to use the Neo in my
> > car, which adaptor for default provides only 100 mhA. Is there a way
> > to set quickly fast-charge mode on SHR unstable?
> 
> /sys/class/power_supply/ac/device/force_usb_limit_dangerous

   That will be /sys/class/power_supply/ac/device/usb_curlim in 2.6.29.

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year




More information about the community mailing list