mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-05 14:10:34 -04:00
manager/user: Move relevant methods to GpuPowerProfile1, update as specified
This commit is contained in:
parent
41382c7158
commit
fc25da30af
6 changed files with 84 additions and 88 deletions
|
@ -184,7 +184,7 @@ impl SteamOSManager {
|
|||
.await
|
||||
}
|
||||
|
||||
async fn set_gpu_power_profile(&self, value: u32) -> fdo::Result<()> {
|
||||
async fn set_gpu_power_profile(&self, value: &str) -> fdo::Result<()> {
|
||||
let profile = GPUPowerProfile::try_from(value).map_err(to_zbus_fdo_error)?;
|
||||
set_gpu_power_profile(profile)
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue