WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] How do I start alsa so that it's not muted (default)?  (Read 2156 times)

Offline PingPing

  • Jr. Member
  • **
  • Posts: 99
[SOLVED] How do I start alsa so that it's not muted (default)?
« on: October 17, 2009, 05:06:44 AM »
Straight after boot, if I invoke 'alsamixer' at the command line, it always shows ALSA as muted.
This appears to be the default mode.
Is there anyway I can change this so that when I boot, ASLA is not muted?
I'm running microcore 2.3.1.
« Last Edit: October 19, 2009, 01:17:08 PM by PingPing »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11026
Re: How do I start alsa so that it's not muted (default)?
« Reply #1 on: October 17, 2009, 05:54:12 AM »
If you use the alsa init script to start the sound, your mixer settings should be loaded automatically.

If not, you can do it manually too:

alsamixer # set everything up
sudo alsactl store # save mixer settings to /etc/asound.state

Then in bootlocal.sh

alsactl restore
The only barriers that can stop you are the ones you create yourself.

Offline PingPing

  • Jr. Member
  • **
  • Posts: 99
Re: How do I start alsa so that it's not muted (default)?
« Reply #2 on: October 19, 2009, 12:37:11 PM »
Thanks.
If I put 'alsactl restore' in bootlocal.sh then I get a bunch of ALSA errors starting with a failure to find any sound card.
However, if I put 'alsactl restore' in .profile it works.
I've got it working now.  Thanks for you help.