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,197 times
2

ashubuntu
- 554
- 1
- 7
- 24
-
Consider taking a look at this thread http://askubuntu.com/questions/50067/howto-save-alsamixer-settings – Eduardo Cola May 11 '15 at 16:18
-
It worked just fine. – ashubuntu May 11 '15 at 20:09
1 Answers
5
Here are the steps to follow after the system log in:
- Open terminal and type
alsamixer
. - Unmute the
Headphone
entry pressingm
once. - Save the alsamixer output by running
sudo alsactl store
in the terminal. - Save the mixer settings into a custom file with
alsactl --file ~/.config/asound.state store
command. This command will store/clone a copy of theasound.state
file from the/var/lib/alsa/
directory to~/.config/
. Create a
.desktop
file by runningsudo nano ~/.config/autostart/alsarestore.desktop
and paste the following in.[Desktop Entry] Type=Application Terminal=false Name=alsarestore Exec=alsactl --file ~/.config/asound.state restore
Save the file by
Ctrl
+x
and 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:
.config
is a hidden folder in your home folder. UseCtrl
+h
to let the hidden files show up.- If the
autostart
folder does not exist in.config
folder, create it manually or through terminal. I did not haveautostart
folder and I had to create. - Ubuntu 15.04

ashubuntu
- 554
- 1
- 7
- 24
-
Saved my life. How could a developer write a line of code without music on headphones. I should be the one of top features of installation to check :) – Matiss Dec 04 '15 at 14:16
-