Am Donnerstag, den 08.03.2012, 10:50 -0500 schrieb Piotr Sipika: > On 03/06/2012 05:25 PM, Stefan Handschuh wrote: > > cat /sys/class/power_supply/battery/current_now > > -590000 > > > > cat /sys/class/power_supply/battery/charge_now > > 886000 > > > > cat /sys/class/power_supply/battery/status > > Discharging > This is interesting... Does that mean that values inside current_now are > positive when the battery is charging?
Yes, exactly: cat current_now 1346000 cat status Charging cat model_name PAZ00 cat manufacturer SANYO > > For comparison, this is not the case on my laptop: > $ cat manufacturer > SMP > > $ cat model_name > DELLRD8 > > Power supply connected: > $ cat current_now > 4482000 > > $ cat status > Charging > > Power supply disconnected: > $ cat current_now > 2233000 > > $ cat status > Discharging > > > > So far, I have not found any hint about other hardware that has filled > > current_now with negative values that actually contain useful data (i.e. > > no error). > Me neither, which leads me to believe that the ac100's acpi interaction > is iffy. > > What does 'acpi -b' return on your machine? Well, the kernel does not have acpi support (ARM hardware) > $ acpi -b > Battery 0: Charging, 92%, 417:00:00 until charged > > (that charging time is a bug, too, so it would seem the acpi > interface/implementation might need a bit of work, still) > > All the best! > > Piotr I was able to trace down the problem to the board's driver such that I could fix this problem by patching the kernel. The maintainer of this kernel pointed out that the upower daemon also uses the absolute value: http://cgit.freedesktop.org/upower/tree/src/linux/up-device-supply.c#n658 such that I assume there are other devices that state the charging rate with negative sign, but as stated before, I did not find direct hints about such machines. So I consider this as "fixed" as I will try to get the patch into the kernel. Best regards, Stefan ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Lxde-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxde-list
