I was playing some music in Kplayer today, when suddenly the sound cut off. The system had frozen. The only thing it was doing was downloading some Youtube videos using youtube-dl-gui. When I rebooted, I couldn’t play music in kplayer - no sound output at all.
I’ve spent the last five hours trying to get it back. I’m not an expert or very familiar even with Pulseaudio configuration and related matters. I installed pavucontrol.
My system:
[FONT=monospace]Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Kernel Version: 5.3.18-lp152.57-default
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 2600X Six-Core Processor
Memory: 15.6 GiB of RAM
My audio info:
/usr/sbin/hwinfo --sound
19: PCI d00.3: 0403 Audio device
[Created at pci.386]
Unique ID: FRmF.ziY0svRSom2
Parent ID: JZZT.2o9wK1kzeYF
SysFS ID: /devices/pci0000:00/0000:00:08.1/0000:0d:00.3
SysFS BusID: 0000:0d:00.3
Hardware Class: sound
Model: "AMD Family 17h (Models 00h-0fh) HD Audio Controller"
Vendor: pci 0x1022 "AMD"
Device: pci 0x1457 "Family 17h (Models 00h-0fh) HD Audio Controller"
SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
SubDevice: pci 0x8723
Driver: "snd_hda_intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xfe700000-0xfe707fff (rw,non-prefetchable)
IRQ: 101 (84154 events)
Module Alias: "pci:v00001022d00001457sv00001043sd00008723bc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=yes, avail=yes, need=no, active=unknown
Attached to: #31 (PCI bridge)
39: PCI b00.1: 0403 Audio device
[Created at pci.386]
Unique ID: 94OI.zLSNTIf3xUA
Parent ID: w+J7.0TU4LKoL980
SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:0b:00.1
SysFS BusID: 0000:0b:00.1
Hardware Class: sound
Model: "ATI Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]"
Vendor: pci 0x1002 "ATI Technologies Inc"
Device: pci 0xaae0 "Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]"
SubVendor: pci 0x1458 "Gigabyte Technology Co., Ltd"
SubDevice: pci 0xaae0
Driver: "snd_hda_intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xfe860000-0xfe863fff (rw,non-prefetchable)
IRQ: 100 (835 events)
Module Alias: "pci:v00001002d0000AAE0sv00001458sd0000AAE0bc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=no, avail=yes, need=no, active=unknown
Attached to: #7 (PCI bridge)
ALSA Version: Advanced Linux Sound Architecture Driver Version k5.3.18-lp152.57-default.
/proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfe860000 irq 99
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfe700000 irq 101
/proc/asound/card0/codec* | grep Codec
Codec: ATI R6xx HDMI
rhack@localhost:/proc/asound/card1> cat /proc/asound/card1/codec* | grep Codec
Codec: Realtek ALC1220
[/FONT]
I’ve since used Yast to set the Realtek as card0.
I’ve disabled and re-enabled Pulseaudio several times during the evening to no avail.
aplay -L shows the following:
null
Discard all samples (playback) or generate zero samples (capture)
default
Default ALSA Output (currently PipeWire Media Server)
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA ATI HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA ATI HDMI, HDMI 2
HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
HDA ATI HDMI, HDMI 3
HDMI Audio Output
hdmi:CARD=HDMI,DEV=4
HDA ATI HDMI, HDMI 4
HDMI Audio Output
sysdefault:CARD=Generic
HD-Audio Generic, ALC1220 Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
Front speakers
surround21:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
HD-Audio Generic, ALC1220 Digital
IEC958 (S/PDIF) Digital Audio Output
Note: I don’t have speakers, I use headphones exclusively.
Playing a test sound with aplay, I can hear the sound in the headphones as this output shows:
aplay --device front:CARD=Generic /usr/share/sounds/alsa/test.wav
Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
rhack@localhost:/Data2/Work> aplay --device sysdefault:CARD=Generic /usr/share/sounds/alsa/test.wav
Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Running pacmd list sinks and trimming the output to the sink involved:
1 sink(s) available.
* index: 1
name: <alsa_output.pci-0000_0d_00.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9039
volume: front-left: 47751 / 73% / -8.25 dB, front-right: 47751 / 73% / -8.25 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
fixed latency: 100.14 ms
card: 1 <alsa_card.pci-0000_0d_00.3>
module: 25
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC1220 Analog"
alsa.id = "ALC1220 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfe700000 irq 101"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:0d:00.3"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0d:00.3/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1457"
device.string = "front:1"
device.buffering.buffer_size = "17664"
device.buffering.fragment_size = "2944"
device.access_mode = "mmap"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "HD-Audio Generic Analog Stereo"
alsa.mixer_name = "Realtek ALC1220"
alsa.components = "HDA:10ec1168,10438723,00100101"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)
properties:
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-lineout>
Note that I have my headphones connected into the rear Line-Out, not the front headphone jack. The output above shows that Pulseaudio considered the headphones as “not available”, but the Line Out is “available.”
In Pavucontrol, the "HDA ATI HDMI which is the “Advanced Micro Devices, Inc. [AMD/ATI]” HDMI output on the motherboard has its profile as “off”. The Realtek ACL1220 sink has its profile “on” as “HD-Audio-Generic-Analog-Stereo.”
That profile shows Line-In as plugged in and Line-Out as unplugged. This tells me that PulseAudio only sees the front jack as “headphones” and the rear jack as “Line-Out”. I’ve always had my headphones plugged in to the rear Line-Out jack and they’ve always worked, both in 15.1 and 15.2, on this box for the last two years. I ran a test using the ALSA jack sense utility just to be sure and it does not see the headphones plugged in the front jack but does see pin 14 as present in the rear jack. So I assume the rear jack is not broken.
Note that /etc/pulse/default.pa was in its default installed state when the system went down - no changes were made by me, although I have done an edit or two in the last couple hours as I was debugging the situation.
I did at one point uninstall pavucontrol and alsa, then reinstalled them, to no effect.
I used Yast to set the HD-Audio-Generic-Analog-Stereo - shown as “Family 17h (Models 00h-0fh) HD Audio Controller” in the list - as card0. I didn’t edit any of its settings. Yast can not play the test sound or the Master Volume test. I did set Pulseaudio support for the card.
The problem appears to be that even though pavucontrol sees Line-Out as plugged in and headphones as not plugged in, and I can play the test sound using aplay and hear it in the headphones, none of the apps can send sound to Line-Out, so I can’t hear them in my headphones. If I start kplayer playing some music, and pop up the audio widget in the system tray, it continues to say that no applications are playing or recording. Pavucontrol does not show any apps except System Sounds.
If I run alsamixer at the command line, and select “HD-Audio-Generic” - which it shows as number 1, not 0, I don’t know if that’s the card number or just how alsamixer shows it - it shows what amixer shows here (trimmed):
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 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 'Front',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 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] -34.50dB] [on]
Front Right: Playback 0 [0%] -34.50dB] [on]
Simple mixer control 'Front 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 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] -65.25dB] [on]
Front Right: Playback 0 [0%] -65.25dB] [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 0 [0%] -65.25dB] [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 0 [0%] -65.25dB] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] -34.50dB] [on]
Front Right: Playback 0 [0%] -34.50dB] [on]
Simple mixer control 'Line 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 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
This is a really serious issue for me. If I can’t get my sound back, I’m going to have to do a complete reinstall from scratch - and I just did a fresh install of this system after I botched the upgrade from 15.1 to 15.2 ten days ago.
So any help - and in particular a step-by-step on how to approach the issue - will be greatly appreciated.