I closed the lid of my laptop, when I opened it, there's no sound from speakers or headphones.
It also happens if I boot Windows and restart to boot Ubuntu. If I shutdown the computer and turn on then boot with Ubuntu and the sound works fine.
I've followed the instructions I could find on askubuntu, and Sound Troubleshooting Procedure yet nothing works.
Please help.
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC295 Analog [ALC295 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ sudo echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf
bash: /etc/modprobe.d/snd-hda-intel.conf: Permission denied
$ sudo lspci -v
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
Subsystem: Hewlett-Packard Company Sunrise Point-H HD Audio
Flags: bus master, fast devsel, latency 32, IRQ 134
Memory at a4428000 (64-bit, non-prefetchable) [size=16K]
Memory at a4410000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 3
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel