The officially official Devuan Forum!

You are not logged in.

#1 2024-01-07 09:52:16

kapqa
Member
Registered: 2019-01-02
Posts: 336  

removing pulseaudio correctly / Chimaera

Hello ,

i have upgraded my Alsa-Only Laptop from Jessie to Chimaera and have found that it again installed Pulseaudio in the process.

Since on Linux Laptop Audio is generally weak-spot, thought that Alsa-only at least alleviates the issue;

Now, i have an old command that i copy-pasted from the internet in use since debian wheezy, which helped well,
but i needs to adapt for 2024.

now, if i like to use the command, it would deinstall also XFCE4 and Task-Desktop-XFCE4, which i like to avoid.

Please help to adapt the command to achieve this.

original command

sudo killall pulseaudio
sudo apt-get purge pulseaudio pulseaudio-utils gstreamer0.10-pulseaudio libpulse-browse0 paman pavumeter pavucontrol
sudo mv /etc/asound.conf /etc/asound.conf.bak
rm ~/.pulse-cookie
rm -r ~/.pulse
sudo apt-get install alsa-base alsa-tools alsa-tools-gui alsa-utils alsa-oss alsamixergui libalsaplayer0

newer version?

 sudo apt-get purge pulseaudio pulseaudio-utils gstreamer1.0-pulseaudio libpulse-mainloop-glib0 paman pavumeter pavucontrol

however

sudo apt-get purge pulseaudio pulseaudio-utils gstreamer1.0-pulseaudio libpulse-mainloop-glib0 paman pavumeter pavucontrol
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'paman' is not installed, so not removed
Package 'pavumeter' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5
  coinor-libcoinutils3v5 coinor-libosi1v5 cups-pk-helper dns-root-data
  dnsmasq-base espeak-ng-data exfalso fonts-font-awesome fonts-lato gimp-data
  gir1.2-atspi-2.0 gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0
  gir1.2-gtksource-3.0 gir1.2-javascriptcoregtk-4.0 gir1.2-keybinder-3.0
  gir1.2-notify-0.7 gir1.2-packagekitglib-1.0 gir1.2-polkit-1.0
  gir1.2-secret-1 gir1.2-soup-2.4 gir1.2-webkit2-4.0 gir1.2-wnck-3.0
  gnome-keyring gnome-keyring-pkcs11 gstreamer1.0-gtk3 hddtemp hyphen-en-us
  iptables libamd2 libao-common libao4 libappstream4 libatk-adaptor
  libatkmm-1.6-1v5 libaudio2 libayatana-appindicator3-1 libayatana-ido3-0.4-0
  libayatana-indicator3-7 libbabl-0.1-0 libbluetooth3 libbrlapi0.8 libburn4
  libcairomm-1.0-1v5 libcamd2 libcanberra-gtk3-0 libcanberra-gtk3-module
  libccolamd2 libcdr-0.1-1 libcholmod3 libck-connector0 libcolamd2
  libdbusmenu-glib4 libdbusmenu-gtk3-4 libdotconf0 libespeak-ng1 libexiv2-27
  libfreehand-0.1-1 libgegl-0.4-0 libgegl-common libgexiv2-2 libgimp2.0
  libglib2.0-bin libglibmm-2.4-1v5 libgtkmm-3.0-1v5 libgtksourceview-3.0-1
  libgtksourceview-3.0-common libgtop-2.0-11 libgtop2-common libip4tc2
  libip6tc2 libisofs6 libjte2 libkeybinder-3.0-0 libldb2 libmetis5
  libmspub-0.1-1 libndp0 libnetfilter-conntrack3 libnfnetlink0 libnm0
  libnma-common libnma0 libpackagekit-glib2-18 libpagemaker-0.0-0
  libpam-gnome-keyring libpangomm-1.4-1v5 libpcaudio0 libpulsedsp libqrencode4
  libqxp-0.0-0 libraw20 libreoffice-calc libreoffice-draw libreoffice-gtk3
  libreoffice-help-en-us libreoffice-impress libsigc++-2.0-0v5 libsmbclient
  libsonic0 libspeechd2 libspeexdsp1 libstemmer0d libsuitesparseconfig5
  libtagc0 libtalloc2 libteamdctl0 libtevent0 libumfpack5 libvisio-0.1-1
  libwbclient0 libxfce4ui-utils libxnvctrl0 libzmf-0.0-0 lp-solve
  mobile-broadband-provider-info mousepad mythes-en-us network-manager
  network-manager-gnome orca p11-kit p11-kit-modules p7zip p7zip-full
  packagekit packagekit-tools parole perl-tk python3-brlapi python3-cairo
  python3-cups python3-cupshelpers python3-gi-cairo python3-ldb python3-louis
  python3-musicbrainzngs python3-mutagen python3-pyatspi python3-pyinotify
  python3-smbc python3-talloc ristretto rtkit samba-libs slim sound-icons
  speech-dispatcher speech-dispatcher-audio-plugins
  speech-dispatcher-espeak-ng sphinx-rtd-theme-common system-config-printer
  system-config-printer-common system-config-printer-udev tango-icon-theme
  thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman
  xarchiver xbrlapi xfburn xfce4-appfinder xfce4-battery-plugin xfce4-clipman
  xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin
  xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin
  xfce4-genmon-plugin xfce4-goodies xfce4-mailwatch-plugin
  xfce4-netload-plugin xfce4-panel xfce4-places-plugin xfce4-power-manager
  xfce4-power-manager-data xfce4-power-manager-plugins xfce4-sensors-plugin
  xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager
  xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin
  xfce4-weather-plugin xfce4-whiskermenu-plugin xkbset xsane xsane-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  gstreamer1.0-pulseaudio* libpulse-mainloop-glib0* pavucontrol* pulseaudio*
  pulseaudio-utils* quodlibet* task-xfce-desktop* xfce4*
  xfce4-pulseaudio-plugin*
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
After this operation, 10.5 MB disk space will be freed.
Do you want to continue? [Y/n]

