test: Use powersave on Ally/Ally X, test alternative sleep path by Antheas

This commit is contained in:
Kyle Gospodnetich 2024-09-24 12:21:27 -07:00
parent 919295eb8d
commit 38440064fa
2 changed files with 3 additions and 4 deletions

View File

@ -1,2 +1,3 @@
[Service]
Environment="HHD_PPD_MASK=1"
Environment="HHD_ALLY_POWERSAVE=1"

View File

@ -247,10 +247,8 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
fi
# ALLY POWER SAVE FIX
if [[ ":ROG Ally RC71L:" =~ ":$SYS_ID:" ]]; then
echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/mcu_powersave
elif [[ ":ROG Ally X RC72LA:" =~ ":$SYS_ID:" ]]; then
echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/mcu_powersave
if [[ ":ROG Ally X RC72LA:" =~ ":$SYS_ID:" ]]; then
# Disable amd_pmf until patched upstream
modprobe -r amd_pmf
echo "blacklist amd_pmf" | sudo tee /etc/modprobe.d/hhd-blacklist.conf
fi