Xonar DGX, no sound

Hi,
I have trouble getting sound even though the soundcard is recognized.
System: Leap 42.2, KDE, fully updated, no external repositories added
Soundcard: Asus Xonar DGX
Setup: Headphones are plugged in the back, no frontpanel installed

Sound is working fine on Windows 7 and Archlinux.
Also the built-in soundcard works fine.

What I tried:

  1. Yast: The quick-setup tried to use snd-virtuoso instead of snd-oxygen -> I deleted /etc/modprobe/50-sound.conf
  2. Forced loading of snd-oxygen by adding an entry in /etc/modules-load/ -> module is loaded and card is recognized by pavucontrol and pactl
  3. Activated and configured card through pavucontrol -> volumebar moves if music is played through Amarok or Firefox

I suspect the card sends the output to the frontpanel. Is there a way to verify/change that?


cat /etc/modules-load.d/50-sound.conf
snd-oxygen


lsmod | grep snd
snd_hda_codec_realtek    94208  1 
snd_hda_codec_generic    81920  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     57344  2 
snd_hda_intel          40960  4 
snd_hda_codec         147456  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_oxygen             28672  2 
snd_oxygen_lib         49152  1 snd_oxygen
snd_mpu401_uart        16384  1 snd_oxygen_lib
snd_rawmidi            36864  1 snd_mpu401_uart
snd_seq_device         16384  1 snd_rawmidi
snd_pcm               135168  5 snd_hda_codec_hdmi,snd_oxygen_lib,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer              36864  1 snd_pcm
snd                    90112  25 snd_oxygen,snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_oxygen_lib,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mpu401_uart,snd_seq_device
soundcore              16384  1 snd


cat /proc/asound/cards
 0 [DGX            ]: CMI8786 - Xonar DGX
                      C-Media Oxygen HD Audio at 0xd000, irq 16
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7e00000 irq 31
 2 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xf7d40000 irq 32


pactl list short
0       module-device-restore
1       module-stream-restore
2       module-card-restore
3       module-augment-properties
4       module-switch-on-port-available
5       module-udev-detect
6       module-alsa-card        device_id="2" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
7       module-alsa-card        device_id="1" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
8       module-alsa-card        device_id="0" name="pci-0000_03_04.0" card_name="alsa_card.pci-0000_03_04.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
9       module-jackdbus-detect  channels=2
10      module-bluetooth-policy
11      module-bluetooth-discover
12      module-bluez5-discover
13      module-esound-protocol-unix
14      module-native-protocol-unix
15      module-default-device-restore
16      module-rescue-streams
17      module-always-sink
18      module-intended-roles
19      module-suspend-on-idle
20      module-console-kit
21      module-systemd-login
22      module-position-event-sounds
23      module-role-cork
24      module-filter-heuristics
25      module-filter-apply
26      module-x11-publish      display=:0
27      module-x11-cork-request display=:0
28      module-device-manager   do_routing=1
29      module-x11-xsmp display=:0 session_manager=local/linux-7uqu:@/tmp/.ICE-unix/2096,unix/linux-7uqu:/tmp/.ICE-unix/2096
0       alsa_output.pci-0000_00_1b.0.analog-stereo      module-alsa-card.c      s16le 2ch 48000Hz       SUSPENDED
1       alsa_output.pci-0000_03_04.0.analog-stereo      module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
0       alsa_output.pci-0000_00_1b.0.analog-stereo.monitor      module-alsa-card.c      s16le 2ch 48000Hz       SUSPENDED
1       alsa_input.pci-0000_00_1b.0.analog-stereo       module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
2       alsa_output.pci-0000_03_04.0.analog-stereo.monitor      module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
3       alsa_input.pci-0000_03_04.0.analog-stereo       module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
0       module-systemd-login.c  (null)
5       module-x11-xsmp.c       (null)                                                                                                                                                                                                                                         
8       protocol-native.c       firefox                                                                                                                                                                                                                                        
9       protocol-native.c       plasmashell                                                                                                                                                                                                                                    
11      protocol-native.c       amarok                                                                                                                                                                                                                                         
16      protocol-native.c       knotify4                                                                                                                                                                                                                                       
21      protocol-native.c       kwalletd5                                                                                                                                                                                                                                      
26      protocol-native.c       kwalletmanager5                                                                                                                                                                                                                                
34      protocol-native.c       firefox                                                                                                                                                                                                                                        
35      protocol-native.c       pactl                                                                                                                                                                                                                                          
0       alsa_card.pci-0000_01_00.1      module-alsa-card.c                                                                                                                                                                                                                     
1       alsa_card.pci-0000_00_1b.0      module-alsa-card.c                                                                                                                                                                                                                     
2       alsa_card.pci-0000_03_04.0      module-alsa-card.c 


aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DGX [Xonar DGX], device 0: Multichannel [Multichannel]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: DGX [Xonar DGX], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Greetings,

This may not be helpful but what Desktop Environment are you using?

KDE has a great management for sound output. That combined with the KDE Audio control you can drag and drop audio streams to specific sound devices.

Admittadly, that may not be your issue.

I do have an issue with one machine that plugging in headphones doesn’t automatically switch the sound from speakers to the headphones. Not sure if it is a hardware or a driver issue but I can manually select Headphones output using Pavucontrol.

Hope that helps, at least a bit.

-Nathan

This may not be helpful but what Desktop Environment are you using?

KDE

KDE has a great management for sound output. That combined with the KDE Audio control you can drag and drop audio streams to specific sound devices.

All streams are configured to use the DGX card, in Pavucontrol and the KDE tool.
It is set as default as well and configured as “Analogue Stereo Duplex” under the “Configuration” tab and the port “Headphones” is the only one to choose the “Output Devices” section.

I do have an issue with one machine that plugging in headphones doesn’t automatically switch the sound from speakers to the headphones. Not sure if it is a hardware or a driver issue but I can manually select Headphones output using Pavucontrol.

I do suspect it is something like that. On the other hand it does work in Archlinux and Windows 7 without changing anything on the hardwareside.
Just to clarify: The headphones are plugged in the stereo output on the back of the card (the green one which is for left and right in 5.1-mode, i think). Also i checked if the sound is redirected to any other analogue port, which it isn’t. I have no way to test the digital output.

I searched for differences in the configuration on Archlinux and Leap but the only one I could find
is the index of the card and the field “Subdevices” in the output of aplay -l.


Leap:
aplay -l
card 0: DGX [Xonar DGX], device 0: Multichannel [Multichannel]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: DGX [Xonar DGX], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
----snip----
Archlinux:
aplay -l
----snip----
card 2: DGX [Xonar DGX], device 0: Multichannel [Multichannel]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: DGX [Xonar DGX], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I don’t know if that could cause the problem.

From what I can tell with my system, the card number doesn’t matter. I really think it sounds like a KDE configuration issue.

Have you gone into the KDE Systemsettings > Multimedia > Audio and Video settings and looked at what the priority of the output devices are there? Perhaps adjusting the order will change what output device is used.

I have multiple devices and this is how I set their priority to ensure that sound goes where I want it to go. I also have it set to not automatically change this: Systemsettings > Multimedia > Audio Volume > Configuration Tab

Hope this helps,
-Nathan

Solved it.
Alsamixer is able to switch the output from the frontpanel to the back side (press F6 to select the soundcard).
Thank you for your support.