Lenovo T450s laptop headphone audio doesn't work, suspend/resume fixes it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm currently running Fedora 26 on Lenovo T450s laptop, running Linux 4.12 kernel, and there's an annoying bug with the sound support. Basicly after proper (power cycle) boot everything works fine, both the laptop internal speakers, and also headphones are correctly detected when I plug them in to the headphone jack/port, and the headphones work OK, I can listen to music just fine.

But.. after a while, most probably after some laptop suspend/resume cycles, the headphone output stops working. Headphones are still detected OK when I plug them in, and *everything* looks correct in sound control applet and in pavucontrol, but there's no audio coming out from the headphones. All the alsa/pulseaudio settings are 100% correct, but there's only silence.. Nothing seems to help.. until I suspend/resume the laptop again, and then it works OK again..

Any idea what might cause that? It feels like a kernel sound driver bug to me.. Basicly the driver fails to initialize the headphone jack/output sometimes when it resumes from suspend/sleep?

I've seen this same issue happening also earlier when I was running Fedora 24, with older Linux kernel versions. So it's not a new bug.. it has been there for many kernel releases already.

Any ideas how to fix it? Do other people have the same issue?


$ cat /proc/asound/cards
 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xe1230000 irq 47
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xe1234000 irq 46

$ dmesg | grep -i hda
[    8.448592] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    8.479972] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC3232: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    8.479974] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    8.479975] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=2 (0x16/0x15/0x0/0x0/0x0)
[    8.479976] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    8.479976] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    8.479977] snd_hda_codec_realtek hdaudioC1D0:      Dock Mic=0x19
[    8.479978] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x1a
[    8.479979] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x12
[    8.481799] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input10
[    8.481881] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input11
[    8.481940] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input12
[    8.481992] input: HDA Intel HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/sound/card0/input13
[    8.482047] input: HDA Intel HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.0/sound/card0/input14
[    8.507015] input: HDA Intel PCH Dock Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input16
[    8.507095] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input17
[    8.507157] input: HDA Intel PCH Dock Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input18
[    8.507404] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input19

$ lsmod | grep -i snd
snd_usb_audio         196608  0
snd_usbmidi_lib        32768  1 snd_usb_audio
snd_rawmidi            32768  1 snd_usbmidi_lib
snd_hda_codec_realtek    90112  1
snd_hda_codec_hdmi     49152  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_intel          40960  11
snd_hda_codec         126976  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_hda_codec,snd_usb_audio
snd_seq                65536  0
snd_seq_device         16384  2 snd_seq,snd_rawmidi
snd_pcm               102400  5 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core,snd_hda_codec_hdmi
snd_timer              32768  2 snd_seq,snd_pcm
snd                    77824  36 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_usb_audio,snd_timer,thinkpad_acpi,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd



Thanks,

-- Pasi


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux