Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAHClient does not detect on battery state correctly (Linux) #738

Closed
jcoffland opened this issue Oct 3, 2011 · 2 comments
Closed

FAHClient does not detect on battery state correctly (Linux) #738

jcoffland opened this issue Oct 3, 2011 · 2 comments
Assignees
Labels
0.Status - Fixed Reported issue has been fixed. 1.Type - Defect Reported issue is a defect.

Comments

@jcoffland
Copy link
Member

Trac Data
Ticket 738
Reported by @andrew-schofield
Status closed
Component FAHClient
Priority 3 (major)
Milestone v7.1.36
Keywords linux power battery

FAHClient appears to be checking in the wrong location on my system for the AC supply "online" state.

The AC adapter on my machine is enumerated at
/sys/class/power_supply/AC/
rather than
/sys/class/power_supply/AC0/

No error message appears to get printed to the log to say that it can't find a power supply.
The result is that pause on battery doesn't work, as "On Battery" is always false.

Solution: scan AC* rather than AC0 and if any online return true.

@jcoffland
Copy link
Member Author

Comment by @jcoffland
OK, it will check for both in the next version.

@jcoffland
Copy link
Member Author

Comment by @jcoffland
Fixed v7.1.36.

@jcoffland jcoffland added 1.Type - Defect Reported issue is a defect. 0.Status - Fixed Reported issue has been fixed. labels Apr 3, 2015
@jcoffland jcoffland self-assigned this Apr 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.Status - Fixed Reported issue has been fixed. 1.Type - Defect Reported issue is a defect.
Projects
None yet
Development

No branches or pull requests

1 participant