upower/src/linux
Benjamin Berg 4400ad0944 linux: Move udev device discovery into a separate class
The only thing that is still discovered from the backend is the lid
switch. Though we could also handle that by having a separate signal
that is fired instead of a separate udev client.

This refactors the sibling detection to be event driven. Also changed is
that we jump certain device types when searching for a parent, which
fixes the discovery of wacom tablets for example.

Closes: #182
2022-05-16 16:40:00 +02:00
..
integration-test.py linux: Test that line-power events don't cause battery polling 2022-05-16 09:14:07 +00: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 hid: Use new polling infrastructure 2022-05-10 11:06:18 +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 linux: Move udev device discovery into a separate class 2022-05-16 16:40:00 +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 enumerator: Add UpEnumerator class and udev implementation 2022-05-16 15:48:09 +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.