I have installed Ubuntu 15.04 from a bootable pen-drive. When I start my machine, I get no sound on my headphone. To get around, I go to the terminal and type alsamixer and unmute the headphone from MM to 00. It works fine but I have to do the same each time I log in to my machine.
Asked
Active
Viewed 6,205 times
2
ashubuntu
- 554
1 Answers
5
Here are the steps to follow after the system log in:
- Open terminal and type
alsamixer. - Unmute the
Headphoneentry pressingmonce. - Save the alsamixer output by running
sudo alsactl storein the terminal. - Save the mixer settings into a custom file with
alsactl --file ~/.config/asound.state storecommand. This command will store/clone a copy of theasound.statefile from the/var/lib/alsa/directory to~/.config/. Create a
.desktopfile by runningsudo nano ~/.config/autostart/alsarestore.desktopand paste the following in.[Desktop Entry] Type=Application Terminal=false Name=alsarestore Exec=alsactl --file ~/.config/asound.state restoreSave the file by
Ctrl+xand responding to any query that pops up.Restart your machine and you should be OK with your sound.
I found the solution from the thread cited in the first comment. Grabbed the information together from different answers to make it clearer.
I am not sure whether the answer should apply to even slightly different problems from mine.
Notes:
.configis a hidden folder in your home folder. UseCtrl+hto let the hidden files show up.- If the
autostartfolder does not exist in.configfolder, create it manually or through terminal. I did not haveautostartfolder and I had to create. - Ubuntu 15.04
ashubuntu
- 554