No sound in headphone jack

I am unable to get sound working on the headphone jack
This headset used to work on this device and works on other devices correctly.
I have tried other headsets also.
There is also a cracking sound on connecting/disconnecting the headphone jack
output of amixer:

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 36701 [56%] [on]
  Front Right: Playback 36701 [56%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 0 [0%] [off]
  Front Right: Capture 0 [0%] [off]

I’ve updated to the latest tumbleweed version.

How was TW updated?

Install pavucontrol and use that to set the proper output.

sudo zypper dup

Install pavucontrol and use that to set the proper output.

Pavucontrol is installed, profile is set to analog stereo output on the configuration tab,
Port is set to headphones(plugged in) on output devices tab with volume set to 60%
I’ve also set the system sounds on the playback tab to non zero.

Setting the profile to analog stereo duplex does not change anything.
Also I’m using kde.

The next step I advise is to run the alsa-info.sh diagnostic script, let it upload results to an online server, and report back here with the link to it.

https://en.opensuse.org/SDB:Audio_troubleshooting
*Refer step 3

Please post the output of

pacmd list sinks

http://www.alsa-project.org/db/?f=1a2e6569df3a19086695fed23e5c104b039bd5d9

https://paste.opensuse.org/52900613

I didn’t have time to go through the diagnostic output yet, but the ‘pacmd list sinks’ output shows that you’re still using the speaker output configuration…

               analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>

Sorry, at that time I did not plug in the headphones.
This ones’s with it plugged in.
https://paste.opensuse.org/44724753

Which desktop environment are we talking about?

I’m using Kde

Go Systemsettings - Multimedia - Sound volume. See what is set at the Internal Audio output.

It is set to headphones on the Devices tab

What is reported by the following?

amixer -c0

In particular, check headphones not muted.


Invalid card number.

Running amixer -c1 gives:


Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'Headphone Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] -65.25dB] [off]
  Front Right: Playback 0 [0%] -65.25dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Mute-LED Mode',0
  Capabilities: enum
  Items: 'On' 'Off' 'Follow Capture' 'Follow Mute'
  Item0: 'Follow Capture'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 40 [63%] [12.75dB] [off]
  Front Right: Capture 40 [63%] [12.75dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 120 [100%] [30.00dB]
  Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Headset Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Headset Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Internal Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]

The amixer output looks ok, with ‘Headphone’ levels at max (be careful) and unmuted. Are you sure that this is not a hardware issue eg faulty headphone socket?

Try the following to see if any audio heard…

speaker-test -Dplug:front -c2 -l5 -twav
speaker-test -c2 -l5 -twav
aplay /usr/share/sounds/alsa/test.wav

I woke the laptop from suspend and the headphone jack was working as it should.
Then I restarted to check it and it was working fine but after suspending it and then turning it on
the headphone jack stopped working again.

After a reboot it seems to be working fine across suspend(s).
I’ll report back if it stops working again. Thanks for your help.