valr / cbatticon

A lightweight and fast battery icon that sits in your system tray
GNU General Public License v2.0
168 stars 40 forks source link

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

Open valr opened 6 years ago

valr commented 6 years ago

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.