You are not logged in.
Pages: 1
Topic closed
Hi everyone.
I have tried to fix this specific problem for several days now and I can't seem to get it to work. The wiki and google have not been able to help me.
I am using Pulseaudio and Alsa.
I have 3 different sound cards:
[johan@archlinux ~]$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfbff8000 irq 50
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf9ffc000 irq 17
2 [Headset ]: USB-Audio - SB WoW Wireless Headset
SB WoW Wireless Headset SB WoW Wireless Headset at usb-0000:00:1a.0-2, full spe
I don't use the Nvidia card at all and would like to remove it from the equation. In most cases this is done by blacklisting the corresponding module in rc.conf, but both card 0 and 1 uses the same moduel.
[johan@archlinux ~]$ cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intel
2 snd_usb_audio
So, if I disable the snd_hda_intel module, I assume none of them will work.
Why do I want to remove the Nvidia card?
Well, I like to change the output sink with a script so I can easily keybind it. The script I used to use looks like this:
#!/usr/bin/env bash
sinks=($(pacmd list-sinks | grep index | \
awk '{ if ($1 == "*") print "1",$3; else print "0",$2 }'))
inputs=($(pacmd list-sink-inputs | grep index | awk '{print $2}'))
[[ ${sinks[0]} = 0 ]] && swap=${sinks[1]} || swap=${sinks[3]}
pacmd set-default-sink $swap &> /dev/null
for i in ${inputs[*]}; do pacmd move-sink-input $i $swap &> /dev/null; done
I copied this script from somewhere a time ago and it has been working fine when using debian. With Arch it does not.
Does anyone know howto remove my hdmi sound card or change the script so that it switches between just my onboard card and my usb headset? If there is a way to send all sound to all 3 cards, that would be another solution.
Last edited by n4h0j (2011-03-18 22:22:45)
My mom says I am special.
Offline
Is it possible to force the nvidia sound card to use another module, and then disable that module? Grasping for straws...
My mom says I am special.
Offline
Also, more info:
lsmod|grep '^snd' | column -t
snd_usb_audio 87447 3
snd_usbmidi_lib 18516 1 snd_usb_audio
snd_rawmidi 19525 1 snd_usbmidi_lib
snd_hda_codec_hdmi 22857 4
snd_hda_codec_realtek 295685 1
snd_seq_dummy 1479 0
snd_seq_oss 29240 0
snd_seq_midi_event 5516 1 snd_seq_oss
snd_seq 50562 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 5281 4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_hda_intel 21837 2
snd_hda_codec 74609 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6222 2 snd_usb_audio,snd_hda_codec
snd_pcm 72321 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 19537 2 snd_seq,snd_pcm
snd 58906 22 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
snd_page_alloc 7361 2 snd_hda_intel,snd_pcm
ls -l /dev/snd
total 0
drwxr-xr-x 2 root root 60 Mar 18 22:27 by-id
drwxr-xr-x 2 root root 100 Mar 18 22:27 by-path
crw-rw----+ 1 root audio 116, 10 Mar 18 22:27 controlC0
crw-rw----+ 1 root audio 116, 19 Mar 18 22:27 controlC1
crw-rw----+ 1 root audio 116, 22 Mar 18 22:27 controlC2
crw-rw----+ 1 root audio 116, 9 Mar 18 22:27 hwC0D2
crw-rw----+ 1 root audio 116, 18 Mar 18 22:27 hwC1D0
crw-rw----+ 1 root audio 116, 17 Mar 18 22:27 hwC1D1
crw-rw----+ 1 root audio 116, 16 Mar 18 22:27 hwC1D2
crw-rw----+ 1 root audio 116, 15 Mar 18 22:27 hwC1D3
crw-rw----+ 1 root audio 116, 8 Mar 18 22:27 pcmC0D0c
crw-rw----+ 1 root audio 116, 7 Mar 18 22:27 pcmC0D0p
crw-rw----+ 1 root audio 116, 6 Mar 18 22:27 pcmC0D1c
crw-rw----+ 1 root audio 116, 5 Mar 18 22:27 pcmC0D1p
crw-rw----+ 1 root audio 116, 4 Mar 18 22:27 pcmC0D2c
crw-rw----+ 1 root audio 116, 14 Mar 18 22:27 pcmC1D3p
crw-rw----+ 1 root audio 116, 13 Mar 18 22:27 pcmC1D7p
crw-rw----+ 1 root audio 116, 12 Mar 18 22:27 pcmC1D8p
crw-rw----+ 1 root audio 116, 11 Mar 18 22:27 pcmC1D9p
crw-rw----+ 1 root audio 116, 21 Mar 18 22:27 pcmC2D0c
crw-rw----+ 1 root audio 116, 20 Mar 18 22:30 pcmC2D0p
crw-rw----+ 1 root audio 116, 3 Mar 18 22:27 seq
crw-rw----+ 1 root audio 116, 2 Mar 18 22:27 timer
My mom says I am special.
Offline
Ok.
So the solution was kind of simple.
I simply installed pavucontrol and turned of the hdmi card in the interface. I then added the following to my /etc/pulse/default.pa:
load-module module-combine channels=6 channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe
Then I was able to use the combined channel for the two cards that was left after disabling hdmi. I switched from Xine to Gstreamer in Phonon backend and I don't get any lag with this solution. This way I don't even have to use a macro to switch between output sinks.
My mom says I am special.
Offline
I also tried to do this.
First I tested a modalias in modprobe.conf, that didn't work.
I tried to create a udev rule to disable the device, but that didn't work because "ignore_device" and "last_rule" don't work anymore.
This is how I fixed it now:
Find the pci id with:
lspci | grep -i audio
Find the correct folder
find /sys/devices -name *01:00.1
/sys/devices/pci0000\:00/0000\:00\:03.0/0000\:01\:00.1/
And add this to the /etc/rc.local
echo 1 > /sys/devices/pci0000\:00/0000\:00\:03.0/0000\:01\:00.1/remove
Last edited by jordz (2011-03-24 22:55:18)
Offline
Does this work for systemd? I tried this with a new arch installation and didn't work...
Any help? TIA
Ok.
So the solution was kind of simple.
I simply installed pavucontrol and turned of the hdmi card in the interface. I then added the following to my /etc/pulse/default.pa:
load-module module-combine channels=6 channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe
Then I was able to use the combined channel for the two cards that was left after disabling hdmi. I switched from Xine to Gstreamer in Phonon backend and I don't get any lag with this solution. This way I don't even have to use a macro to switch between output sinks.
Sergio S.
Offline
spsf64, do not necrobump threads especially solved ones. Make sure you read the forum rules
Closing..
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1
Topic closed