LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   sound problems in slackware64 14.1, xfce (https://www.linuxquestions.org/questions/slackware-14/sound-problems-in-slackware64-14-1-xfce-4175497387/)

WiseDraco 03-07-2014 09:49 AM

sound problems in slackware64 14.1, xfce
 
Hello!
not always have a sound.
try to set preferences in "settings - multimedia - phonon", but no luck.
i have a pci sb live! 5.1 sound card, and also a asus nvidia gt630 videocard with hdmi.
there is my:

cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xeb000000 irq 17
1 [Live ]: EMU10K1 - SB Live! 5.1 [SB0060]
SB Live! 5.1 [SB0060] (rev.7, serial:0x80611102) at 0x1000, irq 22

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Live [SB Live! 5.1 [SB0060]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
Subdevices: 32/32
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
Subdevice #8: subdevice #8
Subdevice #9: subdevice #9
Subdevice #10: subdevice #10
Subdevice #11: subdevice #11
Subdevice #12: subdevice #12
Subdevice #13: subdevice #13
Subdevice #14: subdevice #14
Subdevice #15: subdevice #15
Subdevice #16: subdevice #16
Subdevice #17: subdevice #17
Subdevice #18: subdevice #18
Subdevice #19: subdevice #19
Subdevice #20: subdevice #20
Subdevice #21: subdevice #21
Subdevice #22: subdevice #22
Subdevice #23: subdevice #23
Subdevice #24: subdevice #24
Subdevice #25: subdevice #25
Subdevice #26: subdevice #26
Subdevice #27: subdevice #27
Subdevice #28: subdevice #28
Subdevice #29: subdevice #29
Subdevice #30: subdevice #30
Subdevice #31: subdevice #31
card 1: Live [SB Live! 5.1 [SB0060]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Live [SB Live! 5.1 [SB0060]], device 3: emu10k1 [Multichannel Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0


how i can select card 1 ( SB Live) as default sound card?
and what way i can switch between default sound sards on the fly - if i, say, connect to tv via hdmi?

WiseDraco 03-07-2014 01:57 PM

http://docs.slackware.com/howtos:har...s_on_slackware

found that. tomorrow will see, it helps or not...

enorbet 03-07-2014 03:42 PM

Should work. Unless you're actually using the HDMI output, it should not be Card0 Default.

WiseDraco 03-08-2014 01:43 AM

5 minutes ago booting. looks like in nexuiz now i have a sound.
on another hand -when i now do "alsamixer" from root, i get "cannot open mixer: Invalid argument"

Drakeo 03-08-2014 06:51 AM

well if it is the soundblaster card tell Alsa what slot you want it in.
that would be to place a text file named sound.conf in your /etc/modprobe.d/ folder
somthing like this.
Quote:

alias sound-slot-0 snd-card-sb16

options snd slots= snd-card-sb16,snd-usb-audio
next time you boot alsa will put that in slot-0

WiseDraco 03-08-2014 07:46 AM

from where there is
"snd-card-sb16" - it is module name, or what?
in sb live i not see anything like a "sb16" - there is emu10k1 modules, and sb live architecture is completely different from SB16 ( who is, if i remember correctly, an card on ISA slot, old good DOS times. yet i do not have SB in that days - my first soundcard was Turtle Beach Montecarlo, and second one is a great Gravis Ultrasound PnP :) )

Drakeo 03-08-2014 08:14 AM

that is the name of the chip look here http://en.wikipedia.org/wiki/Sound_Blaster_Live!

Drakeo 03-08-2014 08:26 AM

there is a good chance it could be snd-card-emu10k1 so this would be the newer alsa like this.
Quote:

alias snd-card-0 snd-card-emu10k1

options snd slots= snd-card-emu10k1,snd-usb-audio

Quote:

alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-card-emu10k1
alias sound-slot-0 snd-card-emu10k1
options snd slots=snd-card-emu10k1,snd-usb-audio
try that

WiseDraco 03-08-2014 09:37 AM

lsmod
Module Size Used by
usb_storage 46020 0
nvidia_uvm 25518 6
ipv6 292446 20
lp 9851 0
fuse 73848 3
hid_generic 1145 0
usbhid 37080 0
hid 87523 2 hid_generic,usbhid
coretemp 5870 0
snd_emu10k1 139796 2
acpi_cpufreq 7230 0
mperf 1163 1 acpi_cpufreq
snd_util_mem 2267 1 snd_emu10k1
processor 27543 1 acpi_cpufreq
thermal_sys 22993 1 processor
nvidia 10619303 94 nvidia_uvm
snd_hda_codec_hdmi 29622 1
e1000e 194662 0
drm 229054 2 nvidia
ppdev 5862 0
parport_pc 19332 1
firewire_ohci 32099 0
freq_table 2628 2 acpi_cpufreq,thermal_sys
ptp 8148 1 e1000e
hwmon 1337 2 coretemp,thermal_sys
parport 30389 3 lp,ppdev,parport_pc
firewire_core 51746 1 firewire_ohci
pps_core 6777 1 ptp
psmouse 81058 0
evdev 10032 6
uhci_hcd 22827 0
i2c_dev 5843 0
ehci_pci 3688 0
gpio_ich 4504 0
snd_hda_intel 34861 2
snd_hda_codec 143196 2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6388 2 snd_hda_codec,snd_emu10k1
emu10k1_gp 1981 0
button 4696 0
intel_agp 10864 0
i2c_i801 13860 0
ehci_hcd 39275 1 ehci_pci
gameport 7323 2 emu10k1_gp
intel_gtt 12600 2 intel_agp
i2c_core 20936 4 drm,i2c_i801,i2c_dev,nvidia
agpgart 27267 3 drm,intel_agp,intel_gtt
serio_raw 4585 0
microcode 13140 0
mei_me 7728 0
mei 42963 1 mei_me
snd_rawmidi 18645 1 snd_emu10k1
snd_seq_device 5108 2 snd_rawmidi,snd_emu10k1
snd_ac97_codec 112023 1 snd_emu10k1
snd_pcm 76009 5 snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_emu10k1
snd_page_alloc 7098 3 snd_pcm,snd_hda_intel,snd_emu10k1
snd_timer 18614 2 snd_pcm,snd_emu10k1
ac97_bus 1198 1 snd_ac97_codec
snd 58630 18 snd_ac97_codec,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_hda_codec,snd_hda_inte l,snd_emu10k1,snd_seq_device
soundcore 5354 1 snd
lpc_ich 12841 0
loop 18479 0


lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82P965/G965 PCI Express Root Port (rev 02)
00:02.0 Display controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82P965/G965 HECI Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DC Gigabit Network Connection (rev 02)
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HB (ICH8) 4 port SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1284 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 0e0f (rev a1)
03:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6101/6102 single-port PATA133 interface (rev b1)
07:01.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
07:01.1 Input device controller: Creative Labs SB Live! Game Port (rev 07)
07:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22A IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx]

enorbet 03-08-2014 12:31 PM

Hello
again I say, unless you are actually using the HDMI sound on your video card you very likely need to blacklist any "snd-foo-Intel" and "snd-foo-hdmi" modules. Even if you plan to use HDMI sometimes, you should probably start by getting the emu10k1 modules isolated, loading with no competition, just to get all of your sound sussed out simply. THEN add HDMI if you want.

Drakeo 03-09-2014 06:14 AM

wait I do multi media if you write your alsa sound right it will load them the way you want to. Please do not tell people to blacklist a module that is made to run a device on a computer. Very simple he want a certain device to be default and that is his creative sound Blaster chip. Lets keep this simple.

HDMI has nothing to do with this if i had that card I have it configured and default right now. so before I give you a config for this tell me is this a onboard device or a snd card you added. from what I see this was a add on snd_emu10k1 and your mother board has the snd_hda_intel
These files first one is sound.conf and the other two below all go in the /etc/modprobe.d folder
that configuration I gave should put here is a corrected version of the config for you.
Quote:

.
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
options snd slots=snd-emu10k1,snd-hda-intel,snd-usb-audio
this will place your the Creative sound blaster chip device snd-emu10k1 first the mother board intel chip second any usb device third and hdmmi will come last.

create another file name it snd-emu10k.conf and mkae it like this.

Quote:

options snd-emu10kl model=auto
this make sure it is loaded at boot time.

for your in intel chip. create a module loader also. name it snd-hda-intel.conf
Quote:

options snd-hda-intel model=auto
this tell the system to make sure those devices are loaded and the support modules are to instead of waiting to be detected.
then places the snd-emul0k1

I would then delete my /var/lib/asound.state and the asound.state.lock
reboot the machine it will re-write them files.
run alsamixer to see what card is 0
Please do not make this complicated We are just telling alsa to use that card first. since I do not have that card I did not know the exact name to use with the first configuration.

Drakeo 03-09-2014 06:25 AM

from my experience of sound cards one you install them then go into bios enable them. the most of the time for me!. since the boot system looks at the pci bus first most of the time the installed card becomes slot=0 just because it the modules are loaded please make sure bios knows you are going to use it.

as you see the pcie nvidia video sound with sound was loaded first. Hence the pci bus second on that bus was your SB card.

WiseDraco 03-10-2014 12:40 PM

Quote:

Originally Posted by Drakeo (Post 5131439)
wait I do multi media if you write your alsa sound right it will load them the way you want to. Please do not tell people to blacklist a module that is made to run a device on a computer. Very simple he want a certain device to be default and that is his creative sound Blaster chip. Lets keep this simple.

HDMI has nothing to do with this if i had that card I have it configured and default right now. so before I give you a config for this tell me is this a onboard device or a snd card you added. from what I see this was a add on snd_emu10k1 and your mother board has the snd_hda_intel
These files first one is sound.conf and the other two below all go in the /etc/modprobe.d folder
that configuration I gave should put here is a corrected version of the config for you.

this will place your the Creative sound blaster chip device snd-emu10k1 first the mother board intel chip second any usb device third and hdmmi will come last.

create another file name it snd-emu10k.conf and mkae it like this.

this make sure it is loaded at boot time.

for your in intel chip. create a module loader also. name it snd-hda-intel.conf


this tell the system to make sure those devices are loaded and the support modules are to instead of waiting to be detected.
then places the snd-emul0k1

I would then delete my /var/lib/asound.state and the asound.state.lock
reboot the machine it will re-write them files.
run alsamixer to see what card is 0
Please do not make this complicated We are just telling alsa to use that card first. since I do not have that card I did not know the exact name to use with the first configuration.

there is no "added" soundcard - sb live 5.1 add-on card live in my computer more than year. there is also onboard intel sound, but it has disabled on bios.
thank you very much for instructions - after i do all that, i must be delete my asound.conf from /etc , delete both files from /var/lib/alsa/, and after reboot run alsamixer - need to unmute "general" and "wave", and set up level, after what do "alsactl store", and there all looks good - soundblaster is first (0) card, and all sounds looks work, alsamixer too work.

can you tell about if i want to switch sound output in the fly to nvidia hdmi - there is a variants?
even for specific programm - say vlc or mplayer?
i see variant like that i be done, but it need a restart and not very "on the fly".
anyway, thank you for to-do :)

Drakeo 03-11-2014 04:08 AM

from your read out sir
Quote:

Subdevice #0: subdevice #0
card 1: Live [SB Live! 5.1 [SB0060]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
Subdevices: 32/32
and from what I asked for
Quote:

snd_hda_intel 34861 2
snd_hda_codec 143196 2 snd_hda_codec_hdmi,snd_hda_intel
Quote:

snd_hwdep 6388 2 snd_hda_codec,snd_emu10k1
emu10k1_gp 1981 0
and as I can see it is disabled because it is not shown in the in the aply list.

you say you dont see the device but aply is trying to use it.
Quote:

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Live [SB Live! 5.1 [SB0060]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
Subdevices: 32/32
now it is putting hdmmi in slot=0
Quote:

Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
which my multi card system does to becauser I have the nvidia hdmi also on my vidieo card.

Quote:

there is no "added" soundcard - sb live 5.1 add-on card live in my computer more than year
but here it is as of your post Old 03-07-14, 09:49 AM

you say you have no sound. well sir one as you say
Quote:

there is also onboard intel sound, but it has disabled on bios.
there is one sound card.

and like I showed you with aplay -l
Quote:

card 1: Live [SB Live! 5.1 [SB0060]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
tried to use it.
one I never disable my on board sound becaause I need them all for what I do.
if you have no sound and you think you have it figured out mark this solved.

do you want sound or not or mark it solved Sir.?

you don't always have sound is because alsa keeps placing it in slot 1
so the config I gave you handle the sblive 5.1 card but you say you don't have it. ok.
then loo9k at your old /etc/modprobe.d /alsa-sound.config. or any sound.conf . and erase anything to do the SB card.and then reboot
because that is why alsa is loading it if it is not installed on your board.
if you dont have it installed then how did you get sound with SB card not in your computer.

After you plug in your hdmi what happens the tv controls should pic up the the sound. if not lets trouble shoot that.

WiseDraco 03-11-2014 04:41 AM

oh my god!
for first - i not "sir", i be товарищь. or tovarisch. or comrade - as you want.
as second - my nenglish not good at all, as so sometimes i do not understand you.
problem starts because first alsa card ( default) be nvidia hdmi. as so, seems all sounds going to nvidia hdmi, which even not connected ( my monitor is connected via d-sub, not hdmi). i have a sound blaster live! soundcard, but it is second card, not default - as so in the first message in topic i ask what i can change default soundcard for [alsa | kde |xfce ]

after i try your method, i got sb live! as mu first ( default) soundcard in alsa, and all go ok - sounds is translated via soundblaster, not via hdmi - it is what i want.
in real, better it be a simple method for can i free switch default soundcard, but ok - your method works also, as so i be happy now.
hda intel is disabled since i get soundblaster live! and its ok - i do not need two soundcarts at the same time.

all in all - problem be in nvidia gt630 hdmi gets as first, and default sound device in computer. now i manage how to get it as second, and get soundblaser as first ( default) sound device.
thank you.


All times are GMT -5. The time now is 05:50 AM.