upower/src/linux
Benjamin Berg ce24787165 supply: Use percentage to guess empty STATE
Using energy is broken as the value might be zero if it is not provided.
However, either energy or percentage ("capacity") should have been read
from the sysfs. And, in both cases the percentage should reflect
something reasonable.

Related: #146
2022-06-14 17:02:45 +02:00
..
tests linux: Update udev dumps to be usable with umockdev 2022-05-16 16:40:00 +02:00
integration-test.py test: Properly wait for idle handler after uevents 2022-06-09 12:38:34 +02:00
meson.build enumerator: Add UpEnumerator class and udev implementation 2022-05-16 15:48:09 +02:00
output_checker.py linux: Use OutputChecker to inspect daemon log 2022-05-10 11:06:18 +02:00
README.debugging linux: Add a README with a couple of debugging commands 2018-04-18 16:34:42 +02:00
unittest_inspector.py linux: Split the integration test into individual tests 2021-09-07 11:42:24 +02:00
up-backend.c linux: Move udev device discovery into a separate class 2022-05-16 16:40:00 +02:00
up-device-bluez.c device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-device-bluez.h device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-device-hid.c Move battery type decoding into common file 2022-06-07 16:07:03 +02:00
up-device-hid.h device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-device-idevice.c idevice: Simplify startup handling 2022-05-10 11:06:18 +02:00
up-device-idevice.h device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-device-supply.c supply: Use percentage to guess empty STATE 2022-06-14 17:02:45 +02:00
up-device-supply.h device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-device-wup.c wup: Use new polling infrastructure 2022-05-10 11:06:18 +02:00
up-device-wup.h device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-enumerator-udev.c linux: Do not rely on parent ID lookup to work at removal time 2022-05-17 10:23:52 +02:00
up-enumerator-udev.h enumerator: Add UpEnumerator class and udev implementation 2022-05-16 15:48:09 +02:00
up-input.c input: Fix FD handling and let input stream close it 2022-02-25 10:27:33 +01:00
up-input.h linux: Fix gudev includes for UpInput 2020-11-05 16:40:36 +01:00
up-native.c linux: Add support for Bluetooth LE device batteries 2017-11-02 15:37:39 +01:00

===============
Debugging
===============

When filing new bugs, please include information about the
output of "upower -d", "/usr/libexec/upowerd -v -r", and:
find  /sys/class/power_supply/hidpp_battery_1/ -type f -exec echo {} \; -exec cat {} \; -exec echo \;
as appropriate.