LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Speakers on "HP Envy x360 2-in-1 Laptop 15-ew0013dx" seem to do absolutely nothing despite indications of audio playing on Arch Linux (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/speakers-on-hp-envy-x360-2-in-1-laptop-15-ew0013dx-seem-to-do-absolutely-nothing-despite-indications-of-audio-playing-on-arch-linux-4175721851/)

ScaredConfusedandDeaf 02-09-2023 02:10 PM

Speakers on "HP Envy x360 2-in-1 Laptop 15-ew0013dx" seem to do absolutely nothing despite indications of audio playing on Arch Linux
 
I'm trying to get audio working (preferably with Pipewire, but not even actual Pulseaudio seems to work) on Arch Linux.

However, even after confirming I have drivers, it's silent.

(Output of aplay -l)

**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0

(In order to see this, I had installed drivers via sof-firmware and alsa-ucm-conf (that last one I question the necessity of but I got it anyway).)

Both pavucontrol and qpwgraph indicate that sound is playing out of the intended speaker...but nothing seems to be audible.

The main way I test audio is by playing something with MPV or trying to load an application (typically Super Tux Kart, but I haven't really had much luck with getting anything but the first loading screen to actually appear, if I don't just get a black screen anyway) (neither of which has wielded any successful results yet).

Currently, I'm using Wireplumber for a session manager.

Literally the only things I can think of as being the cause of the problem (besides some variable I literally know nothing about) is either I'm missing something else (related to my GPU, I seem to have issues with video (specifically when not in fullscreen (such as playing a video in MPV or running select screensavers for xscreensaver (some screensavers work without trouble while others either have elements that seem to be frozen, if not just everything in the screensaver being still for whatever reason) that seem to remain still like an image (when it isn't supposed to, as well as I know the particular screensavers anyway)), support is missing, or it has something to do with the only two profiles under Configuration in pavucontrol being "Play Hifi quality Music" and "Off".

The Sound Device is identified as "Alder Lake PCH-P High Definition Audio Controller" in pavucontrol and qpwgraph.

I've gotten help from other places. However, it still seems that no matter what I do, the best that ever happens is that it pretends to play sound and never gives real output, even when I use a command like aplay or speaker-test.

To make matters worse, even configuring things with alsactl and alsamixer hasn't wielded any results.

The machine is a "HP Envy x360 2-in-1 Laptop 15-ew0013dx", at least according to the bottom of it.

The physical volume keys (using the "Fn" Key with the respective keys at the top of the keyboard) seem to work, despite nothing actually being heard.

I know for a fact the actual speakers work, since I heard them make noise during the Windows 11 installation when I first booted up the machine.

(I will say that I'm somewhat new to Arch (not GNU/Linux in general, though) so if I'm missing something stupidly obvious to everyone else, then I apologize in advance.)

beachboy2 02-13-2023 06:54 AM

ScaredConfusedandDeaf,

Welcome to LQ.

A fellow HP Envy x360 15-ew0013dx user appears to have solved the problem here:
https://unix.stackexchange.com/quest...rs-not-working

"Even after the release of Linux 6.1, the problem is not solved yet. But I solved it by applying this patch and recompiling the kernel".

Code:

diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c
index 129bffb431c22..21d8c2de128ff 100644
--- a/sound/pci/hda/cs35l41_hda.c
+++ b/sound/pci/hda/cs35l41_hda.c
@@ -1156,7 +1156,8 @@ static int cs35l41_no_acpi_dsd(struct cs35l41_hda *cs35l41, struct device *physd
    hw_cfg->valid = true;
    put_device(physdev);
 
-  if (strncmp(hid, "CLSA0100", 8) == 0) {
+  if ((strncmp(hid, "CLSA0100", 8) == 0) ||
+      (strncmp(hid, "CSC3551", 7) == 0)) {
        hw_cfg->bst_type = CS35L41_EXT_BOOST_NO_VSPK_SWITCH;
    } else if (strncmp(hid, "CLSA0101", 8) == 0) {
        hw_cfg->bst_type = CS35L41_EXT_BOOST;
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 8a57636f622e9..e7053cbc6bb6e 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -9179,6 +9179,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
    SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
    SND_PCI_QUIRK(0x103c, 0x841c, "HP Pavilion 15-CK0xx", ALC269_FIXUP_HP_MUTE_LED_MIC3),
    SND_PCI_QUIRK(0x103c, 0x8497, "HP Envy x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
+  SND_PCI_QUIRK(0x103c, 0x8a31, "HP ENVY x360 2-in-1 Laptop 15-ey0xxx", ALC287_FIXUP_CS35L41_I2C_2),
    SND_PCI_QUIRK(0x103c, 0x84da, "HP OMEN dc0019-ur", ALC295_FIXUP_HP_OMEN),
    SND_PCI_QUIRK(0x103c, 0x84e7, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3),
    SND_PCI_QUIRK(0x103c, 0x8519, "HP Spectre x360 15-df0xxx", ALC285_FIXUP_HP_SPECTRE_X360),


frankbell 02-13-2023 08:26 PM

If the above doesn't help and if you have an audio jack, you might try testing with external speakers. You might also try booting to a Live CD/USB of some not Arch related and testing the with it.

That might help narrow down the issue.

cwizardone 02-13-2023 09:09 PM

Is this a similar problem?
https://www.linuxquestions.org/quest...ml#post6410804

McFixxx 01-25-2024 07:59 AM

I know this is an older thread, but I have the same issue (and am brand new to linux)

I decided to jump into the deep end and spent all day getting arch running with plasma on an HP x360 I had laying around. I have the same speaker issue. However, I don't have the slightest idea of how to apply these patches to the system. I tried running that first line but "--git" is not recognized after diff. Is this something I need to install, or am I reading correctly elsewhere that I need to modify the kernel and re-compile it?

Thank you for any help.


All times are GMT -5. The time now is 07:29 AM.