You are not logged in.

#1 2017-07-23 00:53:35

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Change sound card order in /poc/asound/modules

My problem has been "kind of" solved by Trilby, here. (EDIT: Found it! I'm putting the link back up.)
He links to this Arh wiki page.
Where I found a solution in the section, "Set the default sound card". This looks like it should work, but my problem just gets that much worse. My output of

cat /proc/asound/modules

is this:

 0 snd_hda_intel
 1 snd_hda_intel

I can't seem to figure out how to distinquish them to edit "/etc/modprobe.d/alsa-base.conf". 0 is hdmi and I need 1 (onboard speakers/headphone jack) to be set as default.

Last edited by Myersj281 (2017-07-23 03:30:58)

Offline

#2 2017-07-23 02:44:07

Zeox101
Member
Registered: 2017-02-05
Posts: 93

Re: Change sound card order in /poc/asound/modules

I'm not sure if you noticed but the link you put in the first line leads to a thread about a pacman upgrading issue from 2005. I'm not sure how it relates to the rest of your post

https://bbs.archlinux.org/viewtopic.php?id=15361 (is what "here" leads me to)

Last edited by Zeox101 (2017-07-23 02:45:48)


The Hidden Secret of Arch Linux Forums:
No.  No one here really uses archlinux.  Arch Sucks.
We're just a bunch of neckbeards who tinker with arch linux in our mom's basement during our free time ... which we have a lot of because we are unemployed. ~ Trilby

Offline

#3 2017-07-23 03:19:01

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Re: Change sound card order in /poc/asound/modules

Thanks Zeox101. Your right, that isn't the url I meant to paste and I'm not sure how to get back to it but the link I pasted that he also linked to should be correct. EDIT: it is.

Last edited by Myersj281 (2017-07-23 03:20:05)

Offline

#4 2017-07-23 14:04:23

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,914

Re: Change sound card order in /poc/asound/modules

modinfo snd-hda-intel wrote:

parm:           index:Index value for Intel HD audio interface. (array of int)

Myersj281 wrote:

0 is hdmi and I need 1 (onboard speakers/headphone jack) to be set as default.

If you are sure of that (easily verified by running aplay --list-devices ),  it gives you this for alsa-base conf :

options snd-hda-intel index=1,0

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2017-07-23 14:45:03

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Re: Change sound card order in /poc/asound/modules

O.k. so if l'm understanding that corectly, that is probably what kde does when you use the option in it's settings to create 'simaltanious output on all devices'?

Offline

#6 2017-07-23 15:13:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,914

Re: Change sound card order in /poc/asound/modules

settings in /etc/modprobe.d/ are used exlusively on module initialization, and the index value merely determines in which order cards are seen by the kernel .

KDE probably issues a call to a library for doing that ( qt multimedia would by my first guess) .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2017-07-23 15:20:04

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Re: Change sound card order in /poc/asound/modules

huh. I just tried that. Seems to work (alsamixer goes straight to the sound card I want). I'm using i3wm now. I was using KDE before and still had no hdmi sound but the other card "worked" (had a problem with a static sound but pausing what had the audio for a few seconds "fixed" it.) so flash player never had audio but everything else worked fine. speaker-test runs like it should, but still no sound. The card I'm trying to (and I think just did) set as default has worked before (KDE and i3), just not persistantly (i3). I'm not sure how my config files were at the time but I do know that I had booted up without the hdmi cord plugged in(i3). I tried that this time but no luck. It seems to be hdmi (audio only) that's the problem.

Offline

#8 2017-07-23 15:44:14

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,914

Re: Change sound card order in /poc/asound/modules

HDMI combines video and audio, videocard drivers & kernel modules play  a big role in hdmi audio .

please post lspci -k .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2017-07-23 15:49:18

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Re: Change sound card order in /poc/asound/modules

[josh@Craptop ~]$ lspci -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566
    Subsystem: Dell Device 06bf
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 45)
    Subsystem: Dell Device 06bf
    Kernel driver in use: radeon
    Kernel modules: radeon, amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
    Subsystem: Dell Device 06bf
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537
    Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1537
    Kernel driver in use: ccp
    Kernel modules: ccp
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
    Subsystem: Dell Device 06bf
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 39)
    Subsystem: Dell Device 06bf
    Kernel driver in use: ahci
    Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
    Subsystem: Dell Device 06bf
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
    Subsystem: Dell Device 06bf
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
    Subsystem: Dell Device 06bf
    Kernel driver in use: piix4_smbus
    Kernel modules: i2c_piix4, sp5100_tco
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
    Subsystem: Dell Device 06bf
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
    Subsystem: Dell Device 06bf
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01)
    Subsystem: Dell Device 06bf
    Kernel driver in use: sdhci-pci
    Kernel modules: sdhci_pci
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583
    Kernel driver in use: k10temp
    Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1584
    Kernel driver in use: fam15h_power
    Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1585
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
    Subsystem: Dell Device 06bf
    Kernel driver in use: r8169
    Kernel modules: r8169
[josh@Craptop ~]$

Offline

#10 2017-07-23 15:51:50

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Re: Change sound card order in /poc/asound/modules

Lone_Wolf wrote:

HDMI combines video and audio, videocard drivers & kernel modules play  a big role in hdmi audio .

please post lspci -k .


I didn't install specific video drivers. I just went with the generic mesa. Could that be why this is an issue?

Offline

#11 2017-07-24 20:50:58

Myersj281
Member
Registered: 2017-07-03
Posts: 12

Re: Change sound card order in /poc/asound/modules

I installed video drivers the other day (xf86-video-amdgpu and xf86-video-ati. I'm not sure wich one I need, I was hoping my system would figure that out for me) I just booted up and I now have audio through the onboard speakers/headphones. I noticed that when I booted up, though, that the tv was off so that may be what I need to get the right card active? It's not ideal but if it's persistent then I guess that works. HDMI still has no audio but that's fine, I just need sound in the first place! I'll leave a post later and let you know if I still have sound or if it's just under certain circumstances.

Offline

Board footer

Powered by FluxBB