[Bug 207223] acpica/acpi_battery.c: introduce hw.acpi.battery.rate sysctl

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 15 18:29:25 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207223

            Bug ID: 207223
           Summary: acpica/acpi_battery.c: introduce hw.acpi.battery.rate
                    sysctl
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: xmj at FreeBSD.org

Created attachment 167043
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=167043&action=edit
add hw.acpi.battery.rate sysctl oid

Patch attached introduces a sysctl to display the discharging rate of a
battery.

It seems to me (but, I'm not particularly sure) that the info populated into
&acpi_battery_battinfo.rate is -always- converted to Watts (cf
acpi_battery_get_battinfo() lines 202-203.

So we could probably append "mW" to the output, however I'm quite fond of
having it be an integer for the purposes of extending i3 to read this new
sysctl and output it to my status bar. ;-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list