manager: Add stub implementations of min/max properties

This commit is contained in:
Vicki Pfau 2024-04-01 19:12:34 -07:00
parent 406988fbdf
commit 8d92fae7db

View file

@ -271,10 +271,34 @@ impl SteamOSManager {
set_gpu_clocks(clocks).await.is_ok() set_gpu_clocks(clocks).await.is_ok()
} }
#[zbus(property)]
async fn manual_gpu_clock_min(&self) -> u32 {
// TODO: Can this be queried from somewhere?
200
}
#[zbus(property)]
async fn manual_gpu_clock_max(&self) -> u32 {
// TODO: Can this be queried from somewhere?
1600
}
async fn set_tdp_limit(&self, limit: i32) -> bool { async fn set_tdp_limit(&self, limit: i32) -> bool {
set_tdp_limit(limit).await.is_ok() set_tdp_limit(limit).await.is_ok()
} }
#[zbus(property)]
async fn tdp_limit_min(&self) -> u32 {
// TODO: Can this be queried from somewhere?
3
}
#[zbus(property)]
async fn tdp_limit_max(&self) -> u32 {
// TODO: Can this be queried from somewhere?
15
}
#[zbus(property)] #[zbus(property)]
async fn wifi_debug_mode_state(&self) -> u32 { async fn wifi_debug_mode_state(&self) -> u32 {
// Get the wifi debug mode // Get the wifi debug mode