Skip to contentSkip to conversation

what is the sysfs entry for the battery?

DISCUSSION Robert P. J. Day 1 participant 2 messages May 22, 2014 ACPI

lore
Share & tools
lore
#0 lore raw

currently doing a bit of cleanup to drivers/acpi/Kconfig, and one
reads this:

config ACPI_BATTERY
tristate "Battery"
depends on X86
select POWER_SUPPLY
default y
help
This driver adds support for battery information through /proc/acpi/battery. If you have a mobile system with a battery, say Y.

naturally, the reference to /proc/acpi/battery is a bit outdated, so
i wanted to update that line -- is the current reference to the battery now /sys/class/power_supply/, and probably called "BAT0"? or am i misreading that? thanks.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 14 lines · Robert P. J. Day

currently doing a bit of cleanup to drivers/acpi/Kconfig, and one
reads this:

config ACPI_BATTERY
tristate "Battery"
depends on X86
select POWER_SUPPLY
default y
help
This driver adds support for battery information through /proc/acpi/battery. If you have a mobile system with a battery, say Y.

Quoted 4 lines

naturally, the reference to /proc/acpi/battery is a bit outdated, so
i wanted to update that line -- is the current reference to the battery now /sys/class/power_supply/, and probably called "BAT0"? or am i misreading that? thanks.

never mind, it's pretty clear that's where it is. sorry for the
noise.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================