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:
Jeremy Whiting 2024-06-04 15:17:27 -06:00
parent 0759ff7077
commit f30c54c907
2 changed files with 47 additions and 1 deletions

View file

@ -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>;