mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 18:02:00 -04:00
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:
parent
7f9d25074e
commit
c75c50762d
2 changed files with 47 additions and 1 deletions
10
src/proxy.rs
10
src/proxy.rs
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue