LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2014, 12:30 PM   #16
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873

By default in a lot of distros, pulseaudio will auto start and respawn when stopped. In /etc/pulse/client.conf having the "autospawn = no" line allows you to start and stop pulseaudio as needed. Beyond that the .asoundrc with the four pulse elements is sufficient on most systems that I've used (debian based). Baring special use cases like pulse over jackd. At which point you need the default and daemon configurations in the home config file location for pulse. And the pulseaudio-module-jack package (debian).

$ pulseaudio --start
$ pulseaudio --kill

The way that I started and stopped it when I used it. +/- as it's been a while. Note that it's --kill, as using --stop does nothing. And if autospawn = yes (default), both will effectively do nothing as it respawns when stopped.

$ pavucontrol

To adjust the settings, like which soundcard(s) and which mic(s) to use. Pulseaudio is a needy thing (100MB+ of RAM and 10% less fps on glxgears in my case) so if you have low ram and slow or overloaded cpu traits it will likely not be a pleasant ride. But it should work, mostly.
 
Old 01-04-2016, 04:44 PM   #17
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
This error, I came across myself today. And I didn't find much for solutions when searching the various search engines.

Code:
No protocol specified
E: [pulseaudio] client-conf-x11.c: xcb_connection_has_error() returned true
I previous did not have this issue. Google hinted at an X display open type error. And then I recalled that I was trying to run pulseaudio as a user other than the one who started X. And xhost to the rescue.

As the user who started X, iceweasel (the user who did NOT start X) in this case.
Code:
$ xhost local:iceweasel
And the issue went away (again). I use startx to start X in my case.
 
  


Reply

Tags
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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When Centos 6.3 starting,All services starting OK and starting Atd: OK .And stop scr. DeSouffle Linux - General 4 08-29-2013 12:46 AM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
Anyone using pulseaudio? Daedra Slackware 14 04-15-2010 01:10 PM
Pulseaudio RAFAL Linux - Software 7 08-23-2008 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration