SeaGL / av-linux

ostree-based, custom-built Linux distribution for running A/V broadcast
Apache License 2.0
2 stars 0 forks source link

Set power profile to Performance #11

Open strugee opened 1 month ago

strugee commented 1 month ago

This isn't as easy as it seems. We can just write /var/lib/power-profiles-daemon/state.ini, but if you actually look at this file, the values are platform-specific. We need to decide whether it's acceptable to hard-code this for the laptops we own currently.

AndrewKvalheim commented 1 month ago

Is powerprofilesctl available? If the profile names vary we could ship a list of preferred names to opportunistically select when seen.

strugee commented 1 month ago

It is indeed. Mostly I don't think this is really worth bothering with.

There's also a /org/gnome/shell/last-selected-power-profile dconf key - not sure how that interacts with powerprofilesctl exactly.