Page 1 of 1

mic not working in HP laptop

Posted: Mon Oct 25, 2021 6:14 am
by moroselifter
Could you guys please help me make the mic in my new laptop work? HP 14s-dq2012ur , MX Linux AHS, XFCE. When I first installed the system, the sound wasn't working, I tried the trick from this forum

Code: Select all

echo 'options snd-intel-dspcfg dsp_driver=1' | sudo tee -a /etc/modprobe.d/sound.conf
and it helped. But I can't get the mic to work on my own. Not a very experienced Linux user here. The mic from the earphones works, the stereo mic from the laptop doesn't. ALSA says there's only 1 Input device, Microphone (unplugged)

Code: Select all

System:    Host: <filter> Kernel: 5.10.0-5mx-amd64 x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/vmlinuz-5.10.0-5mx-amd64 
           root=UUID=<filter> ro quiet hush 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 
           dm: LightDM 1.26.0 Distro: MX-19.4_ahs_x64 patito feo March 31  2021 
           base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: HP product: HP Laptop 14s-dq2xxx v: N/A serial: <filter> 
           Chassis: type: 10 serial: <filter> 
           Mobo: HP model: 87FD v: 57.15 serial: <filter> UEFI: AMI v: F.08 
           date: 01/15/2021 
Battery:   ID-1: BAT0 charge: 41.8 Wh condition: 41.8/41.0 Wh (102%) volts: 12.7/11.3 
           model: HP Primary type: Li-ion serial: <filter> status: Full cycles: 1 
CPU:       Topology: Dual Core model: Intel Pentium Gold 7505 bits: 64 type: MT MCP 
           arch: N/A family: 6 model-id: 8C (140) stepping: 1 microcode: 88 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
           bogomips: 15974 
           Speed: 1433 MHz min/max: 400/3500 MHz Core speeds (MHz): 1: 1500 2: 1270 
           3: 1289 4: 1448 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 
           mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:9a78 
           Display: x11 server: X.Org 1.20.10 driver: modesetting unloaded: fbdev,vesa 
           tty: N/A 
           OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT2) v: 4.6 Mesa 20.3.4 
           direct render: Yes 
Audio:     Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:a0c8 
           Sound Server: ALSA v: k5.10.0-5mx-amd64 
Network:   Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
           vendor: Hewlett-Packard driver: rtl8821ce v: v5.5.2.1_35598.20191029 
           port: 3000 bus ID: 01:00.0 chip ID: 10ec:c821 
           IF: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 56.03 GiB (23.5%) 
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC511 HFM256GDJTNI-82A0A 
           size: 238.47 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: HPS0 scheme: GPT 
