I want to change the pulseaudio config file

24,965

Solution 1

The "official" way to stop autospawning pulseaudio sound server is outlined in this guide from the audio developer team:

Any other method is discouraged as it may seriously break your audio system.

In short you will have to edit the following line in your /etc/pulse/client.conf to:

autospawn = no

You need to edit this file as root.

Changes will take effect after restarting the pulseaudio server with the following command:

pulseaudio -k

Please do backup all files before you edit them to be able to restore settings in case something goes wrong.

Solution 2

In addition to the accepted answer:

You only need to create the file ~/.config/pulse/client.conf which you can edit without root privileges. You can copy the file from /etc/pulse/client.conf:

cp /etc/pulse/client.conf ~/.config/pulse/client.conf

and then open ~/.config/pulse/client.conf in the text editor of your choice to modify the file.

Here the essential part from man pulse-client.conf:

The PulseAudio client library reads configuration directives from a configuration file on startup. If the per-user file ~/.config/pulse/client.conf exists, it is used, otherwise the system configuration file /etc/pulse/client.conf is used.

Share:
24,965

Related videos on Youtube

Paul
Author by

Paul

Updated on September 18, 2022

Comments

  • Paul
    Paul over 1 year

    I want to change the pulseaudio config file as outlined on this page:

    http://www.linuxplanet.com/linuxplanet/tutorials/7130/2 (Internet Archive)

    But if I try to do it from the command line or from going directly to the folder I get permission denied messages. I tried to chmod it, but that doesn't work either.

    I guess I have to log in as root, but there are all sorts of warnings on the net that warn ignoramuses like me not to operate from root because you might destroy the system.

    Is there any other way?

  • Paul
    Paul over 11 years
    I followed the instructions on the Wiki page above and it worked for two days. But now, even though I have autospawn = no the dang thing keeps coming up after I kill it
  • jarno
    jarno over 4 years
    Or copy /etc/pulse/client.conf to ~/.config/pulse/ and change the file there as normal user.