View Single Post
Stskeeps's Avatar
Posts: 1,671 | Thanked: 11,478 times | Joined on Jun 2008 @ Warsaw, Poland
#8
Now with charging (took a little too much voodoo for my taste)

carsten@carsten-tablet:/mnt/initfs$ hal-device bme
udi = '/org/freedesktop/Hal/devices/bme'
battery.rechargeable.is_charging = true (bool)
battery.rechargeable.is_discharging = false (bool)
battery.reporting.design = 1267 (0x4f3) (int)
battery.reporting.unit = 'mAh' (string)
battery.reporting.current = 853 (0x355) (int)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
battery.voltage.design = 4200 (0x1068) (int)
battery.voltage.unit = 'mV' (string)
battery.reporting.last_full = 0 (0x0) (int)
battery.voltage.current = 3819 (0xeeb) (int)
info.addons = { 'hald-addon-bme' } (string list)
info.capabilities = { 'battery' } (string list)
battery.remaining_time.calculate_per_time = false (bool)
info.category = 'battery' (string)
maemo.charger.type = 'wall charger' (string)
info.subsystem = 'unknown' (string)
info.product = 'Battery (BME-HAL)' (string)
info.udi = '/org/freedesktop/Hal/devices/bme' (string)
maemo.charger.connection_status = 'connected' (string)
maemo.rechargeable.charging_status = 'on' (string)
battery.present = true (bool)
battery.type = 'pda' (string)
battery.is_rechargeable = true (bool)
battery.remaining_time = 7200 (0x1c20) (int)
battery.charge_level.capacity_state = 'ok' (string)
battery.charge_level.unit = 'bars' (string)
battery.charge_level.design = 8 (0x8) (int)
battery.charge_level.current = 6 (0x6) (int)
battery.charge_level.percentage = 67 (0x43) (int)
battery.charge_level.last_full = 0 (0x0) (int)
__________________
As you go on to other communities, remember to build them around politeness, respect, trust and humility. Be wary of poisonous people and deal with them before they end up killing your community.. Seen it happen to too many IRC channels, forums, open source projects.
 

The Following 2 Users Say Thank You to Stskeeps For This Useful Post: