[opensuse] sound configuration question
Hello: I have a computer which has 2 sound devices, an Intel HDMI and an Intel PCH analog device. I use openSUSE 13.1. I would like to disable pulseaudio and use ALSA instead. But occasionally I need to use pulseaudio, these times I want to run pulseaudio in a konsole window as user. When my computer boots it configures HDMI sound device as default, and the PCH device as the second device. For pulseaudio this is not a problem, but ALSA gives error. I followed the instructions suggested at the site SDB:Audio troubleshooting (https://en.opensuse.org/SDB:Audio_troubleshooting) under "Intel HDA chipset" section (close to the bottom). Now my /etc/modprobe.d/50-sound.conf file looks like: options snd slots=snd-hda-intel,snd-hda-intel # 3hqH.8EjpIr9tE67:Intel Corporation alias snd-card-1 snd-hda-intel # u1Nb.T8kD_XvPfB2:Intel Corporation alias snd-card-0 snd-hda-intel options snd-hda-intel id=PCH index=0 options snd-hda-intel id=HDMI index=1 This works with ALSA when pulseaudio is disabled. But when I run pulseaudio manually, then applications can't find the device ("ALSA error: snd_pcm_open failed; Device or resource busy." error message.). So, how can I configure my sound cards order so that ALSA would find them when pulseaudio is disabled, and applications could use pulseaudio's ALSA-plugin (ALSA back) when pulseaudio is running? I am pretty sure that the problem is cause by the order of devices, because on another computer with only one sound device I can play sound with pulseaudio enabled and with pulseaudio disabled without changing any configuration. Another question: After I have modified /etc/modprobe.d/50-sound.conf file, how can I make the changes effective without restarting the computer? Thanks in advance, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op donderdag 15 september 2016 12:21:28 CEST schreef Istvan Gabor
Hello:
I have a computer which has 2 sound devices, an Intel HDMI and an Intel PCH analog device. I use openSUSE 13.1. I would like to disable pulseaudio and use ALSA instead. But occasionally I need to use pulseaudio, these times I want to run pulseaudio in a konsole window as user. When my computer boots it configures HDMI sound device as default, and the PCH device as the second device. For pulseaudio this is not a problem, but ALSA gives error. I followed the instructions suggested at the site SDB:Audio troubleshooting (https://en.opensuse.org/SDB:Audio_troubleshooting) under "Intel HDA chipset" section (close to the bottom). Now my /etc/modprobe.d/50-sound.conf file looks like:
options snd slots=snd-hda-intel,snd-hda-intel # 3hqH.8EjpIr9tE67:Intel Corporation alias snd-card-1 snd-hda-intel # u1Nb.T8kD_XvPfB2:Intel Corporation alias snd-card-0 snd-hda-intel options snd-hda-intel id=PCH index=0 options snd-hda-intel id=HDMI index=1
This works with ALSA when pulseaudio is disabled. But when I run pulseaudio manually, then applications can't find the device ("ALSA error: snd_pcm_open failed; Device or resource busy." error message.). So, how can I configure my sound cards order so that ALSA would find them when pulseaudio is disabled, and applications could use pulseaudio's ALSA-plugin (ALSA back) when pulseaudio is running?
I am pretty sure that the problem is cause by the order of devices, because on another computer with only one sound device I can play sound with pulseaudio enabled and with pulseaudio disabled without changing any configuration.
Another question: After I have modified /etc/modprobe.d/50-sound.conf file, how can I make the changes effective without restarting the computer?
Thanks in advance,
Istvan
Use Yast - Hardware - Sound Select the prefered sound card, then use the button at the bottom right to set it as the primary sound card. Done. -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Knurpht - Gertjan Lettink írta:
Op donderdag 15 september 2016 12:21:28 CEST schreef Istvan Gabor
: Hello:
I have a computer which has 2 sound devices, an Intel HDMI and an Intel PCH analog device. I use openSUSE 13.1. I would like to disable pulseaudio and use ALSA instead. But occasionally I need to use pulseaudio, these times I want to run pulseaudio in a konsole window as user. When my computer boots it configures HDMI sound device as default, and the PCH device as the second device. For pulseaudio this is not a problem, but ALSA gives error. I followed the instructions suggested at the site SDB:Audio troubleshooting (https://en.opensuse.org/SDB:Audio_troubleshooting) under "Intel HDA chipset" section (close to the bottom). Now my /etc/modprobe.d/50-sound.conf file looks like:
options snd slots=snd-hda-intel,snd-hda-intel # 3hqH.8EjpIr9tE67:Intel Corporation alias snd-card-1 snd-hda-intel # u1Nb.T8kD_XvPfB2:Intel Corporation alias snd-card-0 snd-hda-intel options snd-hda-intel id=PCH index=0 options snd-hda-intel id=HDMI index=1
This works with ALSA when pulseaudio is disabled. But when I run pulseaudio manually, then applications can't find the device ("ALSA error: snd_pcm_open failed; Device or resource busy." error message.). So, how can I configure my sound cards order so that ALSA would find them when pulseaudio is disabled, and applications could use pulseaudio's ALSA-plugin (ALSA back) when pulseaudio is running?
I am pretty sure that the problem is cause by the order of devices, because on another computer with only one sound device I can play sound with pulseaudio enabled and with pulseaudio disabled without changing any configuration.
Another question: After I have modified /etc/modprobe.d/50-sound.conf file, how can I make the changes effective without restarting the computer?
Thanks in advance,
Istvan
Use Yast - Hardware - Sound Select the prefered sound card, then use the button at the bottom right to set it as the primary sound card. Done.
Thanks. Unfortunately it is not so simple. Yast setup doesn't work in this case. This is described at openSUSE SDB:Audio troubleshooting (https://en.opensuse.org/SDB:Audio_troubleshooting) site in Intel HDA chipset When you use the built-in audio of your Intel Haswell processor the default audio order is first HDMI and then "PCH" (analog). Changing the order via the OpenSuse 13.2 Sound configuration of the Yast Control Center probably will not work as Yast will try to set the order using: options snd slots=snd-hda-intel,snd-hda-intel I followed the instructions given there to set the order of audio devices (see my OP) but if I run pulseaudio manually it doesn't work. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor composed on 2016-09-15 06:21 (UTC-0400):
I have a computer which has 2 sound devices, an Intel HDMI and an Intel PCH analog device. I use openSUSE 13.1. I would like to disable pulseaudio and use ALSA instead. But occasionally I need to use pulseaudio, these times I want to run pulseaudio in a konsole window as user. When my computer boots it configures HDMI sound device as default, and the PCH device as the second device. For pulseaudio this is not a problem, but ALSA gives error. I followed the instructions suggested at the site SDB:Audio troubleshooting (https://en.opensuse.org/SDB:Audio_troubleshooting) under "Intel HDA chipset" section (close to the bottom). Now my /etc/modprobe.d/50-sound.conf file looks like:
options snd slots=snd-hda-intel,snd-hda-intel # 3hqH.8EjpIr9tE67:Intel Corporation alias snd-card-1 snd-hda-intel # u1Nb.T8kD_XvPfB2:Intel Corporation alias snd-card-0 snd-hda-intel options snd-hda-intel id=PCH index=0 options snd-hda-intel id=HDMI index=1
This works with ALSA when pulseaudio is disabled. But when I run pulseaudio manually, then applications can't find the device ("ALSA error: snd_pcm_open failed; Device or resource busy." error message.). So, how can I configure my sound cards order so that ALSA would find them when pulseaudio is disabled, and applications could use pulseaudio's ALSA-plugin (ALSA back) when pulseaudio is running?
I am pretty sure that the problem is cause by the order of devices, because on another computer with only one sound device I can play sound with pulseaudio enabled and with pulseaudio disabled without changing any configuration.
Another question: After I have modified /etc/modprobe.d/50-sound.conf file, how can I make the changes effective without restarting the computer?
I had trouble with my Haswell. IIRC, my solution primarily depended on appending options snd-hda-intel index=1,0 to /etc/modprobe.d/99-local.conf, which was a result of help from Takashi Iwai here and in BOO. # lspci | grep udi 00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04) # lsmod | grep snd snd 94208 12 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel snd_hda_codec 131072 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller snd_hda_codec_generic 81920 1 snd_hda_codec_realtek snd_hda_codec_hdmi 57344 1 snd_hda_codec_realtek 98304 1 snd_hda_controller 36864 1 snd_hda_intel snd_hda_core 36864 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_controller snd_hda_intel 36864 2 snd_hwdep 16384 1 snd_hda_codec snd_pcm 139264 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller snd_timer 36864 1 snd_pcm soundcore 16384 1 snd Excerpts from rpm -qa (note absence of pulseaudio package): alsa-1.0.29-10.1.x86_64 alsa-firmware-1.0.29-3.2.noarch alsa-oss-1.0.28-5.2.x86_64 alsa-plugins-1.0.29-10.1.x86_64 alsa-utils-1.0.29-9.1.x86_64 arts-1.5.10-66.2.x86_64 kdebase3-kdm-3.5.10.1-394.2.x86_64 kdelibs3-arts-3.5.10-285.1.x86_64 kdemultimedia3-3.5.10.1-50.1.x86_64 kdemultimedia3-arts-3.5.10.1-50.1.x86_64 kdemultimedia3-mixer-3.5.10.1-50.1.x86_64 kdemultimedia3-sound-3.5.10.1-50.1.x86_64 kdemultimedia3-video-3.5.10.1-50.1.x86_64 libasound2-1.0.29-10.1.x86_64 libasound2-32bit-1.0.29-10.1.x86_64 libphonon4-4.8.1-2.3.x86_64 libpulse-mainloop-glib0-7.0-5.1.x86_64 libpulse0-7.0-5.1.x86_64 pavucontrol-3.0-5.3.x86_64 phonon-backend-vlc-0.9.0-3.3.x86_64 -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Thanks Felix! Felix Miata írta:
Istvan Gabor composed on 2016-09-15 06:21 (UTC-0400):
[LONG SNIP]
Another question: After I have modified /etc/modprobe.d/50-sound.conf file, how can I make the changes effective without restarting the computer?
I had trouble with my Haswell. IIRC, my solution primarily depended on appending
options snd-hda-intel index=1,0
to /etc/modprobe.d/99-local.conf, which was a result of help from Takashi Iwai here and in BOO.
I changed my /etc/modprobe.d/99-local.conf accordingly. Do you know how can I make the change into effect without restarting the computer? After this I could use sound players both without and with pulseaudio. But when I use sound players with pulseaudio, in pavucontrol window the players are not shown in playback or output devices tabs, and I cannot record sound from alsa output monitor. (Using command pacat --record -d alsa_output.pci-0000_00_06.0.analog-stereo.monitor | sox -t raw -r 44100 -s -L -b 16 -c 2 - "output.wav")
# lspci | grep udi 00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
This is the same for me except of one revision number. I also tried to disable HDMI audio in UEFI BIOS and now I have only one intel audio device (with reverted 99-local.conf to original): # lspci | grep udi 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05) Without pulseaudio it works OK, but with pulseaudio applications give error, for example audacious gives: ALSA error: snd_pcm_open failed: Device or resource busy. In terminal I get: ~> audacious neon: <0xa2c00c68> Buffer underrun when reading metadata. Expect audio degradation ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Any idea? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor
I also tried to disable HDMI audio in UEFI BIOS and now I have only one intel audio device (with reverted 99-local.conf to original):
# lspci | grep udi 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
Without pulseaudio it works OK, but with pulseaudio applications give error, for example audacious gives:
ALSA error: snd_pcm_open failed: Device or resource busy.
In terminal I get:
~> audacious neon: <0xa2c00c68> Buffer underrun when reading metadata. Expect audio degradation ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
I forgot to reconfigure sound in Yast, that is I still had two audio device configured. I removed the unnecessary one and now sound is OK bot without and with pulseaudio. Thanks again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Felix Miata
-
Istvan Gabor
-
Knurpht - Gertjan Lettink