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.
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.