Skip to content

Commit 80b5745

Browse files
authored
chore: remove sudo from bazzite setup script (#1766)
1 parent 4e896d4 commit 80b5745

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

system_files/desktop/shared/usr/libexec/bazzite-hardware-setup

+2-9
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
242242
if [[ $SYS_ID == "Laptop ("* ]]; then
243243
if [[ ! -f /etc/modprobe.d/alsa.conf ]]; then
244244
echo 'Fixing 3.5mm jack'
245-
sudo tee /etc/modprobe.d/alsa.conf <<< "options snd-hda-intel index=1,0 model=auto,dell-headset-multi"
246-
echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
245+
echo "options snd-hda-intel index=1,0 model=auto,dell-headset-multi" > /etc/modprobe.d/alsa.conf
246+
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
247247
fi
248248
if [[ ! -f /etc/udev/rules.d/20-suspend-fixes.rules ]]; then
249249
echo 'Fixing suspend issue'
@@ -253,13 +253,6 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
253253
fi
254254
fi
255255

256-
# ALLY POWER SAVE FIX
257-
if [[ ":ROG Ally X RC72LA:" =~ ":$SYS_ID:" ]]; then
258-
# Disable amd_pmf until patched upstream
259-
modprobe -r amd_pmf
260-
echo "blacklist amd_pmf" | sudo tee /etc/modprobe.d/hhd-blacklist.conf
261-
fi
262-
263256
# WAYDROID FIX
264257
if [[ -f "/var/lib/waydroid/lxc/waydroid/config" ]]; then
265258
echo "Removing unneeded apparmor entry from Waydroid LXC"

0 commit comments

Comments
 (0)