LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-16-2016, 07:53 PM   #1
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
Pulseaudio and storing volume between reboots


After updating my slackware-current and getting pulse all set up everything seems to be working well. The only problem I have is that my headset (which is also my default soundcard) is always muted after a reboot.

I have 3 sound devices. Speakers on a soundblaster card, headset on the built in audio controller, and HDMI on my graphics card (which I don't use). Every time I start up the PC my built in audio is muted and the HDMI is un-muted. I keep muting the HDMI and un-muting the built-in audio but pulse always forgets the settings.

Is there something I need to run to tell pulse to remember the mixer settings? Something like "alsactl store" but for pulse.
 
Old 01-16-2016, 08:03 PM   #2
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
I kind of answered my own question there I just ran "alsactl store" again as root after setting things up in pavucontrol and after a reboot my headset wasn't muted anymore. It doesn't save all the settings though because my microphone was lower than it should be and the HDMI was also un-muted. It doesn't feel like the real solution, but it at least means I don't have to keep loading up the mixer every time to get my headset to work.
 
Old 01-17-2016, 10:18 AM   #3
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
Now I really found the problem, and it was me . After pulseaudio got installed I thought I had to start rc.pulseaudio at boot to make it work, but you don't have to. I removed "rc.pulseaudio start" from my rc.local and also made rc.alsa non-executable and now when pulseaudio is needed the daemon is autospawned and the mixer settings from pavucontrol are restored from my users settings.

Starting pulseaudio at system start meant it wasn't reading my user mixer settings, and alsactl doesn't seem to be able to restore all the settings.
 
1 members found this post helpful.
Old 01-17-2016, 10:57 AM   #4
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
Quote:
Originally Posted by af7567 View Post
Now I really found the problem, and it was me . After pulseaudio got installed I thought I had to start rc.pulseaudio at boot to make it work, but you don't have to. I removed "rc.pulseaudio start" from my rc.local and also made rc.alsa non-executable and now when pulseaudio is needed the daemon is autospawned and the mixer settings from pavucontrol are restored from my users settings.

Starting pulseaudio at system start meant it wasn't reading my user mixer settings, and alsactl doesn't seem to be able to restore all the settings.
I'm curious as to why rc.alsa is still an executable after the update with installing PulseAudio? How are the mixer settings being saved/restored if rc.alsa is not executing at boot in your case?
 
Old 01-17-2016, 11:31 AM   #5
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by bassplayer69 View Post
I'm curious as to why rc.alsa is still an executable after the update with installing PulseAudio? How are the mixer settings being saved/restored if rc.alsa is not executing at boot in your case?
Apparently rc.alsa is not meant to be executable by default anymore, but it was on my system because that's how it was when I first installed slackware 14 on here.

The mixer settings are saved and restored by pulseaudio itself. I think they are stored in ~/.config/pulse.

Without rc.alsa getting run at boot the mixer settings will be uninitialised until I run a program that uses pulse and autospawns the daemon, then pulse will initialise the volumes.
 
1 members found this post helpful.
Old 01-17-2016, 11:45 AM   #6
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
alsactl store still works Pulse just uses alsa. the pavucontrol settings are saved .config/pavucontrol.ini
please keep this simple. if you have issues with html5 play back remember html5 only looks for hw,0 so up to you to make sure that you set that
in your /etc/modprobe.d/sound.conf
if your sound becomes distorted you may have that device play back up to high in your pavucontrol.
If you want full control of all devices sinked with jack2 and qjackctl sinking with pulseaudio hang on I am working on the tutorial and the scripts to use with the
custom .asoundrc. This is not new but is for our part of the distro.
 
Old 01-17-2016, 11:45 AM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
alsactl store still works Pulse just uses alsa. the pavucontrol settings are saved .config/pavucontrol.ini
please keep this simple. if you have issues with html5 play back remember html5 only looks for hw,0 so up to you to make sure that you set that
in your /etc/modprobe.d/sound.conf
if your sound becomes distorted you may have that device play back up to high in your pavucontrol.
If you want full control of all devices sinked with jack2 and qjackctl sinking with pulseaudio hang on I am working on the tutorial and the scripts to use with the
custom .asoundrc. This is not new but is for our part of the distro.
 
Old 01-17-2016, 09:14 PM   #8
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
Quote:
Originally Posted by af7567 View Post
Apparently rc.alsa is not meant to be executable by default anymore, but it was on my system because that's how it was when I first installed slackware 14 on here.

The mixer settings are saved and restored by pulseaudio itself. I think they are stored in ~/.config/pulse.

Without rc.alsa getting run at boot the mixer settings will be uninitialised until I run a program that uses pulse and autospawns the daemon, then pulse will initialise the volumes.
Mine is currently executable as well. I'll have to install a fresh 64-current in a virtual machine and compare all of the alsa/pulseaudio files and their attributes with what my main install has. It was a fresh install of 64-current back in November 2015.
 
Old 01-17-2016, 10:59 PM   #9
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
from today's ChangeLog:
Quote:
On a fresh system, install rc.alsa as executable. It's apparently still
useful for loading some mixer defaults even when PulseAudio is used.
As I understand it, rc.alsa runs alsactl to restore mixer settings. Not quite sure yet if this is true when pulseaudio gets spawned - and I will be the first to admit I've avoided pulseaudio like the plague - but may mean some tweaking might be in order as we move through beta and test various sound hardware.
 
1 members found this post helpful.
Old 01-18-2016, 05:43 AM   #10
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
Quote:
Originally Posted by kingbeowulf View Post
from today's ChangeLog:

As I understand it, rc.alsa runs alsactl to restore mixer settings. Not quite sure yet if this is true when pulseaudio gets spawned - and I will be the first to admit I've avoided pulseaudio like the plague - but may mean some tweaking might be in order as we move through beta and test various sound hardware.

Yes, I just confirmed that with a new 64-current install in a VM.
 
Old 01-18-2016, 06:33 AM   #11
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by kingbeowulf View Post
from today's ChangeLog:

As I understand it, rc.alsa runs alsactl to restore mixer settings. Not quite sure yet if this is true when pulseaudio gets spawned - and I will be the first to admit I've avoided pulseaudio like the plague - but may mean some tweaking might be in order as we move through beta and test various sound hardware.
Yes, if rc.alsa is executable it restores the mixer settings at boot. The problem is alsactl doesn't seem to be able to restore all the mixer settings when pulseaudio is used. It restored output volumes OK but not microphone volume or the muted state of some devices for me.

For me pulse works better if I just leave rc.pulseaudio and rc.alsa non-executable and let pulseaudio daemon autospawn when needed so that it loads my mixer settings from ~/.pulse/config and then everything is how I left it at system shutdown. This way you also have per-user mixer settings.

It might be possible to copy the mixer settings from ~/.config/pulse to somewhere else so that if you needed pulse run as system it will load them.
 
  


Reply



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
PulseAudio Volume Control Question... rnturn Linux - Software 3 11-18-2014 01:21 PM
Weird volume-control behaviour after installing pulseaudio Hungry ghost Linux - Software 12 09-19-2014 03:23 PM
Gnome and Pulseaudio - Some applications start with volume muted anon112 Linux - Software 0 05-12-2013 07:45 PM
Difference between Fedora and Ubuntu (pulseaudio) volume controls ordealbyfire83 Linux - Software 1 05-16-2011 08:15 PM
LXer: EarCandy is a Smart PulseAudio Volume Manager LXer Syndicated Linux News 0 05-22-2009 09:30 PM

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

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