I named mine "set soundout headphones only" and entered the command alsactl -f /home/username/headph.alsa restore except change "username" to your user account name. What's left? Just bind a keystroke restore one profile, and another to restore the other one! How? On the OS menu Go to System> Preferences> Keyboard Shortcuts. Isn't this cool?! Note that the profiles should be stored in your home user directory. Now, you can recall/restore to either of these profiles by typing alsactl -f filename restore obviously replacing "filename" with whatever you named your stored profiles. Exit alsamixer by hitting escape, and save this profile by typing alsactl -f filename store except this time, replace "filename" with something relevant, such as "headph.alsa". Now go back into alsamixer and set your headphone volume up, and your speakers at 0%, leaving master volume wherever you prefer it. If you open it again, you will see that your settings are still saved.Īfter you have set volume how you want it for having your speakers on, type in the console, alsactl -f filename store except change "filename" to whatever you want to call it. We are going to save this in a profile now! Hit escape to exit alsamixer. I'd put your "speaker" at 100% and your master at ~75%.
Headphones can be at any volume you like. In alsamixer, set your volume how you want it for when your speakers are on. Pretty cool, right? Here, you can adjust the volume levels for master, headphone, speaker, as well as other inputs/outputs. Now open your Terminal console and type alsamixer. You may need to disable that if you have it set.Īnyway, get some music anything with sound playing so you can test your sound output. Let me know if this doesn't help."ĮDIT/UPDATE: okay, this may not work nicely if you have your alsa configured so that it automatically mutes speakers when headphones are plugged in. My original answer was simply "Just click on sound preferences, and choose to use "analog headphones" in the "output" settings.