Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31542 - [libacpi] 0.2-3 does not report battery status correctly on newer (3.5+) kernels.

Attached to Project: Community Packages
Opened by Aravind Gottipati (aravind) - Friday, 14 September 2012, 23:45 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 17 September 2012, 07:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I tested this using the test-libacpi program that ships with the library. I haven't had a chance to look at other things like fan/thermals etc. I mostly looked at battery status, and that is broken. This is mostly because the entries in /sys/class/power_supply/BAT/ changed, and the library hasn't been updated to account for the changes. I managed to fix all of these and have uploaded my fixes to github here - https://github.com/aravind/libacpi. The last commit is the one that patches things to make it work.

Additional info:
* package version: 0.2-3

* log files
Here is the output from my laptop before the library was patched.
----------------------------------------
# /usr/bin/test-libacpi
AC adapter: off-line

BAT: present: 1
design capacity: 5600000
last full capacity: 5216000
design voltage: 11100000
present rate: 0
remaining capacity: 3512000
present voltage: 11432000
charge state: 0
battery state: 0
percentage: 67%
remaining charge time: -35791394:-8 h
remaining time: 00:00 h
BAT: Alarm!
Thermal information not supported
Fan information: not supported
----------------------------------------

Here is the output after my patches.
$ ./test-libacpi
AC adapter: off-line

BAT: present: 1
design capacity: 5600000
last full capacity: 5216000
design voltage: 11100000
present rate: 0
remaining capacity: 3475000
present voltage: 11406000
charge state: 1
battery state: 0
percentage: 66%
remaining charge time: 00:00 h
remaining time: -35791394:-8 h
BAT: Alarm!
Thermal information not supported
Fan information: not supported
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Monday, 17 September 2012, 07:01 GMT
Reason for closing:  None
Additional comments about closing:  No worries, thanks for caring.
Comment by Aravind Gottipati (aravind) - Sunday, 16 September 2012, 02:57 GMT
Ignore the close request please, this bug is filed in the right place. Updated the library code with another patch to restore the ABI. Please use the latest from github.

Loading...