Wednesday, March 25, 2009

ACPI Smart Battery System

https://help.ubuntu.com/community/ACPIBattery
http://sbs-forum.org/


In power_supply_sysfs.c, define the following attribue(/sys/class/power_supply/BAT0):

alarm current_now power technology voltage_now
charge_full device present type
charge_full_design manufacturer status uevent
charge_now model_name subsystem voltage_min_design

These interface will call device get_property function.
Machine with ACPI smart battery provide the corresponding function(sbs.c). Actually, it will invoke acpi_smbus_read(sbshc.c, SMBUS protocol) and just using EC(BIOS) to get the info.

No comments:

Related Posts Plugin for WordPress, Blogger...