mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 18:02:00 -04:00
Add gpu power profile(s) property management to steamosctl.
Adds get-gpu-power-profiles to list supported profiles get-gpu-power-profile to list current and set-gpu-power-profile to set.
This commit is contained in:
parent
0759ff7077
commit
f30c54c907
2 changed files with 47 additions and 1 deletions
10
src/proxy.rs
10
src/proxy.rs
|
@ -62,6 +62,16 @@ trait Manager {
|
|||
#[zbus(property)]
|
||||
fn set_gpu_performance_level(&self, value: u32) -> zbus::Result<()>;
|
||||
|
||||
/// GpuPowerProfile property
|
||||
#[zbus(property)]
|
||||
fn gpu_power_profile(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_gpu_power_profile(&self, value: u32) -> zbus::Result<()>;
|
||||
|
||||
/// GpuPowerProfiles property
|
||||
#[zbus(property)]
|
||||
fn gpu_power_profiles(&self) -> zbus::Result<std::collections::HashMap<u32, String>>;
|
||||
|
||||
/// HardwareCurrentlySupported property
|
||||
#[zbus(property)]
|
||||
fn hardware_currently_supported(&self) -> zbus::Result<u32>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue