Recently I installed Ubuntu desktop 18.04.1 on my laptop along with Microsoft Windows 10. Everything works perfectly, until two or three times using Ubuntu, the sound completely went away. Meaning that Ubuntu is completely mute in every way. No sound in headphone, speakers, HDMI, etc. I checked and the system completely recognizes the audio card and also knows all the audio devices. But I do not understand the problem. I tried some of the online terminal methods. None of them worked.
I also reinstalled Ubuntu three times but every time the same thing happens.
The only things that I've done are installing Google Chrome, Anaconda 3 and usual applications from Ubuntu store not related to sound.
How can I have the sound back on the system?
(System: Asus Zenbook UX430)
It was solved automatically after a while. Then it happened again now. There was no answer to my question, but I figured out by my self. Just shutdown!!! I was doing restart and trying different things to fix. But the solution simply is to shutdown the computer and turn it on again.
I have the same problem with my Asus Zenbook UX430UA, all you have to do, every time sound doesnt work put your laptop on Sleep Mode and the sound will work!
But, I still have problem headphones doesnt work!
Try this: edit /etc/modprobe.d/alsa-base.conf (I think on some computers, it may be just alsa.conf) and insert this as the last line: options snd-hda-intel model=headset-mode