Page 1 of 1

Alsamixer - All levels to zero after reboot

Posted: Thu Nov 01, 2012 11:34 pm
by Scary Hallo
Hello,
I had no sound on my spekers, so I checked alsamixer and all levels where zero. I ajusted them and all was fine. - Until the next reboot. - After reboot every fader is down to zero again.
Any idea?
:?:

Re: Alsamixer - All levels to zero after reboot

Posted: Fri Nov 02, 2012 12:11 am
by English Guy
Hi

From the command line use the alsactl command to save the alsamixer state. On my ('buntu based) system you need to be root so I use:

Code: Select all

sudo alsactl store

Re: Alsamixer - All levels to zero after reboot

Posted: Mon Nov 05, 2012 7:44 am
by Scary Hallo
I have tried that. But doesn't work :(
But now I have other problems with my computer. (Hardware) I have to work on this later.

Re: Alsamixer - All levels to zero after reboot

Posted: Mon Nov 05, 2012 12:21 pm
by Pablo
Try storing the alsamixer configuration to a file in your home directory, without sudo. So, after fixing alsamixer, do a:

alsactl store -f ~/my_asound.state (name the file as you wish)

Restart the computer and try:

alsactl restore -f ~/my_asound.state

If this works, make the last command execute automatically at login.

Re: Alsamixer - All levels to zero after reboot

Posted: Mon Nov 12, 2012 2:34 pm
by Scary Hallo
Hi Pablo,

sorry for the delay - i had other problems (graphics-card)

Your sugestion works brilliant, if I do it maualy. But as put

Code: Select all

 restore -f ~/.config/asound.state
in a script and included it in System Settings -> Autostart my system hangs on reoot.
I'm on Kubuntu 12.04 with KXStudio.

Any sugestions?
:?: :?: :?:

Re: Alsamixer - All levels to zero after reboot

Posted: Mon Nov 12, 2012 6:16 pm
by Pablo

Code: Select all

 restore -f ~/.config/asound.state
Any sugestions?
You mean

Code: Select all

alsactl restore -f ~/.config/asound.state
Maybe, make it wait a bit?

Code: Select all

sleep 10 && alsactl restore -f ~/.config/asound.state

Re: Alsamixer - All levels to zero after reboot

Posted: Tue Nov 13, 2012 8:01 am
by Scary Hallo
Sorry,
sure I meant

Code: Select all

alsactl restore -f ~/.config/asound.state
(wrong copy and paste).
My question is, in which file I should write that command?

Re: Alsamixer - All levels to zero after reboot

Posted: Tue Nov 13, 2012 5:46 pm
by Pablo
My question is, in which file I should write that command?
I am sorry, I don't use KDE. Maybe, search the internet for "KDE autostart".

Cheers! Pablo

Re: Alsamixer - All levels to zero after reboot

Posted: Tue Nov 13, 2012 11:38 pm
by Scary Hallo
Ok I put the skript in the .kde/Autostart folder. But them my system hangs on reboot. The skcipt looks like this:

Code: Select all

#!/bin/bash

# restore alsamixe settings
sleep 10 && alsactl restore -f ~/.config/asound.state
:?:

Re: Alsamixer - All levels to zero after reboot

Posted: Wed Nov 14, 2012 12:52 am
by English Guy
Scary Hallo wrote:Ok I put the skript in the .kde/Autostart folder. But them my system hangs on reboot. The skcipt looks like this:

Code: Select all

#!/bin/bash

# restore alsamixe settings
sleep 10 && alsactl restore -f ~/.config/asound.state
:?:
Just a thought. Have you tried running this from a terminal to see if it throws up any error messages?

Re: Alsamixer - All levels to zero after reboot

Posted: Wed Nov 14, 2012 4:47 pm
by Scary Hallo
Okay......
It was my fault. The script was not set to be executable.
Now it's working.

:)

Thanks Pablo
Thanks English Guy