[CentOS] Problem with Centos & Alsa on reboot

Mon Dec 19 22:49:25 UTC 2016
Robert Jeffares <jeffares.robert at gmail.com>

I have a number of machines using Centos 6.8
They have M-Audio sound cards.
When I set the output levels using alsamixer and save using 'alsactrl 
store' [creating a requested directory]  the settings do not restore on 
reboot.
I have no idea why they don't.
running 'alsactrl restore' works so the settings are being saved.

I think the on board card settings are loaded OK

/var/lib/alsa/asound.state

seems to have the right permissions, and I can find no errors in any logs.

My fix is to run a script from /etc/rc.local which runs on restart and 
sends me an email

--------------snip-----------------
#! /bin/bash
date > /home/rd/soundset.log
alsactl restore
cat /home/rd/soundset.log |mail -s 'sound set ' your at email.com
exit 0
--------------snip-----------------


It's either Centos or Alsa.

Did not have this in earlier systems.


regards

Robert

-- 
*Big Valley Radio*
64 Warner Park Avenue

Laingholm

Auckland 0604

09 8176358

0221693124

06 650 6087