Thank you very much.

Offline

#2 2024-01-07 10:03:36

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,259  

Re: removing pulseaudio correctly / Chimaera

Perhaps if you avoid removing libpulse-mainloop-glib0 it might not remove xfce4 and hopefully retain that which you will want to retain.

btw, such output you should rather wrap as "code" than "quote" which would have made a scrolling element instead of a full two pages with such "nothingness".

Offline

#3 2024-01-07 11:24:44

kapqa
Member
Registered: 2019-01-02
Posts: 336  

Re: removing pulseaudio correctly / Chimaera

Hello Ralph,

thank you for the suggestion,

what i ended up doing is uninstalling "everything" that was proposed, but found out that tasksel would everytime re-install pulseaudio and remove everytime every desktop flavour chosen with all the corresponding packages if afterwards again chosen to remove pulseaudio.

so i then installed xfce4 manually afterwards without tasksel command, but this time added

pulseaudio-

like in

sudo apt-get install xfce4 pulseaudio- xfce4-goodies

which then achieved the desired to stop installing the pulseaudio and doing so without breaking the desktop.

Audio still could be better, but the year is long, so lets hope well.

Last edited by kapqa (2024-01-07 11:27:03)

Offline

#4 2024-01-08 00:28:23

rdav
Member
Registered: 2017-06-30
Posts: 51  

Re: removing pulseaudio correctly / Chimaera

Hi kapqa,
I too went the "nuclear" route to be rid of pulseaudio and ran into problems.

Until I read this post specifically on how to install pipewire:
https://dev1galaxy.org/viewtopic.php?id=5867

In sort:

  • Install metapackage pipewire-audio: it will remove pulseaudio automatically

  • edit .xsession with code below

  • reboot computer

enjoy the audio from pipewire wink

# kill any existing pipewire instance to restore sound
pkill -u "$USER" -fx /usr/bin/pipewire-pulse 1>/dev/null 2>&1
pkill -u "$USER" -fx /usr/bin/wireplumber 1>/dev/null 2>&1
pkill -u "$USER" -fx /usr/bin/pipewire 1>/dev/null 2>&1
		
exec /usr/bin/pipewire &
		
# wait for pipewire to start before attempting to start related daemons
while [ "$(pgrep -f /usr/bin/pipewire)" = "" ] ; do
   sleep 1
done
		
exec /usr/bin/wireplumber &
		
exec /usr/bin/pipewire-pulse &

Offline

Board footer