mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-06 00:39:52 +00:00
fix(deck): Correct default scale
This commit is contained in:
parent
d8df22a0b4
commit
65b9206727
@ -28,15 +28,13 @@ sleep 1
|
|||||||
# Debug: Get current outputs
|
# Debug: Get current outputs
|
||||||
kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log
|
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
|
# Fix desktop orientation
|
||||||
# Rotation options: right, normal, left, inverted
|
# Rotation options: right, normal, left, inverted
|
||||||
echo $(date '+%Y-%m-%d %H:%M:%S') Fixing desktop orientation... | tee -a /tmp/bazrotfix.log
|
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
|
kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log
|
||||||
elif [[ ":83E1:Loki Max:" =~ ":$SYS_ID:" ]]; then
|
elif [[ ":83E1:Loki Max:" =~ ":$SYS_ID:" ]]; then
|
||||||
kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log
|
kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
# Returns true for hardware that needs a rotation fix in KDE
|
# Returns true for hardware that needs a rotation fix in KDE
|
||||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
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
|
exit 0
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user