chore: remove sudo from bazzite setup script (#1766)

This commit is contained in:
Antheas Kapenekakis 2024-10-23 21:37:10 +02:00 committed by GitHub
parent 4e896d470a
commit 80b5745341
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,8 +242,8 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
if [[ $SYS_ID == "Laptop ("* ]]; then
if [[ ! -f /etc/modprobe.d/alsa.conf ]]; then
echo 'Fixing 3.5mm jack'
sudo tee /etc/modprobe.d/alsa.conf <<< "options snd-hda-intel index=1,0 model=auto,dell-headset-multi"
echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
echo "options snd-hda-intel index=1,0 model=auto,dell-headset-multi" > /etc/modprobe.d/alsa.conf
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
fi
if [[ ! -f /etc/udev/rules.d/20-suspend-fixes.rules ]]; then
echo 'Fixing suspend issue'
@ -253,13 +253,6 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
fi
fi
# ALLY POWER SAVE FIX
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
# WAYDROID FIX
if [[ -f "/var/lib/waydroid/lxc/waydroid/config" ]]; then
echo "Removing unneeded apparmor entry from Waydroid LXC"