cesium wrote:To get the mixer set automatically, we need two things:
A) Save the correct settings somewhere in some format.
B) Run a program to restore these settings automatically on boot.
A) Set the wanted configuration using ossxmix. And then:
1) savemixer as root, and see if mixer.save is correctly saved. savemixer -L -v should restore the mixers even without root. (The hg version of savemixer has a -f <filename>, so you can set the file used, and avoid root when saving too).
or:
2) 'ossmix -c' gives a long list of ossmix command to recreate the current mixer settings (The leading '!' is easy to strip). You can redirect this to a script and have it restore the mixer when run.
Now we need to do:
B) Run automatically.
I'm no Solaris expert so I don't know how to do this properly, but I think GDM has Xstartup/Xsession/etc. files? You can add a command to restore settings there. (The comments should tell you when each file is run).
The problem is that I tried to create a smf manifest but it doesn't work - no matter what I did, the savemixer -L /opt/oss/mixer.save was always loaded after the vmixer was loaded. Oh well, I guess I'll have to wait for divine intervention to occur.