LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-18-2015, 04:21 PM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Rotterdam, Netherlands
Distribution: Fedora 28
Posts: 82

Rep: Reputation: 1
Ear phone jack not working


Hi all,

after a very long time with everything working very well on my Sabayon-Linux, I encountered a hardware problem today after upgrading my kernel from 3.14 to 4.3

All of a sudden the ear phone jack isn't working anymore. I reverted back to older kernel versions (back to the original one 3.14, but tried also all kernel versions from 3.15 to 4.2) but the issue remains.

I checked for dependencies, everything else is working.

I do have sound with the internal speakers of my laptop, so sound in general is not the problem.

Here is what I tried on the command line to narrow down the problem:

Checked for drivers in use:

Code:
lspci -nnk

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
        Subsystem: Lenovo ThinkPad T440p [17aa:220e]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
Then checked for recognized sound devices with aplay:

Code:
aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: HDMI [HDA Intel HDMI], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: HDMI [HDA Intel HDMI], Gerät 7: HDMI 1 [HDMI 1]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: HDMI [HDA Intel HDMI], Gerät 8: HDMI 2 [HDMI 2]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: PCH [HDA Intel PCH], Gerät 0: ALC3232 Analog [ALC3232 Analog]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
Checked whether the ear phone jack was recognized as plugged in:

Code:
cat /proc/asound/card0/codec#0
Codec: Intel Haswell HDMI
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862807
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled GenLevel KAE
  Digital category: 0x2
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled KAE
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled KAE
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="ELD", index=0, device=3
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0b000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Devices: 0
  Connection: 0
  In-driver Connection: 3
     0x02 0x03 0x04
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="IEC958 Playback Con Mask", index=1, device=0
  Control: name="IEC958 Playback Pro Mask", index=1, device=0
  Control: name="IEC958 Playback Default", index=1, device=0
  Control: name="IEC958 Playback Switch", index=1, device=0
  Control: name="ELD", index=0, device=7
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0b000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Devices: 0
  Connection: 0
  In-driver Connection: 3
     0x02 0x03 0x04
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="IEC958 Playback Con Mask", index=2, device=0
  Control: name="IEC958 Playback Pro Mask", index=2, device=0
  Control: name="IEC958 Playback Default", index=2, device=0
  Control: name="IEC958 Playback Switch", index=2, device=0
  Control: name="ELD", index=0, device=8
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0b000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=03, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Devices: 0
  Connection: 0
  In-driver Connection: 3
     0x02 0x03 0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono
Here http://unix.stackexchange.com/questi...ction-in-linux I found the remark that one should for the following line Pin-ctls: 0x00:; when the is no OUT, then the ear phones are plugged in (which is the case according to the shell output). Actually pulling out the cable and then plug it in, doesn't change the output, so apparently my system always assumes ear phones are plugged in.

To me it seems unlikely that by any chance the ear phone jack hardware should have broken down just today when upgrading the kernel.

What else can I do to fix the issue?

Thanks for your help
 
Old 12-18-2015, 11:01 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,864
Blog Entries: 27

Rep: Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662
Did you open up alsamixer or pavucontrol or whatever mixer application you are using to check that the external did not get muted during the upgrade?
 
Old 12-19-2015, 03:37 AM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Rotterdam, Netherlands
Distribution: Fedora 28
Posts: 82

Original Poster
Rep: Reputation: 1
Thanks for the hint.

When I open alsamixer, I see two entries HEADPHONES (there is HEADPHONE & HEADPHONE 1), one is set at full volume and its volume can be changed. Alas the second entry is set at zero volume (no mute), it can NOT changed by whatever key.

I tried to change all other entries in order so see whether that might help, it didn't.

Any further ideas, what I can do?

Thanks for your help
 
Old 12-19-2015, 04:27 AM   #4
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 260

Rep: Reputation: 57
I describe how to use hdajacksensetest here: http://ubuntuforums.org/showthread.p...0#post13393540
 
Old 12-19-2015, 06:18 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,390
Blog Entries: 9

Rep: Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652
re your aplay output:
i think the analog device should be the default device.
since the default device is usually 0, maybe something got mixed up during the last upgrade...
try playing with the settings in alsamixer (F5, F6...), if you get it to work, we will see how to make it permanent.
 
