Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: adcdam on 12 October 2017, 05:19:05

Title: Alsa not detecting my Asus Xonar Dx after migration
Post by: adcdam on 12 October 2017, 05:19:05
with Arch linux using openrc my asus xonar was wornking after migration my asus xonar is not detected


aplay -L give me this:
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: SGOrava on 12 October 2017, 08:33:20
Hello i dont know what is "asus xonar" but from your post i think it is some sound card or piece of HW....
there might be missing driver / kernel module
Can you add output of command like lspci, lsusb ?
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: adcdam on 12 October 2017, 22:04:24
Yes the Asus Xonar is a sound card,
is the last one that appear with the command
lspci:
Code: [Select]
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge (rev 02)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 1)
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 2)
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 3)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
03:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
05:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
07:00.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge (rev aa)
08:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: adcdam on 12 October 2017, 23:20:49
after sudo modprobe snd-virtuoso
and reboot alsa detected the card and the sound is working!
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: adcdam on 13 October 2017, 18:18:13
After more testing sometimes when i boot the card is detected and sometimes is not!!!!
i dont know what to do now!!
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: SGOrava on 13 October 2017, 22:25:09
well ... is the proper module loaded when it is not detected ?
can you post logs from dmesg when fails and when it works ?
did you search arch wiki for informations ?
(Always check Arch wiki when you have some common problem)
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: adcdam on 14 October 2017, 00:02:57
i Dont know but sometimes is detected when booting and sometimes it select hda-nvida and alsa doesnt detect the asus xonar dx i dont know why, here is my .asoundrc file

pcm.virtuoso {
type hw
card 0
}

ctl.virtuoso {
type hw
card 0
}

here with this command i dont know why both hda and virtuoso has number 0
 lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi  49152   1  
snd_virtuoso        45056   0  
snd_oxygen_lib      36864   1   snd_virtuoso
snd_hda_intel       32768   0  
snd_mpu401_uart     16384   1   snd_oxygen_lib
snd_hda_codec       106496  2   snd_hda_intel,snd_hda_codec_hdmi
snd_rawmidi         28672   1   snd_mpu401_uart
snd_hda_core        65536   3   snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi
snd_hwdep           16384   1   snd_hda_codec
snd_seq_device      16384   1   snd_rawmidi
snd_pcm             90112   5   snd_oxygen_lib,snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer           28672   1   snd_pcm
snd                 69632   11  snd_oxygen_lib,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_hda_codec_hdmi,snd_seq_device,snd_virtuoso,snd_pcm


i dont want that alsa select hda nvidia is there any way that the kernel doesnt load that module?
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: SGOrava on 14 October 2017, 12:25:29
My crystal ball is broken > need more informations.

Please add dmesg or some logs from ALSA or kernel.

It might be that module is not loaded at startup and you need to tell the system / kernel to load it by creating / editing file in "/etc/modules-load.d/"
Reason why it worked after reboot might be that you need to add some options to the driver / module
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: adcdam on 15 October 2017, 16:46:49
Hi, i think i solved the problem, think because i have to test it more, i created  directory /etc/modules-load.d  as you told me ,i didnt have it, and i created two files: snd_oxygen.conf  snd_virtuoso.conf with this inside
Code: [Select]
# Load snd_virtuoso.ko at boot
snd_virtuoso
and the same for the oxygen file but with snd_oxygen

rebooted and the same shit nvida nvida and nvida
i read this
https://techgage.com/news/disabling_nvidias_hdmi_audio_under_linux/
in Funtoo i compiled the kernel because i was having similar problems and i disable hda from there
here in artix i created a file /etc/modprobe.d/blacklist.conf
with this inside
Code: [Select]
blacklist snd_hda_intel
rebooted two times and the two times the sound work but i really think alsa is a piece of s..t
Title: Re: Alsa not detecting my Asus Xonar Dx after migration
Post by: jspaces on 18 October 2017, 08:07:52
It may be that the modules are not loading in the correct order. Create a /etc/modprobe.d/alsa-base.conf and place these lines in it.
Code: [Select]
options snd_virtuoso index=0
options snd_hda_intel index=1,2 id=PCH,NVidia
This is way I can get the snd_virtuoso to load as the first and thus the default sound card. Before I could not get my Asus sound card to be recognized correctly and function normally.
I have the Intel motherboard module enabled, the Nvidia HDMI module along with the Asus virtuoso module all loaded and functional.