You are not logged in.

#1 2015-11-10 17:29:53

fixide
Member
Registered: 2013-04-27
Posts: 44

Save Alsamixer settings

Hello,

I have an ASUS card st essence well detected by ALSA. Also i have pulseaudio and plasma5.

I have no sound. In alsamixer i've done f6 to choose my sound card ; I see that the "analog output" was incorrectly set. By adjusting the output to headphone i have the sound.

However, when i reboot, the settings is not saved. I do not know if the problem is related to pulseaudio and alsa.

Do you have an idea for save these settings?

Offline

#2 2015-11-10 18:16:27

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Save Alsamixer settings

Quick fix: alsactl store
Permanent fix: enable "alsasomething" systemd service which should do that on each shutdown.

Offline

#3 2015-11-10 19:35:49

fixide
Member
Registered: 2013-04-27
Posts: 44

Re: Save Alsamixer settings

Already tried alsactl store : same after reboot.

And :
systemctl enable alsa-store.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

Offline

#4 2015-11-10 21:19:22

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Save Alsamixer settings

Weird.

Check if the setting is properly restored, i.e. run "store", change back to "speaker out", run "restore", verify that it's back at "headphone". This definitely worked with my STX, few years ago.

Maybe it's restored properly but then pulse screws it?

Offline

#5 2015-11-11 12:01:58

fixide
Member
Registered: 2013-04-27
Posts: 44

Re: Save Alsamixer settings

If I run alsactl restore after changing the configuration to speaker out, it's ok that's back to "headphone". But when i reboot it's back to speaker out...

I think that its does not read the file at startup

Offline

#6 2015-11-11 12:10:54

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 393

Re: Save Alsamixer settings

Funny, I have the same card and the same trouble. Maybe this is a kernel problem where alsa doesn't actually dump this info to begin with?

Offline

#7 2015-11-11 13:33:21

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Save Alsamixer settings

Maybe there is a separate "alsa-restore" service? Are other mixer controls preserved?

Offline

#8 2015-11-11 14:13:40

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 757

Re: Save Alsamixer settings

options snd-hda-intel index=1

Had the same problem. Here HDMI output gets detected first, which introduces strange behaviour just like yours: have to unmute and turn on the volume for headphones to be able to hear anything out of the speaker. I strongly suspect that is your problem as well.

Offline

#9 2015-11-11 17:42:47

fixide
Member
Registered: 2013-04-27
Posts: 44

Re: Save Alsamixer settings

I've test to change another settings like impedance... Impedance is preserved after a reboot.

But if I do a alsactl restore, the analog output "headphone" is back. But not after a reboot... sad.

Last edited by fixide (2015-11-11 17:47:23)

Offline

#10 2015-11-11 21:27:27

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Save Alsamixer settings

As I said, something may be changing settings after they are restored at boot but before you are checking them. Try disabling any sound daemons.

Also, check if alsa-store uses exactly the same command you use, modify alsa-store to print settings immediately after restore to verify that they are really restored correctly during boot, stuff like that.

Last edited by mich41 (2015-11-11 21:33:15)

Offline

#11 2015-11-11 21:32:29

fixide
Member
Registered: 2013-04-27
Posts: 44

Re: Save Alsamixer settings

It can be that

● alsa-restore.service - Restore Sound Card State
   Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static; vendor preset: disabled)
   Active: inactive (dead) since mer. 2015-11-11 18:40:13 CET; 3h 51min ago
Main PID: 394 (code=exited, status=0/SUCCESS)

nov. 11 18:40:13 Mithril systemd[1]: Starting Restore Sound Card State...
nov. 11 18:40:13 Mithril systemd[1]: Started Restore Sound Card State.


Restore is running at boot. Something is changing my setting or restore read bad settings...

Offline

#12 2015-11-12 17:31:05

fixide
Member
Registered: 2013-04-27
Posts: 44

Re: Save Alsamixer settings

With pulseaudio removed, alsa restore my settings correctly...

As soon as I reinstall pulseaudio it miss (or override...) the line out setting.

Offline

Board footer

Powered by FluxBB