From 65a81cee47c937cf07d70f8717d2f6225135b9f8 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 21 Aug 2024 22:35:57 -0700 Subject: [PATCH] power: Add LowPowerMode1 service Add a new service to limit the platform TDP while handles are still held. This feature is currently limited to the Steam Deck. --- com.steampowered.SteamOSManager1.xml | 36 +++ data/platforms/jupiter.toml | 1 + src/bin/steamosctl.rs | 15 +- src/daemon/user.rs | 17 +- src/manager/root.rs | 11 +- src/manager/user.rs | 197 ++++++++++--- src/platform.rs | 2 + src/power.rs | 414 ++++++++++++++++++++++++++- src/proxy/low_power_mode1.rs | 27 ++ src/proxy/mod.rs | 2 + 10 files changed, 666 insertions(+), 56 deletions(-) create mode 100644 src/proxy/low_power_mode1.rs diff --git a/com.steampowered.SteamOSManager1.xml b/com.steampowered.SteamOSManager1.xml index 7207e2e..e32e03b 100644 --- a/com.steampowered.SteamOSManager1.xml +++ b/com.steampowered.SteamOSManager1.xml @@ -206,6 +206,42 @@ + + + + + + + + + + + + + + + +