No sound in Headphone from front panel audio port in Ubuntu 18.04

When I was connecting Headphone in the front panel port of CPU I couldn't hear any sound, actually it couldn't detect the headphone. But when I'm connecting it in the back panel port it can detect. And sound box is also working fine from the back panel, but not from front panel. This problem occurs only when I'm using Ubuntu 18.04, but in Windows 10 Pro it works fine from both of the panels (I use Win 10 & Ubuntu 18.04 in dual boot). My CPU config is 3.5GHz Intel G-4560, H110M PRO VH Plus MSI motherboard, Intel HD 610 GPU. Is the problem because of drivers? If so then how fix this (or how to install it) ? Or any kind of suggestion how to fix it. Thanks in advance!


Solution 1:

I had the same issue. This answer below helped me

Front panel audio jack is not working in Ubuntu 16.04

When you are running Alsamixer, be sure to do these things:

  1. Unmute Headphones by pressing M
  2. Disable Auto mute
  3. Play around with volume levels of "Front", "PCM", etc till you get the sound coming in your headphones (this is what did the trick for me)

Also note that the Headphones volume will continue to show zero in Alsamixer for some reason, but sound will still be there. If you want a greater degree of control over the mixer, somebody recommended qashctl ..... check it out. For me, Alsamixer did the job, so I didn't bother

Solution 2:

This worked-out for me. Thought it was better to share it elaborately.
In the ‘Terminal’ write alsamixer

enter image description here

In 'AlsaMixer' select Headphone using the side-arrows keys in Keyboard.

enter image description here

Now press m in Keyboard (mouse dose not work here) to Unmute the Headphone. ( When the Headphone is mute you can see in the column it shows MM, and after you unmute the Headphone, it will show OO) enter image description here

Press up-down arrow keys to control sound in your Headphone.
Now to save the configuration run this command:
sudo alsactl store
So the next time you open your pc, it will boot-up with that config.