Old 12-19-2015, 07:22 AM   #6
PasBern
Member
 
Registered: Dec 2009
Location: Rotterdam, Netherlands
Distribution: Fedora 28
Posts: 82

Original Poster
Rep: Reputation: 1
I don't know what exactly happened, but today the ear phone jack started working again with all kernel versions. I noticed that alsamixer now display only one entry for HEADPHONES, before it showed two and one was set to no volume and couldn't be changed.

I will mark this thread as solved.
 
Old 12-19-2015, 04:59 PM   #7
PasBern
Member
 
Registered: Dec 2009
Location: Rotterdam, Netherlands
Distribution: Fedora 28
Posts: 82

Original Poster
Rep: Reputation: 1
Unhappy

Unfortunately the headphones stopped working again, no matter which kernel version I use. I'm dumbfounded, now only one HEADPHONES entry appears in alsamixer.

I just don't know where to look anymore. Sound seems to have become a game of roulette.
 
Old 12-19-2015, 05:26 PM   #8
PasBern
Member
 
Registered: Dec 2009
Location: Rotterdam, Netherlands
Distribution: Fedora 28
Posts: 82

Original Poster
Rep: Reputation: 1
I tried the hdajacksensetest, no luck here
 
Old 12-19-2015, 05:45 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,000
Blog Entries: 1

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
$ cat /proc/asound/cards

The /proc/asound/cards file lists your devices. They may not be getting the same index number each boot. You can override the defaults through various means.

FILE: ~/.asoundrc
Code:
defaults.pcm.card 1
Is one way to override the default of 0. It's more complex than it used to be since everything has a sound card these days. motherboard, video card, webcam, ... ... ... Great for the NSA, terrible for the user experience.

$ alsamixer -c 1
$ speakertest -c 2 -Dhw:1,0
(with Control+C to kill that one)

One way to test a soundcard out. But doesn't really work if jackd or pulseaudio has claimed the device. Depending on distro and configuration and such.
 
Old 12-19-2015, 10:25 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,864
Blog Entries: 27

Rep: Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662
Pulse usually rides on top of ALSA.

If your distro uses Pulse, install pavucontrol, if it's not already present. That's the Pulse mixer, which displays additional options from the basic Pulse volume control. There's a possibility that Pulse settings are overriding ALSA settings.
 
Old 12-20-2015, 07:07 PM   #11
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 260

Rep: Reputation: 57
Quote:
Originally Posted by PasBern View Post
I tried the hdajacksensetest, no luck here
What does that mean? hdajacksensetest is not supposed to solve your problem. It is supposed to verify that when you plug your headphones in, the hardware sent a signal to the the kernel/driver and the kernel/driver acknowledged it.

So when you say "no luck here", does that mean jack sensing works properly even when your headphones are not giving sound?
 
Old 12-21-2015, 08:06 AM   #12
PasBern
Member
 
Registered: Dec 2009
Location: Rotterdam, Netherlands
Distribution: Fedora 28
Posts: 82

Original Poster
Rep: Reputation: 1
Well, I didn't expect it to solve my problem. The message sent to the kernel by the headphones was not acknowledged.

For some reason I don't quite understand, the headphones plug started working again. I reverted to kernel 3.14 to have wireless working (beginning from kernel 4.0 the firmware didn't get loaded anymore. See: http://www.linuxquestions.org/questi...-a-4175561833/). I noticed that when booting up my computer with a LAN cable plugged in I sometimes encounter the sound problems described. On the other hand starting only with wireless and the plugging in the LAN cable works fine.

Really weird
 
  


Reply

Tags
sounds, speakers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install magic jack phone in ubuntu? gaspal Ubuntu 6 05-03-2012 09:57 PM
Ubuntu 11.04 the front panel ear phone output is not responsive laaaxy Linux - Newbie 5 06-16-2011 08:47 AM
Linux and Magic jack phone. jayplate Linux - Newbie 2 01-06-2011 11:56 AM
Ear phone not working pratikvimal Linux - Software 2 06-15-2009 04:18 AM
Head Phone jack is not working in fedora 10 why???? harish.pappu Linux - Networking 1 03-02-2009 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration