From 65ee50f8419bb710d9cb0c3881d2d66def502645 Mon Sep 17 00:00:00 2001 From: Matthew Schwartz Date: Tue, 27 May 2025 21:06:37 -0700 Subject: [PATCH] platform: Add platform configuration for ROG Ally and ROG Ally X Both the ROG Ally and ROG Ally X share the same performance profiles and platform controls, so we can use a single toml file for both devices. --- data/platforms/rog-ally-series.toml | 12 ++++++++++++ src/platform.rs | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 data/platforms/rog-ally-series.toml diff --git a/data/platforms/rog-ally-series.toml b/data/platforms/rog-ally-series.toml new file mode 100644 index 0000000..07d2c5f --- /dev/null +++ b/data/platforms/rog-ally-series.toml @@ -0,0 +1,12 @@ +[performance_profile] +platform_profile_name = "asus-wmi" +# until custom mode is added +suggested_default = "performance" + +[tdp_limit] +method = "firmware_attribute" + +[tdp_limit.firmware_attribute] +attribute = "asus-armoury" +# until custom mode is added +performance_profile = "performance" diff --git a/src/platform.rs b/src/platform.rs index 419da83..851396c 100644 --- a/src/platform.rs +++ b/src/platform.rs @@ -167,6 +167,8 @@ impl PlatformConfig { DeviceType::SteamDeck => "jupiter", DeviceType::LegionGo => "legion-go-series", DeviceType::LegionGoS => "legion-go-series", + DeviceType::RogAlly => "rog-ally-series", + DeviceType::RogAllyX => "rog-ally-series", _ => return Ok(None), }; let config = read_to_string(format!(