Fixing sound problem on Ubuntu 18.04 core

One of the few annoying thing that I faced after installing Kubuntu 18.04 is the sound problem. That is, there was no sound at all after installing Kubuntu 18.04 on my old Panasonic notebook. Therefore, in this post I am keeping some notes on the solution that comes with alsa mixer

This problem often appears even when we change the volume to the max level. So one easier way is just to use alsa mixer. So open up the terminal Ctrl+Alt+t and type alsamixer which will open the classic interface as shown in fig-1.

Once we have the interface, we simply tab to Headphone and increase the bar with the up arrow button. This should simply solve the problem.

Although above method will solve the issue for a while but, once the pc is rebooted, the problem comes again until we manually set the alsamixer. One way to permanently fix this issue is to use the terminal cmd and execute it during the loading of the os.

# terminal cmd for alsa mixer
# this will set headphone volume to 80% 
user@user-pc:~$amixer set Headphone 80%

Now just add the code to the .bashrc so that this is executed every time the terminal is invoked.

echo "amixer set Headphone 80%" >> ~/.bashrc

This should enable the speaker and solve the sound problem in system with Ubuntu 18.04 core.