Add cpu governor getting and setting to steamosctl.

TODO: Need to test this manually but config issues are causing
daemon's to die here currently because of missing paths.
This commit is contained in:
Jeremy Whiting 2024-06-12 16:08:56 -06:00
parent 7f9d25074e
commit c75c50762d
2 changed files with 47 additions and 1 deletions

View file

@ -65,6 +65,16 @@ trait Manager {
#[zbus(property)]
fn set_gpu_performance_level(&self, value: u32) -> zbus::Result<()>;
/// CpuGovernor property
#[zbus(property)]
fn cpu_governor(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn set_cpu_governor(&self, value: u32) -> zbus::Result<()>;
/// CpuGovernors property
#[zbus(property)]
fn cpu_governors(&self) -> zbus::Result<std::collections::HashMap<u32, String>>;
/// GpuPowerProfile property
#[zbus(property)]
fn gpu_power_profile(&self) -> zbus::Result<u32>;