Skip to content

Commit 051491c

Browse files
committed
raspbiantools: disable PulseAudio on Buster after install
PulseAudio is pulled by installing the desktop since [1] on `buster`. Changed the install procedure to disable it after adding the desktop and to replace the volume applet for `lxpanel` with the version that supports ALSA (otherwise `lxpanel` crashes, leaving the deskop unusable). [1] https://www.raspberrypi.com/news/new-raspberry-pi-os-release-december-2020/
1 parent 9e8f610 commit 051491c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scriptmodules/supplementary/raspbiantools.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ function apt_upgrade_raspbiantools() {
2525
function lxde_raspbiantools() {
2626
aptInstall --no-install-recommends xorg lxde
2727
aptInstall raspberrypi-ui-mods rpi-chromium-mods gvfs
28+
# On `buster`, disable PulseAudio since it messes up the audio settings
29+
# remove the lxpanel plugin for PulseAudio volume, to prevent a crash due to missing PulseAudio
30+
# and install the volume lxpanel plugin that supports ALSA
31+
if [[ "$__os_debian_ver" -lt 11 ]]; then
32+
__toggle_pulseaudio_audiosettings "off"
33+
aptRemove lxplug-volumepulse
34+
aptInstall lxplug-volume
35+
fi
2836

2937
setConfigRoot "ports"
3038
addPort "lxde" "lxde" "Desktop" "XINIT:startx"

0 commit comments

Comments
 (0)