From 3e1ab5a2c0e73cc3f84d883030ff335621bd94c7 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 10 Mar 2025 21:26:59 -0700 Subject: [PATCH] hardware: Detect ROG Ally and ROG Ally X --- src/hardware.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hardware.rs b/src/hardware.rs index e48a647..ff9c23d 100644 --- a/src/hardware.rs +++ b/src/hardware.rs @@ -38,6 +38,8 @@ pub(crate) enum DeviceType { SteamDeck, LegionGo, LegionGoS, + RogAlly, + RogAllyX, } #[derive(Display, EnumString, PartialEq, Debug, Copy, Clone, TryFromPrimitive)] @@ -79,6 +81,8 @@ pub(crate) async fn device_variant() -> Result<(DeviceType, String)> { let board_name = fs::read_to_string(path(BOARD_NAME_PATH)).await?; let board_name = board_name.trim_end(); Ok(match (sys_vendor.trim_end(), product_name, board_name) { + ("ASUSTeK COMPUTER INC.", _, "RC71L") => (DeviceType::RogAlly, board_name.to_string()), + ("ASUSTeK COMPUTER INC.", _, "RC72LA") => (DeviceType::RogAllyX, board_name.to_string()), ("LENOVO", "83E1", _) => (DeviceType::LegionGo, product_name.to_string()), ("LENOVO", "83L3" | "83N6" | "83Q2" | "83Q3", _) => { (DeviceType::LegionGoS, product_name.to_string())