From 0759ff7077d6802211f475ec45297605f063f280 Mon Sep 17 00:00:00 2001 From: Jeremy Whiting Date: Fri, 31 May 2024 14:39:34 -0600 Subject: [PATCH] Add gpu power profile(s) properties. Add profiles property to give back available profiles on this device. Add profile property to get and set current gpu power profile. Filter possible properties when on deck. Get current profile based on position of * character. Get card0 path based on which cardX has vendor 0x1002 Add some basic tests. TODO: Possibly cache available properties instead of fetching repeatedly. --- com.steampowered.SteamOSManager1.xml | 20 +++ src/hardware.rs | 7 + src/lib.rs | 2 +- src/manager/root.rs | 13 +- src/manager/user.rs | 30 ++++- src/power.rs | 193 ++++++++++++++++++++++++++- 6 files changed, 261 insertions(+), 4 deletions(-) diff --git a/com.steampowered.SteamOSManager1.xml b/com.steampowered.SteamOSManager1.xml index 789f72d..cae4eca 100644 --- a/com.steampowered.SteamOSManager1.xml +++ b/com.steampowered.SteamOSManager1.xml @@ -277,6 +277,26 @@ --> + + + + + + +