Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
---|---|---|---|---|---|---|
0001-main-avoid-variable-name-collisions.patch | main: avoid variable name collisions If an external battery is present, the `battery_*` variables initially containing the sysfs attributes' paths for the main battery are overwritten with the paths for the external battery, leading to wrong reports after the first loop iteration. Renaming the external battery variables to `ebat_*` avoids such collisions. |
Arnaud Ferraris <arnaud.ferraris@collabora.com> | yes | 2022-10-10 | ||
0002-main-improve-handling-of-external-batteries.patch | main: improve handling of external batteries Batteries from connected devices (e.g. wireless keyboard/mouse) are reported as external batteries, but have different sysfs attributes. As an example, my Logitech wireless mouse has `online` instead of `present`, `capacity_level` (as a string) instead of `capacity`, `manufacturer` and `model_name` instead of `device/name`, and lacks the `health` attribute. With such devices, `powersupply` raises an exception when parsing the corresponding battery properties and may end up failing to display any meaningful data at all (tested on a laptop running Debian with python 3.10.7). In order to make `powersupply` more tolerant to such cases, this commit: * adds multiple checks on sysfs attributes' existence * looks at `online` if `present` doesn't exist, defaulting to `True` if none of those is found * falls back to reading `capacity_level` if `capacity` doesn't exist; this implied formatting the capacity string while parsing the battery attributes as `capacity_level` is a free-form string, while `capacity` is an integer representing the battery charge percentage. Fixes #2, #3 |
Arnaud Ferraris <arnaud.ferraris@collabora.com> | yes | 2022-10-10 | ||
0003-main-add-new-name-for-PP-Keyboard-case.patch | main: add new name for PP Keyboard case Now that the PPKB patches have been upstreamed, the battery is named `ip5xxx-battery` instead of `kb151`. Add this possibility so the name is reported properly (the old value is kept for backward compatibility). |
Arnaud Ferraris <arnaud.ferraris@collabora.com> | yes | 2022-10-10 | ||
0004-build-use-the-right-project-name.patch | build: use the right project name I was surprised seeing the files installed under `/usr/share/switcher` instead of `/usr/share/powersupply`, until I noticed that ;) |
Arnaud Ferraris <arnaud.ferraris@collabora.com> | yes | 2022-10-10 | ||
0005-Rename-executable-to-powersupply-gtk.patch | Rename executable to powersupply-gtk As the Debian package is named `powersupply-gtk` in order to avoid using a too generic name, the single executable should be renamed accordingly. |
Arnaud Ferraris <arnaud.ferraris@collabora.com> | not-needed | 2022-10-10 |