New in Linux - hardware problem - sound only at headphone jack

Like the title says, I have sound only out of the headphone jack, on a fresh installation of opensuse Tumbleweed. After a month of searching and trying different methods, I ask your help here…

I have this sound device that is shown on the Windows 10 Device Manager.
Realtek Semiconductor Corp.

Please share the output from

pactl list cards
pactl list sinks

It might also be useful to provide audio hardware details here…

inxi -Aa

Connection failure: Connection refused
pa_context_connect() failed: Connection refused

For both of them, commands.

Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel alternate: snd_soc_skl, snd_soc_avs,
snd_sof_pci_intel_skl bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403
API: ALSA v: k6.4.3-1-default status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
status: off 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

Also when I give

head -n 1 /proc/asound/card0/codec*

the return is:

==> /proc/asound/card0/codec#0 <==
Codec: Realtek ALC295

==> /proc/asound/card0/codec#2 <==
Codec: Intel Kabylake HDMI

You’re not logged in as root are you?

Before I had not sound even from headphones.
Now after a reboot I have sound only from headphones.

And the command returns some data.

pactl list cards

Card #41
Name: alsa_card.pci-0000_00_1f.3
Driver: alsa
Owner Module: n/a
Properties:
api.acp.auto-port = “false”
api.acp.auto-profile = “false”
api.alsa.card = “0”
api.alsa.card.longname = “HDA Intel PCH at 0xb2328000 irq 151”
api.alsa.card.name = “HDA Intel PCH”
api.alsa.path = “hw:0”
api.alsa.use-acp = “true”
api.dbus.ReserveDevice1 = “Audio0”
device.api = “alsa”
device.bus = “pci”
device.bus_path = “pci-0000:00:1f.3”
device.description = “Built-in Audio”
device.enum.api = “udev”
device.form_factor = “internal”
device.icon_name = “audio-card-analog-pci”
device.name = “alsa_card.pci-0000_00_1f.3”
device.nick = “HDA Intel PCH”
device.plugged.usec = “7940843”
device.product.id = “0x9d71”
device.product.name = “Sunrise Point-LP HD Audio”
device.subsystem = “sound”
sysfs.path = “/devices/pci0000:00/0000:00:1f.3/sound/card0”
device.vendor.id = “0x8086”
device.vendor.name = “Intel Corporation”
media.class = “Audio/Device”
factory.id = “14”
client.id = “33”
object.id = “41”
object.serial = “41”
object.path = “alsa:pcm:0”
alsa.card = “0”
alsa.card_name = “HDA Intel PCH”
alsa.long_card_name = “HDA Intel PCH at 0xb2328000 irq 151”
alsa.driver_name = “snd_hda_intel”
device.string = “0”
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5965, available: yes)
output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5765, available: no)
output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5765, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 665, available: no)
output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 665, available: no)
output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 665, available: no)
output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 665, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
pro-audio: Pro Audio (sinks: 4, sources: 1, priority: 1, available: yes)
Active Profile: output:analog-stereo+input:analog-stereo
Ports:
analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability group: Legacy 1, availability unknown)
Properties:
port.type = “mic”
port.availability-group = “Legacy 1”
device.icon_name = “audio-input-microphone”
card.profile.port = “0”
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo
analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 2, not available)
Properties:
port.type = “mic”
port.availability-group = “Legacy 2”
device.icon_name = “audio-input-microphone”
card.profile.port = “1”
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo
analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 3, not available)
Properties:
port.type = “speaker”
port.availability-group = “Legacy 3”
device.icon_name = “audio-speakers”
card.profile.port = “2”
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 4, available)
Properties:
port.type = “headphones”
port.availability-group = “Legacy 4”
device.icon_name = “audio-headphones”
card.profile.port = “3”
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 5, available)
Properties:
port.type = “hdmi”
port.availability-group = “Legacy 5”
device.icon_name = “video-display”
card.profile.port = “4”
device.product.name = “LG HDR 4K”
Part of profile(s): output:hdmi-stereo, output:hdmi-stereo+input:analog-stereo
hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 6, not available)
Properties:
port.type = “hdmi”
port.availability-group = “Legacy 6”
device.icon_name = “video-display”
card.profile.port = “5”
Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1, output:hdmi-surround71-extra1+input:analog-stereo
hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 7, not available)
Properties:
port.type = “hdmi”
port.availability-group = “Legacy 7”
device.icon_name = “video-display”
card.profile.port = “6”
Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2, output:hdmi-surround71-extra2+input:analog-stereo


pactl list sinks

