PDA

View Full Version : Realtek ALC897 on 6.5.0-kali3-amd64 fails to detect microphone when insert in Green Headphone, Front



asadz
2024-02-08, 08:28
I'm for days struggling to connect my `karler bass` headphones with bultin-mic on `6.5.0-kali3-amd64` desktop . I have insert the jack cable in front panel as


5411

The output of `sudo hdajacksensetest -s -c 0` is shown as

Pin 0x14 (Green Line Out, Rear side): present = No
Pin 0x18 (Pink Mic, Rear side): present = No
Pin 0x19 (Pink Mic, Front side): present = No
Pin 0x1a (Blue Line In, Rear side): present = No
Pin 0x1b (Green Headphone, Front side): present = Yes

**Workarounds**

sudo vi /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=alc891-headset-multi

└─$ cat /etc/modprobe.d/audio-jack.conf
#snd_hda_intel model=headset-mode

HDAJackRetask


**Results**
Both options for the .conf file failed for me for reasons I don't know exactly with the `alsa-base` file I get noise if i configure it and it disable the speaker, and in some case I'm only able to record the internal sound like sound from youtube but not from the attached microphone of my headset.

With `HDAJackRetask` I changed the settings for 0x1b to microphone the problem then it shutdown the speaker and audio and the mic would work but it record internal sounds only.

**Outputs**

ls -l /dev/snd

total 0
drwxr-xr-x 2 root root 60 Feb 8 10:56 by-path
crw-rw----+ 1 root audio 116, 11 Feb 8 10:56 controlC0
crw-rw----+ 1 root audio 116, 9 Feb 8 10:56 hwC0D0
crw-rw----+ 1 root audio 116, 10 Feb 8 10:56 hwC0D2
crw-rw----+ 1 root audio 116, 3 Feb 8 12:26 pcmC0D0c
crw-rw----+ 1 root audio 116, 2 Feb 8 12:26 pcmC0D0p
crw-rw----+ 1 root audio 116, 4 Feb 8 12:26 pcmC0D1p
crw-rw----+ 1 root audio 116, 5 Feb 8 10:57 pcmC0D2c
crw-rw----+ 1 root audio 116, 6 Feb 8 10:57 pcmC0D3p
crw-rw----+ 1 root audio 116, 7 Feb 8 10:57 pcmC0D7p
crw-rw----+ 1 root audio 116, 8 Feb 8 10:57 pcmC0D8p
crw-rw----+ 1 root audio 116, 1 Feb 8 10:56 seq
crw-rw----+ 1 root audio 116, 33 Feb 8 10:56 timer

sudo fuser -v /dev/snd/*

USER PID ACCESS COMMAND
/dev/snd/controlC0: asad 1536 F.... pipewire
asad 1538 F.... wireplumber
/dev/snd/pcmC0D0c: asad 1536 F...m pipewire
/dev/snd/pcmC0D0p: asad 1536 F...m pipewire
/dev/snd/seq: asad 1536 F.... pipewire

pactl list cards
https://pastebin.com/U9eKiFjX

pactl list sources
https://pastebin.com/9PhG88z2

pact list source-outputs
https://pastebin.com/7KxTFrid

The issue is that my motherboard device `ALC897` doesn't have supported module in
https://www.kernel.org/doc/html/latest/sound/hd-audio/models.html

[1]: https://i.stack.imgur.com/YYvlp.jpg

**Possible solutions**

I was tempted to try this https://bbs.archlinux.org/viewtopic.php?id=275507
but this seems to work for fixing sound, where I want to fix the microphone.