No sound in my desktop Ubuntu MATE after new install. When I hit alsamixer I see my headphone is disabled and I have to enable it each time with right key, M then up key.
Couldn't find a satisfactory answer to this problem so I found the solution myself. Couldn't post it as a comment to any of the numerous questions users have regarding this issue because I don't have 50 reputation (...).
So here's the solution, please let me know if you find it useful:
- save the following two lines in a file called for example /usr/bin/amixer_script.sh
/usr/bin/amixer -c 0 cset iface=MIXER,name='Headphone Playback Volume' 100% /usr/bin/amixer -c 0 cset iface=MIXER,name='Headphone Playback Switch' 1+ toggle
- make it executable with sudo chmod +x /usr/bin/amixer_script.sh
- add /usr/bin/amixer_script.sh to System->Control Center->Startup Applications
There. Your script is launched at each bootup and you have sound.