upower/src/linux
Bastien Nocera 12e97ebba3 linux: Detect headset devices with kernel batteries
The code that handles battery information coming from the kernel didn't
have any code to set audio type of devices. As we add support for USB
wireless headsets in the kernel, add code to detect those and set the
UPDevice kind to the right value.

Closes: #229
2023-04-15 15:12:10 +02:00
..
tests linux: Update udev dumps to be usable with umockdev 2022-05-16 16:40:00 +02:00
integration-test.py tests: Fix charging test in test_battery_state_guessing 2023-04-15 14:10:23 +02:00
meson.build linux: Add new UpDeviceSupplyBattery class 2022-06-21 11:16:01 +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: Fix warning when a duplicate device appears 2023-02-28 13:05:28 +01:00
up-device-bluez.c linux: Demote warning to debug 2023-02-27 14:12:39 +01: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 setting the model 2022-11-16 16:14:40 +01:00
up-device-idevice.h device: Handle device coldplug using GInitable 2022-04-20 14:30:00 +02:00
up-device-supply-battery.c supply-battery: Assume battery is present if the attr is missing 2022-09-09 16:28:11 +02:00
up-device-supply-battery.h linux: Add new UpDeviceSupplyBattery class 2022-06-21 11:16:01 +02:00
up-device-supply.c linux: Detect headset devices with kernel batteries 2023-04-15 15:12:10 +02:00
up-device-supply.h linux: Add new UpDeviceSupplyBattery class 2022-06-21 11:16:01 +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: Detect headset devices with kernel batteries 2023-04-15 15:12:10 +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.