Skip to content

Draft: support multiple drivers

Antoine Damhet requested to merge xdbob/power-profiles-daemon:multi-drivers into main

Warning: rebasing/squashing still needed when everything is ready

I want to make sure we can align on the overall design of the implementation, once done I will need some guidance/feedback on the following points:

  • how to express "compatibility" between drivers (or that a driver should be "exclusive") -> an exclusive property have been introduced to the drivers
  • what should we do if the drivers don't have the same capability set -> currently the common feature set is exposed
  • how should we handle error on profile activation -> the state is rolled-back before the error propagation

What do you think ?

Client output:

$ powerprofilesctl
  performance:
    Driver:     platform_profile, amd_pstate
    Degraded:   no

* balanced:
    Driver:     platform_profile, amd_pstate

  power-saver:
    Driver:     platform_profile, amd_pstate

Note: I am currently developing on a Lenovo Z13 with platform profiles + amd pstate driver (kernel 5.3.5, amd_pstate=active )

Closes #107 (closed)

Edited by Antoine Damhet

Merge request reports