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

When enabled in kernel, test power supplies take precedence over real battery in cbatticon #47

Open
valr opened this issue Mar 25, 2018 · 0 comments

Comments

@valr
Copy link
Owner

valr commented Mar 25, 2018

As reported by OldCoder (Robert Kiraly), the kernel exposes some test power supplies (test_battery, test_ac, test_usb) when the kernel is either compiled with CONFIG_TEST_POWER=y or CONFIG_TEST_POWER=m and the 'test_module' is loaded.

Because it comes first in the list, when cbatticon is running without argument, it will first see the test battery and not the real one. This could be reviewed to e.g. exclude the test power supplies.

On the other hand, having test power supplies might be helpfull for debugging purpose. So, I will see if I can exclude them by default, still keeping them for debugging purpose if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant