Alsamixer - All levels to zero after reboot
Moderators: MattKingUSA, khz
- Scary Hallo
- Established Member
- Posts: 280
- Joined: Fri Oct 23, 2009 2:21 pm
- Location: Germany / Pforzheim
- Contact:
Alsamixer - All levels to zero after reboot
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?
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?
- English Guy
- Established Member
- Posts: 525
- Joined: Wed Oct 17, 2012 7:28 pm
- Location: England
- Has thanked: 8 times
- Been thanked: 7 times
Re: Alsamixer - All levels to zero after reboot
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:
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
- Scary Hallo
- Established Member
- Posts: 280
- Joined: Fri Oct 23, 2009 2:21 pm
- Location: Germany / Pforzheim
- Contact:
Re: Alsamixer - All levels to zero after reboot
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.
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
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.
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.
- Scary Hallo
- Established Member
- Posts: 280
- Joined: Fri Oct 23, 2009 2:21 pm
- Location: Germany / Pforzheim
- Contact:
Re: Alsamixer - All levels to zero after reboot
Hi Pablo,
sorry for the delay - i had other problems (graphics-card)
Your sugestion works brilliant, if I do it maualy. But as put
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?
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
I'm on Kubuntu 12.04 with KXStudio.
Any sugestions?
Re: Alsamixer - All levels to zero after reboot
Code: Select all
restore -f ~/.config/asound.state
You meanAny sugestions?
Code: Select all
alsactl restore -f ~/.config/asound.state
Code: Select all
sleep 10 && alsactl restore -f ~/.config/asound.state
- Scary Hallo
- Established Member
- Posts: 280
- Joined: Fri Oct 23, 2009 2:21 pm
- Location: Germany / Pforzheim
- Contact:
Re: Alsamixer - All levels to zero after reboot
Sorry,
sure I meant (wrong copy and paste).
My question is, in which file I should write that command?
sure I meant
Code: Select all
alsactl restore -f ~/.config/asound.state
My question is, in which file I should write that command?
Re: Alsamixer - All levels to zero after reboot
I am sorry, I don't use KDE. Maybe, search the internet for "KDE autostart".My question is, in which file I should write that command?
Cheers! Pablo
- Scary Hallo
- Established Member
- Posts: 280
- Joined: Fri Oct 23, 2009 2:21 pm
- Location: Germany / Pforzheim
- Contact:
Re: Alsamixer - All levels to zero after reboot
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
- English Guy
- Established Member
- Posts: 525
- Joined: Wed Oct 17, 2012 7:28 pm
- Location: England
- Has thanked: 8 times
- Been thanked: 7 times
Re: Alsamixer - All levels to zero after reboot
Just a thought. Have you tried running this from a terminal to see if it throws up any error messages?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
- Scary Hallo
- Established Member
- Posts: 280
- Joined: Fri Oct 23, 2009 2:21 pm
- Location: Germany / Pforzheim
- Contact:
Re: Alsamixer - All levels to zero after reboot
Okay......
It was my fault. The script was not set to be executable.
Now it's working.
Thanks Pablo
Thanks English Guy
It was my fault. The script was not set to be executable.
Now it's working.
Thanks Pablo
Thanks English Guy