Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "== Removing PulseAudio from Ubuntu - Why it may not be such a good idea == In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages. Removing...")
 
Line 1: Line 1:
== Removing PulseAudio from Ubuntu - Why it may not be such a good idea ==
== How does this PulseAudio configuration change work? ==
 
What these changes do is stop the PulseAudio daemon for autospawning and taking over
control of the sound devices on your Ubuntu system.
 
== Removing PulseAudio from Ubuntu, why it may not be such a good idea ==


In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.


Removing or purging PulseAudio from a Ubuntu system can break other software on a
Removing or purging PulseAudio from a Ubuntu system can break other software on a
Ubuntu system and potentially cause errors and broken dependencies.
and potentially cause errors and broken dependencies.


The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)
Line 24: Line 29:


* Open a terminal window or SSH into your Ubuntu system.
* Open a terminal window or SSH into your Ubuntu system.
* Copy the global PulseAudio configuration file to your user's local PulseAudio configuration directory:
* Copy the global PulseAudio configuration file to your user's local PulseAudio configuration directory:


Line 30: Line 36:
* Make a backup copy of the global configuration file:
* Make a backup copy of the global configuration file:


<nowiki>cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup</nowiki>
<syntaxhighlight lang="text">
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup
</syntaxhighlight>
 


* Open the local configuration file with a text editor such as nano:
* Open the local configuration file with a text editor such as nano:


<nowiki>nano /home/yourusername/.config/pulse/client.conf</nowiki>
<syntaxhighlight lang="text">
nano /home/yourusername/.config/pulse/client.conf
</syntaxhighlight>
 
: Where ''yourusername'' is the Ubuntu user account where PulseAudio is to be disabled.
 
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:
 
From:
<syntaxhighlight lang="text">
; autospawn = yes
</syntaxhighlight>
 
To:
<syntaxhighlight lang="text">
autospawn = no
</syntaxhighlight>
 
* Save the file, then exit the text editor.
 
* Restart/reboot your Ubuntu system.
 
* PulseAudio should now be turned off.  ALSA will now be used instead.
 
=== How to disable PulseAudio globally (for all users) ===
 
* Open a terminal window or SSH into your Ubuntu system.
 
* Make a backup copy of the global configuration file
 
<syntaxhighlight lang="text">
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup
</syntaxhighlight>
 
* Open the global configuration file with a text editor such as nano:


Where ''yourusername'' is the Ubuntu user account where PulseAudio is to be disabled.
<syntaxhighlight lang="text">
sudo nano /etc/pulse/client.conf
</syntaxhighlight>


* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:


From:
From:
<nowiki>; autospawn = yes</nowiki>
<syntaxhighlight lang="text">
; autospawn = yes
</syntaxhighlight>


To:
To:
<nowiki>autospawn = no</nowiki>
<syntaxhighlight lang="text">
autospawn = no
</syntaxhighlight>


* Save the file, then exit the text editor.
* Save the file, then exit the text editor.


* Restart/reboot your Ubuntu computer.
* Restart/reboot your Ubuntu system.


* PulseAudio should now be turned off.  ALSA will be used instead.
* PulseAudio should now be turned off.  ALSA will now be used instead.

Revision as of 02:22, 26 April 2016

How does this PulseAudio configuration change work?

What these changes do is stop the PulseAudio daemon for autospawning and taking over control of the sound devices on your Ubuntu system.

Removing PulseAudio from Ubuntu, why it may not be such a good idea

In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.

Removing or purging PulseAudio from a Ubuntu system can break other software on a and potentially cause errors and broken dependencies.

The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA) instead.

The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.

There are two methods described in this guide for disabling PulseAudio on Ubuntu:

  • How to disable PulseAudio for a specific user
  • How to disable PulseAudio globally (for all users)
Important Notes
  • The following steps should be done via the terminal or via SSH (Secure Services Host) on

the Ubuntu system to be configured.

  • The user account used to edit/modify the files needs to have sudo rights.

How to disable PulseAudio for a specific user

  • Open a terminal window or SSH into your Ubuntu system.
  • Copy the global PulseAudio configuration file to your user's local PulseAudio configuration directory:

cp /etc/pulse/client.conf /home/yourusername/.config/pulse

  • Make a backup copy of the global configuration file:
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup


  • Open the local configuration file with a text editor such as nano:
nano /home/yourusername/.config/pulse/client.conf
Where yourusername is the Ubuntu user account where PulseAudio is to be disabled.
  • Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:

From:

; autospawn = yes

To:

autospawn = no
  • Save the file, then exit the text editor.
  • Restart/reboot your Ubuntu system.
  • PulseAudio should now be turned off. ALSA will now be used instead.

How to disable PulseAudio globally (for all users)

  • Open a terminal window or SSH into your Ubuntu system.
  • Make a backup copy of the global configuration file
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup
  • Open the global configuration file with a text editor such as nano:
sudo nano /etc/pulse/client.conf
  • Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:

From:

; autospawn = yes

To:

autospawn = no
  • Save the file, then exit the text editor.
  • Restart/reboot your Ubuntu system.
  • PulseAudio should now be turned off. ALSA will now be used instead.