Microphone not working on HP Omen 17

Bug #1892714 reported by Vedran Rafaelic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-firmware (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I have the following laptop https://support.hp.com/us-en/product/omen-by-hp-17-cb0000-laptop-pc/26122176/document/c06411586

I cannot make the internal microphone to work. Sound->Input device gives no device list. Jack plug (pink) mic works.

(The link says: HP Wide Vision HD Camera with integrated dual array digital microphone. So I guess this is the one and only internal microphone.)

cat /proc/asound/card0/codec* | grep Codec Codec: Realtek ALC285
cat /proc/asound/card1/codec* | grep Codec Codec: Nvidia GPU 92 HDMI/DP

I guess the internal microphone is related to this "Realtek ALC285" codec.

In alsa-base.conf I had to add "options snd-hda-intel dmic_detect=0" or otherwise my screen freezes soon after boot.

I tried "options snd-hda-intel model=laptop-amic" and "model=laptop-dmic" and "model=auto". The "model=laptop-dmic" shows the device in "Sound->Input device" but it loops laptop's sound output into the input.

OS: Ubuntu 20.04
uname -a: 5.4.0-42-generic
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: croraf 1940 F.... pulseaudio
 /dev/snd/controlC0: croraf 1940 F.... pulseaudio
 /dev/snd/pcmC0D0p: croraf 1940 F...m pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2019-11-16 (281 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: HP OMEN by HP Laptop 17-cb0xxx
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-42-generic root=UUID=685e7294-a202-48c4-b8a9-ec45d45bfd01 ro quiet splash pci=nommconf vt.handoff=7
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-42-generic N/A
 linux-backports-modules-5.4.0-42-generic N/A
 linux-firmware 1.187.2
Tags: focal
Uname: Linux 5.4.0-42-generic x86_64
UpgradeStatus: Upgraded to focal on 2020-07-13 (42 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/05/2019
dmi.bios.vendor: AMI
dmi.bios.version: F.16
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 8603
dmi.board.vendor: HP
dmi.board.version: 45.38
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAMI:bvrF.16:bd09/05/2019:svnHP:pnOMENbyHPLaptop17-cb0xxx:pvr:rvnHP:rn8603:rvr45.38:cvnHP:ct10:cvrChassisVersion:
dmi.product.family: 103C_5335KV HP OMEN
dmi.product.name: OMEN by HP Laptop 17-cb0xxx
dmi.product.sku: 7NG00EA#BED
dmi.sys.vendor: HP

Vedran Rafaelic (croraf)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1892714

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Vedran Rafaelic (croraf) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected focal
description: updated
Revision history for this message
Vedran Rafaelic (croraf) wrote : CRDA.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : IwConfig.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : Lspci.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : Lspci-vt.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : Lsusb.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : Lsusb-t.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : Lsusb-v.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : ProcEnviron.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : ProcModules.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : PulseList.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : RfKill.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : UdevDb.txt

apport information

Revision history for this message
Vedran Rafaelic (croraf) wrote : WifiSyslog.txt

apport information

Revision history for this message
Hui Wang (hui.wang) wrote :

you need to remove "options snd-hda-intel dmic_detect=0", and upload a new dmesg with that removed.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

@Hui Wang
As I said, without this option my laptop freezes on login screen or immediately (in 90% of cases). I managed to start it now long enough to make a dmesg without dmic_detect=0. Not sure if it will freeze soon.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

*or immediately after login (in 90% of cases, so i restarted it now like 10 times.)

Revision history for this message
Vedran Rafaelic (croraf) wrote :

After removing this option the internal mic works (the noise is relatively high).

On Settings->Sound I see Output Device: Speaker - Cannon Lake PCH cAVS
and Input Device: Digital Microphone - Cannon Lake PCH cAVS
(Both input and output with generic melody icon before them)

Revision history for this message
Vedran Rafaelic (croraf) wrote :

Now after 15 min of sound and mic the audio playing crashed (youtube video spins forever, audio tests in Settings dont work...).

Revision history for this message
Hui Wang (hui.wang) wrote :

Please refer to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1874698 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1878479,

I think if you install the alsa-ucm-conf - 1.2.2-1ubuntu0.1 and uninstall the workaround of retasking codec pin ([ 2.997562] snd_hda_intel 0000:01:00.1: Applying patch firmware 'hda-jack-retask.fw'), the microphone should work.

About the system hang or crash, maybe it has sth to do with graphic? Maybe could have a try with adding "nomodeset nvidia_drm.modeset=0" to the bootargs.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

The internal microphone IS WORKING without "options snd-hda-intel dmic_detect=0". But without this option the system DOES freeze.

The freeze is basically the same as described in comment #29 in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1874698

(Would be strange if the graphics is causing it. Though my graphics crashes if I'm not using WaylandEnable=false)

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I now booted with and without "options snd-hda-intel dmic_detect=0". The first boot attempt froze the screen, and in the second the mic was working, but after 3-4 min the audio system "crashed". The Settings show https://pasteboard.co/Jo955xN.png . And in both cases I do see:

~$ apt list --installed | grep alsa-ucm-conf
alsa-ucm-conf/focal-updates,focal-updates,now 1.2.2-1ubuntu0.1 all [installed,automatic]

so this package is installed.

Revision history for this message
Hui Wang (hui.wang) wrote :

So far I have no idea why the system crashes or hangs.

Could you please test the 5.6.0-oem kernel like 1021 or 1022. remove the dmic_detect=0 to see if this kernel is better than 5.4.0-42 kernel?

Revision history for this message
Vedran Rafaelic (croraf) wrote :

Just to make it clear #27 is done without any modifications on top of the original post, that is:

"alsa-ucm-conf/focal-updates,focal-updates,now 1.2.2-1ubuntu0.1 all"

was already installed (with and without dmic_detect=0).

Both the freezing and the second attempts I mentioned in #27 are done withut dmic_detect=0.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

@Hui Wang
When you say:
> uninstall the workaround of retasking codec pin ([ 2.997562] snd_hda_intel 0000:01:00.1: Applying patch firmware 'hda-jack-retask.fw')

Did I includ this by installing the "hdajackretask" package (I think I installed it, and that it wasn't installed by default, but I'm not sure)? I did play with it a bit, but currently none of the pins (connected or unconnected) are overriden.

How to do this uninstall you mention?

Revision history for this message
Hui Wang (hui.wang) wrote :

Do you mean the system will freeze even you add dmic_detect=0? I thought the system only freezes without dmic_detect=0.

Revision history for this message
Hui Wang (hui.wang) wrote :

About the uninstall the retask, just remove the kernel modules of patch=...

snd_hda_intel: patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw

Revision history for this message
Vedran Rafaelic (croraf) wrote :

@Hui Wang #31
No. The system will freeze ONLY WITHOUT dmic_detect=0.

Revision history for this message
Hui Wang (hui.wang) wrote :

@Vedran,

I still doubt the nvidia graphic driver make the system hang. you could do a test: disable the nvidia graphic card from BIOS, only uses the Integrated intel graphic card. then test if it still hang or not.

If that doesn't help. need to test with other kernel versions like linux-5.6.0-oem kernel or linux-5.8 kernel.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I've tried with
~$ uname -sr
Linux 5.6.0-1021-oem

Same issue. Either freeze or sound not working after boot WITHOUT dmic_detect=0.

I attach dmesg.

Revision history for this message
Hui Wang (hui.wang) wrote :

Then please test linux-v5.8 kernel, with this kernel, maybe the proprietary nvidia graphic driver couldn't be installed, this will verify if the nvidia graphic driver has any impact on this issue too.

https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/

If v5.8 kernel doesn't work, please try the latest sof-firmware + v5.8 kernel.

https://github.com/thesofproject/sof-bin/tree/stable-v1.5.1

thx.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I don't see the option to disable NVIDIA in BIOS.

In the system overview section I do see the option "Video BIOS: nVidia <number>" but it is read only,

I will try 5.8 kernel now.

Perhaps I should disable nvidia as described here: https://askubuntu.com/a/757256/754424.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I managed to boot with 5.8 kernel without problems. (on boot I do see around dozen errors in the log, some mentioning ACPI and sof-audio).

With "options snd-hda-intel dmic_detect=0": Speakers work, internal mic list is empty.

Without "options snd-hda-intel dmic_detect=0": Speakers don't work (are shown as Dummy output), internal mic list is empty. Laptop didn't freeze (I only made 1 attempt though). But in "Software -> Additional Drivers" I see that "Nvidia driver metapackage from nvidia-driver-440 (proprietary,tested)" is in use.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

More updates:

I removed nvidia drivers as described here https://askubuntu.com/a/757256/754424 . Ofc without nouveau.modeset=0 it doesnt boot.

With nouveau.modeset=0 it boots ("Software and Updates-> Additional Drivers" shows "Using X.Org - Nouveau" as checked, but I think Nvidia GPU is not up. "sudo lshw -C video" shows UNCLAIMED on Nvidia).

With nouveau.modeset=0 and without "options snd-hda-intel dmic_detect=0" the system freezes on the login or immediately after login. The login screen looks kinda bad, the same as when I booted with 5.8 kernel.

The above tests were with 5.4 kernel.

Now I repeated the last test with 5.8 kernel. It boots, does not freeze, but speakers show Dummy output and mic is empty. (So the same as before disabling Nvidia and using 5.8)

----------------------------------
I think this means that Nvidia GPU is not the cause of the freeze but audio. The 5.8 does not load microphone so the system does not freeze. Also WITH dmic_detect=0 and 5.4/5.6 kernel the mic is not loaded so the system does not freeze.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I installed back Nvidia drivers (by selecting Additional Drivers -> "Using NVIDIA driver metapackage from nvidia-driver-440") when in kernel 5.4. First time gave me some errors. Then it did the switch.

Now 3x in a row the laptop booted with 5.8 (WITHOUT nouveau.modeset=0).

~$ sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: TU104BM [GeForce RTX 2080 Mobile]
       vendor: NVIDIA Corporation
       ...
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0

Looks like nvidia proprietary drivers are not loaded and Nouveau ones are used.

Now the behavior is:
- with "options snd-hda-intel dmic_detect=0": output device works, input device empty
- without "options snd-hda-intel dmic_detect=0": output device Dummy output, input device empty

Revision history for this message
Hui Wang (hui.wang) wrote :

Could you upload the dmesg of 5.8 kernel without dmic_detect=0?
thx.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

Sure. I attach dmesg with 5.8 kernel without dmic_detect=0.

Note that this is with nvidia with nouveau drivers.

~$ sudo lshw -C video
  *-display
       description: VGA compatible controller
       product: TU104BM [GeForce RTX 2080 Mobile]
       vendor: NVIDIA Corporation
       ...
       configuration: driver=nouveau latency=0
       resources: ...

Output device: Dummy output
Input device: <empty>

Revision history for this message
Vedran Rafaelic (croraf) wrote :

5.4 does NOT boot with nouveau (i have to disable them), but 5.8 does boot with nouveau.

(after uninstalling nvidia drivers I cannot install them again as per https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-440/+bug/1878946 but this is another story)

Revision history for this message
Hui Wang (hui.wang) wrote :

Please test this kernel https://people.canonical.com/~hwang4/hpomen/ and upload the dmesg.

If it still has the error of loading topology, I guess we have to try with sof-firmware-v1.5.1 with 5.8 kernel or 5.9-rc kernel.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I installed the kernel from the link (linux-image-5.9.0-rc2+_5.9.0-rc2+-55_amd64.deb).

Booted with dmic_detect=0 (showed output device correctly as with other kernels, showed no input device)

Booted without dmic_detect=0 - freezes on the login or immediately after. I managed to see the Sound->input device and Sound->output device prior to freeze which were present and looking the same as in #23 (which was 5.4 without dmic_detect=0). From the appearance of log screen seems that intel graphics is used.

I tried 4-5 times cannot force it to stay unfrozen long enough to test sound or output dmesg.

Revision history for this message
Hui Wang (hui.wang) wrote :

Then let us test the sof-firmware-v1.5.1

Please backup /lib/firmware/intel/sof/sof-cfl.ri and /lib/firmware/intel/sof-tplg/sof-hda-generic-2ch.tplg

and put the attached sof-cfl.ri to /lib/firmware/intel/sof/ and sof-hda-generic-2ch.tplg to /lib/firmware/intel/sof-tplg.

remove the dmic_detect=0 and reboot, test with the 5.9.0-rc2+ kernel.

Revision history for this message
Hui Wang (hui.wang) wrote :
Revision history for this message
Vedran Rafaelic (croraf) wrote :

I did. It did manage to boot without freezing (only 1 attempt at the moment).

Nvidia GPU is not used (UNCLAIMED).

Speakers and mic are working. Input and Output devices are shown as in #23.

(I have some other issues though, for example I cannot open some applications)

I attach my dmesg.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I restarted couple more times, does NOT freeze.

I tried 5.8 kernel also, but shows Output: Dummy output, Input: empty

Revision history for this message
Hui Wang (hui.wang) wrote :

No need to test 5.8 kernel.

Please test with ubuntu 5.4 kernel or 5.6 oem kernel, let us see if those 2 kernels could work with new sof-firmware, if they could, please test sof-cfl.ri and sof-hda-generic-2ch.tplg respectively, let us find which one of them is needed.

thx.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I tested now with 5.4 (5.4.0-42-generic) and it works without freeze. Same device input output as in #23. Attaching dmesg

Only one test (so not 100% that it will not freeze ever). As before on 5.4, after uninstalling Nvidia drivers I have to disable nouveau and use Intel GPU.

Will continue with the tests tomorrow.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I returned only the old sof-cfl.ri (which is a symbolic link to "signed/sof-cnl-signed-intel.ri") and tried to boot 5.9.0-rc2+ and it froze.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

Now I used new sof-cfl.ri and old sof-hda-generic-2ch.tplg and it did boot with mic and speakers working as per #23. Kernel 5.9.0-rc2+. No freezing.

Revision history for this message
Hui Wang (hui.wang) wrote :

OK, thanks for testing.

So the sof-cfl.ri is needed on your machine. Please use the sof-cfl.ri of sof-firmware-v1.5.1 temporarily. We plan to upgrade the sof-firmware in the ubuntu linux to v1.6.x once Intel releases the v1.6.x. Before v1.6.x is ready, please use that file as a workaround.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

The sof-cfl.ri file you attached in #46 is needed on my machine (to be able to run without dmic_detect=0). With this file and without dmic_detect=0 internal speakers and internal mic work. They are shown in Sound settings as described in #23. (Plugged jack headphones and mic also work).

I tested both with 5.4.0-42-generic and with 5.9.0-rc2+ kernels. The behavior is the same.

Now I should note. I use Intel GPU currently in both of these kernels! The kernel 5.8 does use Nvidia GPU with Nouveau drivers, but with that kernel the sound nor the mic don't work.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

I now managed to install again nvidia drivers after I had the error that resembles to the one described here https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-440/+bug/1878946

It might be that this sof-cfl.ri fixed this issue also. But maybe nvidia made a patch in the last 2 days.

So the speakers and the mic work on 5.4.0-42-generic with the nvidia drivers also.

Revision history for this message
Hui Wang (hui.wang) wrote :

Thanks Vedran, Let us wait for the sof-firmware-v1.6.x to be landed in the ubuntu linux.

affects: linux (Ubuntu) → linux-firmware (Ubuntu)
Changed in linux-firmware (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Vedran Rafaelic (croraf) wrote :

Thank you very much for your help and fix.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

After doing a minor update (through Software Updater) couple of days ago, which included several dozen of packages (I remember alsa something was in it) with a new kernel in it 5.4.0-45-generic (from 5.4.0-42-generic) the freezing started again to happen after login (almost always).

Now I managed to make a dmesg after a number of restarts. Do you think it has something to do with this issue, or should I open a new bug? Audio is working on 5.4.0-45, it is just the freeze.

(I'm booting 5.4.0-42 last couple of days as a workaround)

Revision history for this message
Hui Wang (hui.wang) wrote :

I think you upgraded the linux-firmware, then the sof-cfl.ri is back to v1.4.2. Please backup this file and use the file in the #46.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

But when booting with 5.4.0-42-generic it works without freezing.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

Indeed it got overwritten on the update! My "5.4.0-42-generic" also started to freeze.

Because before (and now again after the update) the "sof-cfl.ri" was just a symbolic link to "sof-cnl.ri" which is a symbolic link to "signed/sof-cnl-signed-intel.ri".

I put the new "sof-cfl.ri" now and "5.4.0-45-generic" is not freezing.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

My internal microphone stopped working today when I booted my PC.

Until yesterday everything worked fine.

I haven't seen any update. The sof-cfl.ri did say it was accessed yesterday but not modified for couple of months. I downloaded it again from #46 and put it in lib/firmware/intel/sof and rebooted. But it didn't help.

Please help.

Revision history for this message
Vedran Rafaelic (croraf) wrote :

It started working again by itself.

Revision history for this message
Andrey Kazakou (a-v-kazakou) wrote :

Confirm that issue actual for me on ubuntu Ubuntu 20.04.1 LTS release

Linux zx386 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

After replacing sof-cfl.ri file system working stable and not frezee

Revision history for this message
Andrey Kazakou (a-v-kazakou) wrote :

Small additionals: after upgrading to "Linux zx386 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux" where "linux-firmware" was upgraded to 1.187.6 version resolved the issue. In that package, sof-firmware was upgraded to 1.6 with current issue fixes.

Thank you all for helping solve this issue

Hui Wang (hui.wang)
Changed in linux-firmware (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.