Thread: Charger!!!!
View Single Post
Posts: 11 | Thanked: 0 times | Joined on Dec 2009 @ Toronto, Canada
#10
Originally Posted by horus View Post
Shan could you try something like;
Code:
lshal|grep charge
and
Code:
lshal|grep battery
and tell us the outputs. I'd like to compare them to a working unit and see if the booleans are equivalent.
I tried and got as follows...

~ $ lshal|grep charge
battery.charge_level.capacity_state = 'ok' (string)
battery.charge_level.current = 6 (0x6) (int)
battery.charge_level.design = 8 (0x8) (int)
battery.charge_level.last_full = 0 (0x0) (int)
battery.charge_level.percentage = 64 (0x40) (int)
battery.charge_level.unit = 'bars' (string)
battery.is_rechargeable = true (bool)
battery.rechargeable.is_charging = false (bool)
battery.rechargeable.is_discharging = true (bool)
maemo.charger.connection_status = 'disconnected' (string)
maemo.charger.type = 'none' (string)
maemo.rechargeable.charging_status = 'off' (string)
~ $
~ $ lshal|grep battery
battery.charge_level.capacity_state = 'ok' (string)
battery.charge_level.current = 6 (0x6) (int)
battery.charge_level.design = 8 (0x8) (int)
battery.charge_level.last_full = 0 (0x0) (int)
battery.charge_level.percentage = 64 (0x40) (int)
battery.charge_level.unit = 'bars' (string)
battery.is_rechargeable = true (bool)
battery.present = true (bool)
battery.rechargeable.is_charging = false (bool)
battery.rechargeable.is_discharging = true (bool)
battery.remaining_time = 10800 (0x2a30) (int)
battery.remaining_time.calculate_per_time = false (bool)
battery.reporting.current = 810 (0x32a) (int)
battery.reporting.design = 1256 (0x4e8) (int)
battery.reporting.last_full = 0 (0x0) (int)
battery.reporting.unit = 'mAh' (string)
battery.type = 'pda' (string)
battery.voltage.current = 3856 (0xf10) (int)
battery.voltage.design = 4200 (0x1068) (int)
battery.voltage.unit = 'mV' (string)
info.capabilities = {'battery'} (string list)
info.category = 'battery' (string)