Set permanently mixer volume to 100% of USB DAC

Hi all,
Is there a way set permanently mixer volume to max (100%)
of given USB DAC in /etc/sysctl.conf? or other way?
thank you.
 
Hi.

mixer(8) states should be automatically updated and saved in /var/db as mixer(%n)-state. Some GUI mixer applications such as audio/kmix store the volume settings separately unless configured otherwise, which can be confusing to some people. What entries do you have set for the device in /etc/sysctl.conf right now?
 
Thank you for response. You mean it's no need to set value in /etc/sysctl.conf, but set value with mixer command with -state parameter, right?
Currently I don't have any value in /etc/sysctl.conf right now regarding mixer.
 
That's odd then. The settings should be saved at shutdown. Are you rebooting the machine from the console or a terminal in X? The mixer(8) command is used to change the volume levels. The mixer(%n)-state file I mentioned above is where those settings are stored when the computer is shutdown or rebooted. Please don't edit that file. If you use the reboot(8) command instead of shutdown -r now when manually rebooting the PC from the console or terminal, the running services will be immediately killed instead of shutting down cleanly which would cause the mixer state not to be saved. Some new users coming from Linux make this mistake sometimes.

You can set
Code:
hint.pcm.%d.vol="100"
(where %d is the number of your device) in /boot/device.hints to set the default master volume level to 100 on every reboot as you asked.
 
Back
Top