From df71a619d963ac3a2a21e9afdcdba0201fa04e6b Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Sat, 16 Dec 2023 14:40:36 -0500 Subject: [PATCH] Update limits config to correctly detect OLED with newer firmware's CPU name --- backend/limits_core/src/json/base.rs | 4 ++-- backend/limits_core/src/json_v2/base.rs | 4 ++-- backend/limits_srv/pt_limits.json | 4 ++-- backend/limits_srv/pt_limits_v2.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/limits_core/src/json/base.rs b/backend/limits_core/src/json/base.rs index 7abf32d..fefab76 100644 --- a/backend/limits_core/src/json/base.rs +++ b/backend/limits_core/src/json/base.rs @@ -20,7 +20,7 @@ impl Default for Base { name: "Steam Deck Custom".to_owned(), conditions: super::Conditions { dmi: None, - cpuinfo: Some("model name\t: AMD Custom APU 0405\n".to_owned()), + cpuinfo: Some("model name\t: AMD Custom APU (0405)|(0932)\n".to_owned()), os: None, command: None, file_exists: Some("./pt_oc.json".into()), @@ -35,7 +35,7 @@ impl Default for Base { name: "Steam Deck".to_owned(), conditions: super::Conditions { dmi: None, - cpuinfo: Some("model name\t: AMD Custom APU 0405\n".to_owned()), + cpuinfo: Some("model name\t: AMD Custom APU (0405)|(0932)\n".to_owned()), os: None, command: None, file_exists: None, diff --git a/backend/limits_core/src/json_v2/base.rs b/backend/limits_core/src/json_v2/base.rs index 987ffda..23c0717 100644 --- a/backend/limits_core/src/json_v2/base.rs +++ b/backend/limits_core/src/json_v2/base.rs @@ -20,7 +20,7 @@ impl Default for Base { name: "Steam Deck Custom".to_owned(), conditions: super::Conditions { dmi: None, - cpuinfo: Some("model name\t: AMD Custom APU 0405\n".to_owned()), + cpuinfo: Some("model name\t: AMD Custom APU (0405)|(0932)\n".to_owned()), os: None, command: None, file_exists: Some("./limits_override.json".into()), @@ -44,7 +44,7 @@ impl Default for Base { name: "Steam Deck".to_owned(), conditions: super::Conditions { dmi: None, - cpuinfo: Some("model name\t: AMD Custom APU 0405\n".to_owned()), + cpuinfo: Some("model name\t: AMD Custom APU (0405)|(0932)\n".to_owned()), os: None, command: None, file_exists: None, diff --git a/backend/limits_srv/pt_limits.json b/backend/limits_srv/pt_limits.json index 198e5ee..2e9264b 100644 --- a/backend/limits_srv/pt_limits.json +++ b/backend/limits_srv/pt_limits.json @@ -4,7 +4,7 @@ "name": "Steam Deck Custom", "conditions": { "dmi": null, - "cpuinfo": "model name\t: AMD Custom APU 0405\n", + "cpuinfo": "model name\t: AMD Custom APU (0405)|(0932)\n", "os": null, "command": null, "file_exists": "./pt_oc.json" @@ -28,7 +28,7 @@ "name": "Steam Deck", "conditions": { "dmi": null, - "cpuinfo": "model name\t: AMD Custom APU 0405\n", + "cpuinfo": "model name\t: AMD Custom APU (0405)|(0932)\n", "os": null, "command": null, "file_exists": null diff --git a/backend/limits_srv/pt_limits_v2.json b/backend/limits_srv/pt_limits_v2.json index 24dcd84..0196b5d 100644 --- a/backend/limits_srv/pt_limits_v2.json +++ b/backend/limits_srv/pt_limits_v2.json @@ -4,7 +4,7 @@ "name": "Steam Deck Custom", "conditions": { "dmi": null, - "cpuinfo": "model name\t: AMD Custom APU 0405\n", + "cpuinfo": "model name\t: AMD Custom APU (0405)|(0932)\n", "os": null, "command": null, "file_exists": "./limits_override.json" @@ -169,7 +169,7 @@ "name": "Steam Deck", "conditions": { "dmi": null, - "cpuinfo": "model name\t: AMD Custom APU 0405\n", + "cpuinfo": "model name\t: AMD Custom APU (0405)|(0932)\n", "os": null, "command": null, "file_exists": null