Hallo zusammen,
Ich habe ein Problem mit meinen Soundkarten. Ich habe einen TUF Renoir Notebook von Asus (4600H). Ein paar Informationen dazu unter https://forum.ubuntuusers.de/topic/erfahrungsbericht-asus-tuf-renoir-notebook.
Bisher hatte ich keine Soundprobleme gehabt. Das Problem hat angefangen, als ich aufgrund von Anleitungen mit primus-run getested habe. In diesem Zusammenhang muß etwas an der Soundkonfiguration geändert worden sein. bumblebee & co. sind inzwischen komplett deinstalliert (purge).
Der Sound funktioniert ohne Anschluß an den Monitor über HDMI einwandfrei. Nach Monitoranschluß verschwinden alle Anschlüße außer HDMI (also kein Kopfhörer oder interner Lautsprecher). Unter 18.04 habe ich keine solche Erfahrungen gesammelt, d.h. ich niemals die nvidia Karte genutzt. Daher könnten die Probleme dort evtl. ebenso auftreten.
Systemkonfiguration:
hwinfo --short # Auszug cpu: AMD Ryzen 5 4600H with Radeon Graphics, 1833 MHz monitor: VIEWSONIC VG2239 Series LM156LF-2F01 LCD Monitor graphics card: nVidia VGA compatible controller ATI Renoir sound: ATI Audio device AMD Family 17h (Models 10h-1fh) HD Audio Controller Sony DualShock 4 [CUH-ZCT2x] unknown: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
Vielen Dank an den Themenersteller und Betreuer des Tbreads https://forum.ubuntuusers.de/topic/kein-sound-mit-20-04-mit-16-04-keine-probleme. So konnte ich das Problem bereits ein wenig eingrenzen.
1. Der Gamepad hat eine Soundkarte. Diese wird immer automatisch ausgewählt anstattn die HDA Soundkarte (Realtek) 2. Es gibt im System zwei HDA Soundkarten (gleicher Name!). Notfalls könnte man HDMI blacklisten (snd-hda-intel etc.) 3. Nach Reboot habe ich beobachtet, daß die Realtek Karte manchmal card 1 und ein andermal card 2 ist (spielt aber keine Rolle)
Steam mit nvidia Grafikkarte: Starte ich steam, verschwindet meine realtek Soundkarte. Entweder wird das dummy device oder HDMI verwendet.
Weitere Systeminformationen:
Kernel: mainline 5.8.18 oder 5.9.8 (normalerweise nehme ich 5.8.18). Alternativ könnte ich 5.8.0 hwe verwenden. uname -a Linux lnyg-srk 5.8.18-050818-generic #202011011237 SMP Sun Nov 1 12:40:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Pulseaudio 13.99.1: Ich habe eine zweite Instanz die über gdm lief abgeklemmt (mit fuser geprüft /dev/snd/* und /dev/dsp) pulseaudio -vv I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Vorgang nicht zulässig I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Vorgang nicht zulässig D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us. D: [pulseaudio] core-util.c: RealtimeKit worked. I: [pulseaudio] core-util.c: Successfully gained nice level -11. I: [pulseaudio] main.c: This is PulseAudio 13.99.1 D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-IJhHIk/pulseaudio-13.99.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto D: [pulseaudio] main.c: Running on host: Linux x86_64 5.8.18-050818-generic #202011011237 SMP Sun Nov 1 12:40:15 UTC 2020 D: [pulseaudio] main.c: Found 12 CPUs. I: [pulseaudio] main.c: Page size is 4096 bytes D: [pulseaudio] main.c: Compiled with Valgrind support: no D: [pulseaudio] main.c: Running in valgrind mode: no D: [pulseaudio] main.c: Running in VM: no D: [pulseaudio] main.c: Running from build tree: no D: [pulseaudio] main.c: Optimized build: yes D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled. I: [pulseaudio] main.c: Machine ID is 8f7966ed72774f029102bf0d69d9eacf. I: [pulseaudio] main.c: Session ID is 2. I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse. I: [pulseaudio] main.c: Using state directory /media/suamor/home/home/suamor/.config/pulse. I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-13.99.1/modules. I: [pulseaudio] main.c: Running in system mode: no
dmesg Auszug:
sudo dmesg | egrep -i "alsa|snd|hdmi" [ 0.412555] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) [ 5.272637] snd_pci_acp3x 0000:05:00.5: enabling device (0000 -> 0002) [ 5.286943] snd_pci_acp3x 0000:05:00.5: Invalid ACP audio mode : 1 [ 5.424999] snd_hda_intel 0000:05:00.1: enabling device (0000 -> 0002) [ 5.438719] snd_hda_intel 0000:05:00.1: Handle vga_switcheroo audio client [ 5.439143] snd_hda_intel 0000:05:00.6: enabling device (0000 -> 0002) [ 5.502676] snd_hda_intel 0000:05:00.1: bound 0000:05:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu]) [ 5.503596] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:05:00.1/sound/card0/input27 [ 5.511500] snd_hda_codec_realtek hdaudioC2D0: autoconfig for ALC256: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker [ 5.511504] snd_hda_codec_realtek hdaudioC2D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 5.511505] snd_hda_codec_realtek hdaudioC2D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) [ 5.511507] snd_hda_codec_realtek hdaudioC2D0: mono: mono_out=0x0 [ 5.511508] snd_hda_codec_realtek hdaudioC2D0: inputs: [ 5.511509] snd_hda_codec_realtek hdaudioC2D0: Headset Mic=0x19 [ 5.511511] snd_hda_codec_realtek hdaudioC2D0: Internal Mic=0x12 [ 5.529842] usbcore: registered new interface driver snd-usb-audio [ 5.768667] acp_pdm_mach acp_pdm_mach.0: snd_soc_register_card(acp) failed: -517
Alsa Mixer Information (alle Soundkarten)
amixer -c 0 scontents Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] amixer -c 1 scontents Simple mixer control 'PCM',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 72 Mono: Playback 35 [49%] [-38.00dB] [on] Simple mixer control 'Headset',0 Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono Limits: Capture 0 - 63 Mono: Capture 0 [0%] [-23.25dB] [on] amixer -c 2 scontents 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 73 [84%] [-10.50dB] [on] Front Right: Playback 73 [84%] [-10.50dB] [on] 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 'Capture',0 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 63 Front Left: Capture 39 [62%] [12.00dB] [on] Front Right: Capture 39 [62%] [12.00dB] [on] Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' Item0: 'Disabled' 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: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] Simple mixer control 'Internal Mic',0 Capabilities: cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Capture channels: Mono Mono: Capture [on] 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]
HDMI verwende ich praktisch nie, Soundausgabe über das Gamepad mache ich normalerweise nicht.
Was kann ich tun, daß die normals Soundkarte (aktuell card2) immer als Standardsoundkarte verwendet wird?