fix(ally): Correct power save issue automatically

This commit is contained in:
Kyle Gospodnetich 2024-05-06 23:27:30 -07:00
parent b9a9c33ac5
commit 420f934b72

View File

@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
# SCRIPT VERSION
HWS_VER=39
HWS_VER=40
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)
@ -188,12 +188,18 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
fi
if [[ ! -f /etc/udev/rules.d/20-suspend-fixes.rules ]]; then
echo 'Fixing suspend issue'
echo "ACTION==\"add\", SUBSYSTEM==\"serio\", DRIVERS==\"atkbd\", ATTR{power/wakeup}=\"disabled\"" > /etc/udev/rules.d/20-suspend-fixes.rules'
echo "ACTION==\"add\", SUBSYSTEM==\"serio\", DRIVERS==\"atkbd\", ATTR{power/wakeup}=\"disabled\"" > /etc/udev/rules.d/20-suspend-fixes.rules
fi
fi
fi
fi
# ALLY POWER SAVE FIX
ALLY_LIST="ROG Ally RC71L_RC71L:ROG Ally RC71L"
if [[ ":$ALLY_LIST:" =~ ":$SYS_ID:" ]]; then
echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/mcu_powersave
fi
# WAYDROID FIX
if [[ -f "/var/lib/waydroid/lxc/waydroid/config" ]]; then
echo "Removing unneeded apparmor entry from Waydroid LXC"