fix(deck): Correct default scale

This commit is contained in:
Kyle Gospodnetich 2024-02-25 01:13:40 -08:00
parent d8df22a0b4
commit 65b9206727
2 changed files with 5 additions and 7 deletions

View File

@ -28,15 +28,13 @@ sleep 1
# Debug: Get current outputs
kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log
# Fix default scale on for Steam Deck hardware
if /usr/libexec/hardware/valve-hardware; then
kscreen-doctor output.1.scale.1.00 2>&1 | tee -a /tmp/bazrotfix.log
fi
# Fix desktop orientation
# Rotation options: right, normal, left, inverted
echo $(date '+%Y-%m-%d %H:%M:%S') Fixing desktop orientation... | tee -a /tmp/bazrotfix.log
if [[ ! -z "$IS_GAMEMODE" ]]; then
if /usr/libexec/hardware/valve-hardware; then
# Fix default scale on for Steam Deck hardware
kscreen-doctor output.1.scale.1.00 2>&1 | tee -a /tmp/bazrotfix.log
elif [[ ! -z "$IS_GAMEMODE" ]]; then
kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log
elif [[ ":83E1:Loki Max:" =~ ":$SYS_ID:" ]]; then
kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log

View File

@ -1,7 +1,7 @@
#!/usr/bin/bash
# Returns true for hardware that needs a rotation fix in KDE
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
if [[ ":ROG Ally RC71L_RC71L:ROG Ally RC71L:83E1:Loki Max:G1618-04:21A0007TUK:" =~ ":$SYS_ID:" ]]; then
if [[ ":Galileo:Jupiter:ROG Ally RC71L_RC71L:ROG Ally RC71L:83E1:Loki Max:G1618-04:21A0007TUK:" =~ ":$SYS_ID:" ]]; then
exit 0
else
exit 1