Ubuntu – Subwoofer and Bang&Olufsen speakers not working in HP envy 14-j107tx

sound

Some of my speakers are not working and hence sound output even in VLC is below average. Bottom firing speakers are mediocre. I found an answer on this site for a Dell laptop, and the config was a little different which confused me.

I am new to Linux and just dual-booted my laptop for college purposes and coding.

The solution I found uses HDAJackRetask GUI from the alsa-tools-gui package.

In the application I ticked show unconnected pins and attempted to use trial and error to find a working combination. I had the B/O front firing speakers working through overriding and setting all pins as internal speakers, but could not find a working configuration for the subwoofer. Can anyone suggest a suitable configuration?

I'm using Ubuntu 17.04.

Screamshot for HDAJackRetask GUI config for my pc

Best Answer

After clicking through a bunch of links I found a solution that worked for me (HP Pavilion with Ubuntu 20.04, bass speaker was not working). The following answer is copied verbatim from https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1648183. I'm copying it here since this link showed up first when I searched. I'm intentionally leaving in the usernames since I am not the one who solved this problem:


Robert Joynt (robertjjoynt) wrote on 2017-05-17:

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