Partition: ID-1: / raw size: 235.68 GiB size: 230.98 GiB (98.01%) 
           used: 53.95 GiB (23.4%) fs: ext4 dev: /dev/dm-0 
           ID-2: /boot raw size: 512.0 MiB size: 487.9 MiB (95.30%) 
           used: 99.6 MiB (20.4%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 1.98 GiB used: 1.98 GiB (100.0%) fs: swap 
           swappiness: 15 (default 60) cache pressure: 100 (default) dev: /dev/dm-1 
Sensors:   System Temperatures: cpu: 46.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/megasync.list 
           1: deb https://mega.nz/linux/MEGAsync/Debian_10.0/ ./
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.truenetwork.ru/mxlinux/mx/repo/ buster main non-free
           2: deb http://mirror.truenetwork.ru/mxlinux/mx/repo/ buster ahs
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 273 Uptime: 2h 09m Memory: 3.50 GiB used: 2.29 GiB (65.6%) 
           Init: SysVinit v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 
           Shell: quick-system-in running in: quick-system-in inxi: 3.0.36 

Re: mic not working in HP laptop

Posted: Mon Oct 25, 2021 7:17 am
by j2mcgreg
With applications like Zoom, you may have to configure which input to use within the application itself.

Re: mic not working in HP laptop

Posted: Mon Oct 25, 2021 8:51 am
by Huckleberry Finn
Yes, but that's already a known side-effect of that parameter. So, you must've seen either that note & workarounds in the same thread / post (by me)

... like adding model=xxx in the options..


You can do this: First disable that file to prevent confusions (rename it to ...conf.old ) :

Code: Select all

sudo mv /etc/modprobe.d/sound.conf /etc/modprobe.d/sound.conf.old

Then from "MX Package Installer" , Test repo tab, install the latest 5.14 kernel and try the sound when booted with that ...

Re: mic not working in HP laptop

Posted: Mon Oct 25, 2021 1:20 pm
by moroselifter
j2mcgreg wrote: Mon Oct 25, 2021 7:17 am With applications like Zoom, you may have to configure which input to use within the application itself.
Tried to do that, Zoom just gives me 2 options to choose from, Analog Stereo or Same As System, neither option works (inbuilt mic doesn't work). Zoom works fine when I plug my headphones with mic in.

Re: mic not working in HP laptop

Posted: Mon Oct 25, 2021 1:37 pm
by moroselifter
Huckleberry Finn wrote: Mon Oct 25, 2021 8:51 am Yes, but that's already a known side-effect of that parameter. So, you must've seen either that note & workarounds in the same thread / post (by me)

... like adding model=xxx in the options..


You can do this: First disable that file to prevent confusions (rename it to ...conf.old ) :

Code: Select all

sudo mv /etc/modprobe.d/sound.conf /etc/modprobe.d/sound.conf.old

Then from "MX Package Installer" , Test repo tab, install the latest 5.14 kernel and try the sound when booted with that ...
Did that, renamed the file, then installed kernel 5.14 ("Liquorix"), but still no result. Alsa mixer still shows Input Devices: Port: Microphone (unplugged).

Re: mic not working in HP laptop

Posted: Mon Oct 25, 2021 3:08 pm
by Huckleberry Finn
What about sound? (with 5.14)

( Also , just to make it sure: In Alsamixer you did this, right? : F6 "Select sound card" , then F5 "All" )

Re: mic not working in HP laptop

Posted: Tue Oct 26, 2021 3:46 am
by moroselifter
Huckleberry Finn wrote: Mon Oct 25, 2021 3:08 pm What about sound? (with 5.14)

( Also , just to make it sure: In Alsamixer you did this, right? : F6 "Select sound card" , then F5 "All" )
Sound continued to work after kernel change (although I lost wifi again, as after MX was installed fresh, and had to reinstall wifi package).
When Alsamixer starts in Terminal first, there's just Master, press F5, now there's L R Capture bar (in the reds). This laptop has left and right mics, hence L & R.
If I choose another sound card with F6 (Chip Realtek ALC236), there are two bars for Mic Boost, also both in their red zones.
But still no luck with the mic :)

Re: mic not working in HP laptop

Posted: Tue Oct 26, 2021 7:23 am
by Huckleberry Finn
moroselifter wrote: Tue Oct 26, 2021 3:46 amas after MX was installed fresh, and had to reinstall wifi package
But... rtl8821ce is present in the kernel by default :

Code: Select all

$ modinfo rtl8821ce
filename:       /lib/modules/5.10.0-9-amd64/updates/rtl8821ce.ko
version:        v5.5.2.1_35598.20191029
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
...
Even in 4.9 :

Code: Select all

$ modinfo rtl8821ce
filename:       /lib/modules/4.9.0-276-antix.1-amd64-smp/updates/rtl8821ce.ko
version:        v5.5.2.1_35598.20191029
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
...
Meanwhile, particularly first F6 select Intel (rather than "default") , then F5 after that.

(Also select (and Apply) Intel in "MX Select Sound" from Menu )

Re: mic not working in HP laptop

Posted: Thu Oct 28, 2021 2:20 pm
by moroselifter
Huckleberry Finn wrote: Tue Oct 26, 2021 7:23 am
moroselifter wrote: Tue Oct 26, 2021 3:46 amas after MX was installed fresh, and had to reinstall wifi package
But... rtl8821ce is present in the kernel by default :
No idea!

Got tired of fighting that mic issue, decided to reinstall the operating system, right at the time when MX21 came out, so I installed it. Wifi, sound, mic now all work from fresh installed OS, no hassle

Re: mic not working in HP laptop  [Solved]

Posted: Thu Oct 28, 2021 2:27 pm
by Huckleberry Finn
Glad to hear all are fine now :)

(Though this is also odd: 5.10.0-5 vs. 5.10.0-9 only )

You can (and please) mark the thread like this: