Open strugee opened 1 month ago
Is powerprofilesctl
available? If the profile names vary we could ship a list of preferred names to opportunistically select when seen.
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.
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.