Tiny Core Extensions > TCE Tips & Tricks
Persistent alsa audio levels between boots
Zero:
Could find little info on this topic by searching the forum. This took me quite a while to resolve. Hope to save someone else some grief. The problem I faced was default alsamixer levels were WAY too low for my Dell L400. Combed through this wiki http://wiki.tinycorelinux.net/wiki:setting_up_sound but ran into a couple of walls. Here's what I did to get alsa mixer levels to persist.
* To get sound working at all I had to install alsa.tcz OnBoot. (To get Skype audio working I also had to add alsa-oss.tcz OnBoot.)
* I ran sudo alsaconf but sound was already working at that point so it was probably moot.
* Per the wiki, using editor I then added the following lines to /opt/.filetool.lst
opt/alsa
etc/modprobe.conf
etc/asound.state
Problem was at shutdown there was a backup error because etc/asound.state does not exist at this point and my sound settings were not being restored. Reading further down the wiki I found the command alsactl store but it needs to be run as root. So I ran sudo alsactl store which then creates /usr/local/etc/asound.state not /etc/asound.state. Still getting the file not found backup error I changed the last line of /opt/.filetool.lst to usr/local/etc/asound.state minus the preceding forward slash.
* In terminal I ran sudo editor, opened /opt/bootlocal.sh and added alsactl restore at the end. Worthy of note, I did NOT have to add to bootlocal.sh
/bin/sleep 5
/usr/local/etc/init.d/alsasound start
Now my new default mixer levels are restored at each boot. To change default values now I just set the desired levels, open a terminal and do sudo alsactl store and done.
Z
tinypoodle:
--- Quote from: Zero on August 19, 2012, 03:55:24 PM ---* To get sound working at all I had to install alsa.tcz OnBoot. (To get Skype audio working I also had to add alsa-oss.tcz OnBoot.)
--- End quote ---
Which version of skype are you using?
alsa-oss should not be required for a recent alsa version of skype.
Hint: You can use the "-f" parameter of alsactl to specify a filename (e.g. to save multiple configurations).
Zero:
I am using the latest and greatest Skype, 4.0.0.8, across all my linux machines, most of which are Xubuntu. Believe me when I say alsa-oss was required on my Dell L400, Cirrus Logic CS4281 audio.
I found the -f parameter later on much further down the wiki page. But, I now have it fixed without using that parameter. I subscribe to the philosophy "If it ain't broke, don't 'fix' it." ;D
dlrider:
--- Quote from: Zero on August 19, 2012, 03:55:24 PM ---Now my new default mixer levels are restored at each boot.
--- End quote ---
Very good! Finally have my levels consistent between boots... except the channel lock (left/right). How do I keep the pair locked together? Thank you.
D.
aus9:
hi
--- Quote ---Problem was at shutdown there was a backup error because etc/asound.state does not exist at this point and my sound settings were not being restored
--- End quote ---
The wiki suggests that under Alsasound
--- Quote ---Create a sound mixer level config file (= /etc/asound.state) by running
--- Code: ---sudo alsactl store
--- End code ---
--- End quote ---
Maybe the wiki needs improving, I will look at providing a summary or checklist before reboot.
I have split wiki into an OSS page and ALSA. will improve it in the fullness of time.
some issues for mixer levels should be resolved with the asound.state but we could add a `.asoundrc but I have yet to test.
Navigation
[0] Message Index
[#] Next page
Go to full version