nvsound mixer settings - how to save?
I have nvidia nforce2 onboard audio but unfortunately ALSA doesn't output the best quality sound with this device. So I installed the nvsound from the nvidia website and it works fine.
I have configured Debian to load the module on startup, but I haven't worked out how to get the nvmixer mixer settings to save across reboots. The documentation says the following -
If you wish to have nvmixer audio settings automatically restored each time the nvsound driver loads, add the following lines to the configuration file for 2.6 kernels:
install nvsound /sbin/modprobe --ignore-install nvsound ; sleep 1; /usr/bin/nvmix-reg -f /etc/nvmixrc -L >/dev/null 2>&1 || :
remove nvsound { /usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove nvsound
For both 2.4 and 2.6 kernels, you should add the following code to /etc/rc.d/init.d/halt, or /etc/init.d/halt.local on SuSE distributions. On Mandriva distributions, add the code at the end of function stop_mixer() in /etc/rc.d/init.d/sound.
if grep -q "\(nvsound\)" /proc/modules && [ -x /usr/bin/nvmix-reg ]; then
/usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1
fi
(In /etc/rc.d/init.d/halt, this code is best located next to any existing code that saves ALSA mixer settings.)
For Red Hat Enterprise Linux 4, Fedora Core 3 and later, add the following line in /etc/rc.local:
/usr/bin/nvmix-reg -f /etc/nvmixrc -L >/dev/null 2>&1
How would this translate into Debian? I'm guessing the first part (install...) might go into /etc/modprobe.d/sound (which I created myself because I'm not using ALSA now)?
And for the second part, some script in /etc/init.d presumably? If yes, how would I set that up properly, with all the rc.* symlinks and what not?
Thanks in advance.
|