mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 09:32:55 +00:00
fix: Correct path to rotation fix hardware check.
chore: Add comments and split simpledeckytdp check
This commit is contained in:
parent
19351dbc9a
commit
e31e63bcb2
@ -139,7 +139,7 @@ if [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if /usr/libexec/hardware/hhd-supported-hardware; then
|
||||
if /usr/libexec/hardware/simpledeckytdp-supported-hardware; then
|
||||
if [[ ! $KARGS =~ "iomem" ]]; then
|
||||
echo "Adding needed kargs for ryzenadj"
|
||||
NEEDED_KARGS+=("--append-if-missing=iomem=relaxed")
|
||||
|
@ -136,7 +136,7 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
|
||||
rm -f "$AUTOSTART_FOLDER/autostart/bazzite-handle-legion-go-rotation.desktop"
|
||||
fi
|
||||
|
||||
if /usr/libexec/rotation-fix-hardware && [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
|
||||
if /usr/libexec/hardware/rotation-fix-hardware && [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
|
||||
if [[ ! -f "$AUTOSTART_FOLDER/autostart/bazzite-rotation-fix.desktop" ]]; then
|
||||
echo 'Adding rotation fix'
|
||||
mkdir -p "$AUTOSTART_FOLDER/autostart"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
# Returns true for hardware that is supported by Handycon exclusively.
|
||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||
if [[ ":AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:G1619-04:Win600:" =~ ":$SYS_ID:" ]]; then
|
||||
exit 0
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
# Returns true for hardware that is supported by HHD
|
||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||
if [[ ":ROG Ally RC71L_RC71L:83E1:G1618-04:G1617-01:G1619-05:AIR Plus:" =~ ":$SYS_ID:" ]]; then
|
||||
exit 0
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/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:83E1:Loki Max:G1618-04:" =~ ":$SYS_ID:" ]]; then
|
||||
exit 0
|
||||
|
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/bash
|
||||
# Returns true for hardware that is supported by SimpleDeckyTDP
|
||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||
if [[ ":ROG Ally RC71L_RC71L:83E1:G1618-04:G1617-01:G1619-05:AIR Plus:" =~ ":$SYS_ID:" ]]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
# Returns true for Valve handhelds
|
||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||
if [[ ":Jupiter:Galileo:" =~ ":$SYS_ID:" ]]; then
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user