Sink #44
State: SUSPENDED
Name: alsa_output.pci-0000_00_1f.3.analog-stereo
Description: Built-in Audio Analog Stereo
Driver: PipeWire
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Base Volume: 65536 / 100% / 0,00 dB
Monitor Source: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.card = “0”
alsa.card_name = “HDA Intel PCH”
alsa.class = “generic”
alsa.device = “0”
alsa.driver_name = “snd_hda_intel”
alsa.id = “ALC295 Analog”
alsa.long_card_name = “HDA Intel PCH at 0xb2328000 irq 151”
alsa.name = “ALC295 Analog”
alsa.resolution_bits = “16”
alsa.subclass = “generic-mix”
alsa.subdevice = “0”
alsa.subdevice_name = “subdevice #0
api.alsa.card.longname = “HDA Intel PCH at 0xb2328000 irq 151”
api.alsa.card.name = “HDA Intel PCH”
api.alsa.path = “front:0”
api.alsa.pcm.card = “0”
api.alsa.pcm.stream = “playback”
audio.channels = “2”
audio.position = “FL,FR”
card.profile.device = “6”
device.api = “alsa”
device.class = “sound”
device.id = “41”
device.profile.description = “Analog Stereo”
device.profile.name = “analog-stereo”
device.routes = “2”
factory.name = “api.alsa.pcm.sink”
media.class = “Audio/Sink”
device.description = “Built-in Audio”
node.name = “alsa_output.pci-0000_00_1f.3.analog-stereo”
node.nick = “ALC295 Analog”
node.pause-on-idle = “false”
object.path = “alsa:pcm:0:front:0:playback”
priority.driver = “1009”
priority.session = “1009”
factory.id = “18”
clock.quantum-limit = “8192”
client.id = “33”
node.driver = “true”
factory.mode = “merge”
audio.adapt.follower = “”
library.name = “audioconvert/libspa-audioconvert”
object.id = “44”
object.serial = “44”
node.max-latency = “16384/48000”
api.alsa.period-size = “1024”
api.alsa.period-num = “32”
api.alsa.headroom = “0”
api.acp.auto-port = “false”
api.acp.auto-profile = “false”
api.alsa.card = “0”
api.alsa.use-acp = “true”
api.dbus.ReserveDevice1 = “Audio0”
device.bus = “pci”
device.bus_path = “pci-0000:00:1f.3”
device.enum.api = “udev”
device.form_factor = “internal”
device.icon_name = “audio-card-analog-pci”
device.name = “alsa_card.pci-0000_00_1f.3”
device.nick = “HDA Intel PCH”
device.plugged.usec = “7940843”
device.product.id = “0x9d71”
device.product.name = “Sunrise Point-LP HD Audio”
device.subsystem = “sound”
sysfs.path = “/devices/pci0000:00/0000:00:1f.3/sound/card0”
device.vendor.id = “0x8086”
device.vendor.name = “Intel Corporation”
device.string = “0”
Ports:
analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, not available)
analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 4, available)
Active Port: analog-output-headphones
Formats:
pcm

Please use the ‘Preformatted text’ (</>) button when you post commands and output to preserve it’s structure as presented in the terminal you copied it from.

Can you please try starting pipewire-pulse as it appears to be inactive.

Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
status: off 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

Do that by executing the following as regular user…

systemctl --user enable --now pipewire.{socket,service}

You can try to use pavucontrol to set the desired profile (Configuration tab), and sink (Output Devices tab) as required.

Does sound come via the speakers after doing that?

After the command

systemctl --user enable --now pipewire.{socket,service}

as a regular user, there is no output message at konsole.

But now, if I give

inxi -Aa
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl, snd_soc_avs,
    snd_sof_pci_intel_skl bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403
  API: ALSA v: k6.4.3-1-default status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

Still no sound. But the bar of output sound is moving like there is sound.

… and just like that… I have sound from speakers also!!!

I did nothing more than wait, not even reboot after the last command…

I 'll test if I have sound after a reboot.

After a reboot, the sound stays.

Thank you very much. If you give me a hint on what happened to study a bit and learn, it would be great!

That is a good result. The following PipeWire guide may be of value:

https://en.opensuse.org/openSUSE:Pipewire

Having pipewire-pulse active just means that PulseAudio support under PipeWire is possible for applications that require it, and this includes pavucontrol, which provides a convenient way to set the desired sources and sinks for given applications.

And after another reboot, again no sound. piperire-pulse status is active. I am trying to understand what are all them names and probably how they work in order to suspect the cause of the problem but is seems I am far away from this level. I am shamed to ask further help, so I don’t. I write this just to update the situation.

All good. No need to feel shame. Learning is part of the fun. Take some time to read our guides:

https://en.opensuse.org/SDB:Sound_concepts
https://en.opensuse.org/SDB:Audio_troubleshooting

:slight_smile:

Do you have 3.5 speakers connected or via HDMI?

You might need to select a different output device/port

No connected speakers.
It is a HP laptop with build-in speakers, a jack for speakers and an HDMI where there is connected a monitor with another jack for speakers.

As output device I have the build-in speakers.

Does the HDMI screen have speakers?
If you switch to HDMI, dou get an output?

No the monitor has no speakers. Only a jack for headphones or external speakers.

If I put headphones to the monitor jack and turn the output to HDMI, there is sound to the headphones. Like if I put them in the laptop jack.

But no sound output from build-in sound device, even if the sound volume bar is moving on Audio Volume window, like there is sound signal sent.

And of course I do not have the build-in speakers muted.