LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-07-2018, 12:53 PM   #1
dgrames
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 58

Rep: Reputation: 10
slackware current sound issue


Pulsaudio always starts up with the digital card, and my speakers are analog.
I tried to set the sink to the analog card in /etc/pulse/default.pa and client.conf. I also tried .config/pulse/client.conf.
Is there any way to set this so I don't have th set the card with pulseaudio volume control everytime I start up.
 
Old 07-07-2018, 02:27 PM   #2
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 456

Rep: Reputation: 233Reputation: 233Reputation: 233
You should try to clean up (delete the content) the .config/pulse/ folder for your user. Back it up first!
Kill all user sessions of pulseaudio and as root start pulseaudio and follow this:
https://wiki.archlinux.org/index.php..._output_source
Once you modified your /etc/pulse/default.pa bounce pulseaudio as root:
Code:
pulseaudio -k
pulseaudio -D
And check if the *analog-stereo is your default output. If positive, switch as your user and start pulseaudio, the .config/pulse/ folder should get populated and your default output should be *analog-stereo.

Depending on your case this might help too:
https://www.freedesktop.org/wiki/Sof...ALSA/Profiles/
 
1 members found this post helpful.
Old 07-07-2018, 03:16 PM   #3
Trasa
Member
 
Registered: Nov 2007
Distribution: Slackware 64 Formless Spawn -dark young
Posts: 46

Rep: Reputation: 23
My solution was to use alsa. My subjective opinion is that if you have more than a couple of sound devices, pulse audio is a mess.
The only time i ever got it to work sort of the way i thought it should was in KDE and i despise KDE.
 
Old 07-07-2018, 05:23 PM   #4
dgrames
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: 10
Thanks abga
The cleanup and configuration of /etc/pulse/default.pa is pretty much what I did.
I redid it your way, and it still uses the digital output. I will look at the alsa configuration later.

As a side note, I upgraded from 14.2 to current yesterday and have never had to do anything for pulse to work in 14.2. Pulseaudio volume shows the digital speaker is pluged in and the audio speakers are unpluged which isn't correct.
 
Old 07-07-2018, 08:32 PM   #5
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 456

Rep: Reputation: 233Reputation: 233Reputation: 233
Just out of curiosity, what was the output of:
Code:
pacmd list-sinks | grep -e 'name:' -e 'index:'
You could use the module-combine-sink to use all output sources at the same time:
https://wiki.archlinux.org/index.php..._analog_output
or
https://bbs.archlinux.org/viewtopic....927745#p927745

Another alternative is to set up the desired output from a script at boot - rc.local would be appropriate for that:
Code:
/usr/bin/pulseaudio -D
/usr/bin/pactl set-card-profile 0 output:analog-stereo
More info(source) and another solution - first more elaborate answer from mreithub:
https://unix.stackexchange.com/quest...put-from-shell

I'm only using Slackware current on ARM and currently running my own compilation of pulseaudio 10.0. Not sure if it's a Raspberry Pi specific issue but both pulseaudio 11.x (the official build that is provided by Slackware ARM current) and pulseaudio 12 (which I compiled and tested after noticing a recent discussion about a patch requirement here on LQ) are considering the "virtual" Raspberry Pi sound card as mono only. Check:
https://www.linuxquestions.org/quest...2/#post5764898
Given this, you might want to consider removing the default pulseaudio that comes with Slackware current and give pulseaudio 10.0 a try. Here you can find the source package:
https://freedesktop.org/software/pulseaudio/releases/
Even pulseaudio 9, the one you used under Slackware 14.2 without issues might be a temporary solution, grab all the files from here and build it on your own (chmod +x pulseaudio.SlackBuild and run it):
https://ftp6.gwdg.de/pub/linux/slack.../l/pulseaudio/
 
Old 07-08-2018, 10:49 AM   #6
dgrames
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: 10
When I log in the output of pacmd list-sinks | grep -e 'name:' -e 'index:'
is No PulseAudio daemon running, or not running as session daemon.
It's the same when I log in as root.

After I startx it is
* index: 0
name: <alsa_output.pci-0000_00_14.2.iec958-stereo>
When I set it with pulseaudio volume control it is
* index: 2
name: <alsa_output.pci-0000_00_14.2.analog-surround-21>

The older versions of pulseaudio wouldn't compile.
I recompiled version 12.0 and reinstalled it with no change

I tried putting this in rc.local
/usr/bin/pulseaudio -D
/usr/bin/pactl set-card-profile 0 output:analog-stereo

This didn't help either
Then thinking about it and suuding the output of /usr/bin/pactl list
I tried this in my .xinitrc

/usr/bin/pulseaudio -D
/usr/bin/pactl set-card-profile 1 output:analog-surround-21+input:analog-stereo

Thanks abga for all of your help
 
Old 07-08-2018, 01:07 PM   #7
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 456

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by dgrames View Post
When I log in the output of pacmd list-sinks | grep -e 'name:' -e 'index:'
is No PulseAudio daemon running, or not running as session daemon.
It's the same when I log in as root.
Both pacmd and pactl need pulseaudio to be running and you have to start it manually:
Code:
pulseaudio -D
Note that in the default configuration pulseaudio will exit by itself after 20 seconds of idle / no use:
https://www.systutorials.com/docs/li...mon.conf/#lbAG

Quote:
Originally Posted by dgrames View Post
After I startx it is
* index: 0
name: <alsa_output.pci-0000_00_14.2.iec958-stereo>
When I set it with pulseaudio volume control it is
* index: 2
name: <alsa_output.pci-0000_00_14.2.analog-surround-21>
This was the missing piece of information ...

Quote:
Originally Posted by dgrames View Post
The older versions of pulseaudio wouldn't compile.
I recompiled version 12.0 and reinstalled it with no change
That's odd, I compiled pulseaudio 10.0 recently, maybe before the rebuild due to the new C++ ABI.

Quote:
Originally Posted by dgrames View Post
I tried putting this in rc.local
/usr/bin/pulseaudio -D
/usr/bin/pactl set-card-profile 0 output:analog-stereo

This didn't help either
This was actually not reflecting your real audio configuration (profile 1 and output:analog-surround-21), but I had no output of what pulseaudio recognizes on your system, so it was just guesswork on my side.

Quote:
Originally Posted by dgrames View Post
Then thinking about it and suuding the output of /usr/bin/pactl list
I tried this in my .xinitrc

/usr/bin/pulseaudio -D
/usr/bin/pactl set-card-profile 1 output:analog-surround-21+input:analog-stereo

Thanks abga for all of your help
Happy to hear that you made it!

Last edited by abga; 07-08-2018 at 01:09 PM. Reason: typo
 
  


Reply


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
[SOLVED] Slackware-current rpcbind issue tuxrules Slackware 23 07-19-2017 05:59 PM
[SOLVED] slackware-14.2 -> last slackware-current upgrade python VTE issue suprateam Slackware 10 05-27-2017 08:21 AM
[SOLVED] Pulseaudio and wine (sound issue) on -current coralfang Slackware 3 02-08-2016 05:34 PM
Slackware current 64 bit wine sound issue mmpl Slackware 2 03-23-2011 08:26 AM
Slackware current + gcc issue vexer Slackware 2 08-11-2003 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:57 AM.

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