Bastien Nocera
761fd8b700
main: Fix transitioning to uninhibited profiles
...
They would always fail because the ppd_profile_driver_get_inhibited()
doesn't return NULL, only empty strings.
2020-07-16 17:02:14 +02:00
Bastien Nocera
979a47b7ef
main: Fix sending "Inhibited" D-Bus property updates
...
Copy-pasta error.
2020-07-16 17:02:14 +02:00
Bastien Nocera
791fab922f
main: Simplify loop limit
...
from:
G_N_ELEMENTS(data->profile_data) with profile_data[NUM_PROFILES]
to:
NUM_PROFILES
2020-07-16 17:02:14 +02:00
Bastien Nocera
fe11d1ae3a
main: Remove dead variable
2020-07-16 17:02:14 +02:00
Bastien Nocera
ba0850806c
main: Add inhibited property helper
...
The existing C API for this property makes it easier to stuff the
results into a GVariant, but makes it harder to know whether there is an
inhibition. Add a helper with a gboolean return to simplify that.
2020-07-16 17:02:14 +02:00
Bastien Nocera
f7ad2b97af
drivers: Add Lenovo DYTC driver
...
Add a driver for Lenovo laptops with the lap detection feature exported
through DYTC. Performance mode is inhibited when the dytc_lapmode is
"1".
2020-07-16 17:02:14 +02:00
Bastien Nocera
b991fbb1a8
main: Add driver selection
...
Probe whether drivers should be used on the system before selecting them
as the driver for a particular profile.
2020-07-16 17:02:14 +02:00
Bastien Nocera
f4035f41ee
main: Add ->probe member for profile drivers
2020-07-16 17:02:14 +02:00
Bastien Nocera
4ea7c96949
power-profiles-daemon
2020-07-10 17:29:23 +02:00