mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 00:32:52 +00:00
fix(ally): Correct power save issue automatically
This commit is contained in:
parent
b9a9c33ac5
commit
420f934b72
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user