LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 07-27-2017, 07:58 AM   #1
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled
How to successfully disable pulseaudio on a systemd distro


Hi

PA=pulseaudio
There a number of people who still prefer Alsa. This howto can also work for those distros that have a working /etc/rc.local and use BSD init or sysV init. The current distro I use has systemd but also a rc.local service

step one
########
Confirm you have a working /etc/rc.local and rc.local setup, run as local user is OK

Code:
systemctl is-enabled rc.local
if your response is disabled then you need to enable.
On my distro a response of "static" is OK
--means will be used if its changed

Code:
ls -al /etc/rc.local
first permission of rwx, if not executable change it by (assuming you can get root powers by sudo)

Code:
sudo chmod 755 /etc/rc.local
step two
########

copy all system file to local user unless you know all users of PC want PA disabled,
run as local user
Code:
cp /etc/pulse/* ~/.config/pulse
step three
##########
edit .config/pulse/client.conf (as a local user) by removing the ; and change yes to no so one line reads as
Quote:
autospawn = no
save the file and exit.
--For those wanting multiple users to be affected edit /etc/client.conf

step four
########
use root powers to edit /etc/rc.local
so that you place the line above the exit 0 line so it reads

Quote:
killall pulseaudio
exit 0
step five
#########
full reboot

open terminal as a local user
if alsamixer command returns pulseaudio in the output you might need to do more

run htop and press F3 and start typing pul....it should show red meaning it is not running

http://imgur.com/a/txidR

if you get hit, you may need full pathway to killall
OR
your rc.local is not set up correctly

Code:
alsamixer
may show analog or hdmi

but that is a different howto

Last edited by aus9; 07-27-2017 at 08:07 AM.
 
Old 07-27-2017, 08:04 AM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Original Poster
Rep: Reputation: Disabled
depending on distro, step four may need full pathway to run killall

one way to find it is

Code:
sudo updatedb
locate killall
Also if you try to run pavucontrol it should now fail.
Also any volume applet in your panel that normally interfaces with PA will now fail.
but VLC and better players still support alsa so you can still play audio or dvds
but FF will no longer play youtube

Last edited by aus9; 07-27-2017 at 08:17 AM.
 
  


Reply

Tags
alsa, pulseaudio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora26 (Rawhide)-- have successfully configured system to boot and run without any running instances of systemd firejuggler86 Fedora 7 11-22-2016 03:29 PM
Is SLACKWARE cleaner & more Linux than DEBIAN (free of junk, spywares, systemd, pulseaudio,...)? Xeratul Linux - Distributions 10 07-29-2016 04:36 PM
How to disable certain services (e.g. avahi-daemon) under systemd? wirawan0 Debian 4 09-06-2015 12:46 PM
LXer: Systemd: The New PulseAudio LXer Syndicated Linux News 0 04-13-2013 04:21 PM
Mandriva: how to disable pulseaudio and enable Alsa veezee Linux - Hardware 5 09-16-2009 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration