I've managed to fix this problem on my machine (HP Omen 15 running Ubuntu 17.04 using codec for Realtek ALC295 sound device). To fix the problem, I can do the following:
Install alsa-tools if not installed:
sudo apt install alsa-tools
Create and save a script in /usr/local/bin:
#!/bin/bash hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x67 hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x3000
Run the script as root in a terminal to immediately fix the problem.
To run the script on startup, use cron with the @reboot command:
sudo crontab -e
and then add line in crontab: @reboot [full path to script]
To run script on resume from suspend, copy the script to /lib/systemd/system-sleep
For more technical details regarding this fix, see https://bugzilla.kernel.org/show_bug.cgi?id=195457
I've managed to fix this problem on my machine (HP Omen 15 running Ubuntu 17.04 using codec for Realtek ALC295 sound device). To fix the problem, I can do the following:
Install alsa-tools if not installed:
sudo apt install alsa-tools
Create and save a script in /usr/local/bin:
#!/bin/bash
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x67
hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x3000
Run the script as root in a terminal to immediately fix the problem.
To run the script on startup, use cron with the @reboot command:
sudo crontab -e
and then add line in crontab:
@reboot [full path to script]
To run script on resume from suspend, copy the script to /lib/systemd/ system- sleep
For more technical details regarding this fix, see https:/ /bugzilla. kernel. org/show_ bug.cgi? id=195457