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