View previous topic :: View next topic |
Author |
Message |
c6m5 n00b
Joined: 11 Jun 2023 Posts: 15
|
Posted: Fri Oct 18, 2024 3:45 pm Post subject: No headphone sound using snd_hda_intel |
|
|
Deep breath.
I have a Lenovo ThinkPad W540 running latest Gentoo. Have been having issues with a noisy headphone mic for some time.
Today I tried different combinations of module parameters https://docs.kernel.org/sound/hd-audio/models.html#alc22x-23x-25x-269-27x-28x-29x-and-vendor-specific-alc3xxx-models and codec hint strings https://docs.kernel.org/6.0/sound/hd-audio/notes.html#hint-strings
My trial and error cycle consisted of unloading and reloading the module with various combinations of options.
Code: | modprobe -r snd_hda_intel
modprobe snd_hda_intel model=headset-mic,dell-headset-multi,thinkpad auto_mute=0 auto_mic=0 multi_io=1 power_save_node=0 add_hp_mic=1 |
Recording some audio and playing it back.
Code: | arecord -D front -t wav -f cd test.wav
aplay -D default:PCH test.wav |
I did notice loudish pops in my headphones when I reloaded the module with certain parameters.
I was making good progress, but then suddenly no sound through headphones.
It's a pair of in-ear Lenovo headphones with a mute button.
Sound is working via speakers, so I'm thinking I must've blew my headphone jack?
Is that even possible?
Any way to confirm that I blew it?
How to prevent it from happening again?
Any ideas or advice will be much appreciated. |
|
Back to top |
|
|
c6m5 n00b
Joined: 11 Jun 2023 Posts: 15
|
Posted: Fri Oct 18, 2024 3:54 pm Post subject: |
|
|
Been testing the sound using:
Code: | speaker-test -D default:PCH -c 2 |
No sound when headphones are plugged in. I tried two different pairs.
Sound through laptop speakers when headphones are unplugged. |
|
Back to top |
|
|
sdauth l33t
Joined: 19 Sep 2018 Posts: 654 Location: Ásgarðr
|
Posted: Fri Oct 18, 2024 4:48 pm Post subject: |
|
|
Do you have thinkpad_acpi (built as module) in your kernel ? Is it loaded ? |
|
Back to top |
|
|
c6m5 n00b
Joined: 11 Jun 2023 Posts: 15
|
Posted: Fri Oct 18, 2024 5:15 pm Post subject: |
|
|
Thanks for responding and pitching an idea.
Yes, it looks like it's loaded.
Code: | #lsmod | grep thinkpad
thinkpad_acpi 135168 0
platform_profile 12288 1 thinkpad_acpi
#lsmod | grep snd_hda_intel
snd_hda_intel 36864 0
snd_intel_dspcfg 12288 1 snd_hda_intel
snd_hda_codec 139264 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek |
|
|
Back to top |
|
|
sdauth l33t
Joined: 19 Sep 2018 Posts: 654 Location: Ásgarðr
|
Posted: Fri Oct 18, 2024 6:47 pm Post subject: |
|
|
I'm using a T400. I remember thinkpad_acpi was needed to have the mute button working.
After a second read, your issue is different.
On my T400 I have :
Code: | lsmod | grep thinkpad
thinkpad_acpi 122880 0
nvram 12288 1 thinkpad_acpi
ledtrig_audio 12288 2 snd_hda_codec_generic,thinkpad_acpi
platform_profile 12288 1 thinkpad_acpi
snd 90112 12 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,thinkpad_acpi,snd_aloop,snd_pcm,snd_mixer_oss |
With alsamixer, make sure all channels are open.
Otherwise, could you share your kernel config ? (or at least : grep SND_HDA /usr/src/linux/.config )
Maybe others will be able to assist better.
Cheers |
|
Back to top |
|
|
Ralphred l33t
Joined: 31 Dec 2013 Posts: 657
|
Posted: Fri Oct 18, 2024 11:30 pm Post subject: |
|
|
I don't think my x270 has a close enough profile to be of help, but it does "just works" OoTB (it's new to me and just been built for the first time), so if you can think of any info you'd like I'll happily supply it.
Quote: | Any way to confirm that I blew it? | Hmm, hdajackretask will allow you to "disconnect" individual physical outputs from alsa sources, and "reconnect" them to others*; I would imagine that a laptop HP/Mic jack switches itself and speakers on/off via "software" and not a hardware switch (space is tight and at a premium), so you can literally duplicate the speaker output on the HP jack and sidestep any "software switching issue" to physically check the output. It also means if you can hear the speakers, you should hear the headphones too, sidestepping any possible "alsamixer" related issue.
Quote: | Is that even possible? | It might be; there is more than one configuration of "what pin does what" on 4 pole 3.5mm audio jack (OMTP vs CTIA), if any of the switches you flipped toggled that standard (can't see it myself, Neddy may know more) then you did just try and "ground" your earphone's speakers through the mic input, which is a sensitive and amplified input...
*I have my desktops "front headphone socket" left and right re-tasked as "Mid-left" and "Mid-right", so I get 7.1 instead of 5.1, just as an example |
|
Back to top |
|
|
c6m5 n00b
Joined: 11 Jun 2023 Posts: 15
|
Posted: Mon Oct 21, 2024 11:02 am Post subject: |
|
|
Thank you for answering my questions. I'll be sure to read up on hdajackretask
I've purchased a USB to 3.5mm audio jack adapter, which is working as expected. The audio jack on my laptop also started working again. Sound from the headset mic is still terrible, so I've switched to using the USB adapter for calls.
I'm still running the exact same kernel and config, so not sure what caused it to start working again. I reverted a bunch of packages to stable, so maybe something to do with that.
It's been a painful, but enlightening two weeks. Still loving Gentoo.
Back to work for now.
Thanks again. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|