You are not logged in.

#1 2015-08-24 11:32:50

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

[SOLVED]Problem with sound "priority" or something

I can run Firestorm (Second Life client), I can run TeamSpeak, I can run Minecraft. I can hear sound from all. But if I have let's say Teamspeak open and I want to watch something through Flash (i.e. Twitch) the sound is missing. I need to close EVERYTHING, then first open firefox and go to twitch... (multiple flash tabs testes - works that way), then TeamSpeak etc.

Installing Arch I was prepared that it ain't Ubuntu.
I solved network problems, solved touchpad, solved Boinc not connecting to local server. But this I can't solve.

My computer: Samsung Rf-510

I red many articles on the web.

I tried to remove some modules, they weren't even loaded. So I tried the other way around and I tried to load them. Nope.

I've added myself to "audio" group.

my .asoundrc file:

[kuchikuu@Archie ~]$ uname -a
Linux Archie 4.1.5-1-ARCH #1 SMP PREEMPT Tue Aug 11 15:41:14 CEST 2015 x86_64 GNU/Linux
[kuchikuu@Archie ~]$ cat .asoundrc 
pcm.dsp {
    type plug
    slave.pcm "dmix"
}
pcm.!default {
    type hw
    card 0
}
 
ctl.!default {
    type hw
     card 0
}



[kuchikuu@Archie ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

When firefox is ran first:

[kuchikuu@Archie ~]$ fuser -fv /dev/snd/* /dev/dsp*
Specified filename /dev/dsp* does not exist.
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  kuchikuu    746 F.... pulseaudio
/dev/snd/controlC1:  kuchikuu    746 F.... pulseaudio
/dev/snd/pcmC0D0p:   kuchikuu   1452 F...m plugin-containe

When firefox is ran after let's say Minecraft and teamspeak:

[kuchikuu@Archie ~]$ fuser -fv /dev/snd/* /dev/dsp*
Specified filename /dev/dsp* does not exist.
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  kuchikuu    746 F.... pulseaudio
/dev/snd/controlC1:  kuchikuu    746 F.... pulseaudio
/dev/snd/pcmC0D0c:   kuchikuu    746 F...m pulseaudio
/dev/snd/pcmC0D0p:   kuchikuu    746 F...m pulseaudio
/dev/snd/pcmC1D3p:   kuchikuu    746 F...m pulseaudio

Please notice that now the command is pulseaudio everywhere, yet firefox with flash player doesn't have sound. Minecraft and teamspeak both have sound. If I (right now) play html5 youtube the sound is there. Yet when I run TERA (via wine) TETA has no sound.
At this stage when I start HearthStone(wine), the sound is missing. But when I run it as the very first (yet second after Battle.net) application. The sound is there, and then I can run Teamspeak etc with working sound.

Any solution?
--------
Edit:

[kuchikuu@Archie ~]$ ls /dev/snd
by-path    controlC1  hwC1D0  hwC1D2  pcmC0D0c  pcmC1D3p  pcmC1D8p  seq
controlC0  hwC0D0     hwC1D1  hwC1D3  pcmC0D0p  pcmC1D7p  pcmC1D9p  timer

---
Edit: On a second thought this should be in "Hardware" But still I'm on a Laptop.
----
Edit: with paprefs I selected "Add virtual output device for simultaneous output on all local sound cards". Without that Even other applications were "fighting" for sound. Minecraft eliminated everything else and the other way around....
----
Edit: My sound window while having "working" flash in the background: http://i.imgur.com/95UeoN0.png   http://i.imgur.com/OBwdQZx.png   No application even tho flash is playing
@@@
Same topic is in "Laptop issues" but I think it should be here

Last edited by KuchiKuu (2015-08-24 21:30:54)

Offline

#2 2015-08-24 11:36:48

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,952
Website

Re: [SOLVED]Problem with sound "priority" or something

Install pulseaudio-alsa, reboot and see if anything changes...

Offline

#3 2015-08-24 11:40:15

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

Re: [SOLVED]Problem with sound "priority" or something

[kuchikuu@Archie ~]$ sudo pacman -S pulseaudio-alsa
warning: pulseaudio-alsa-2-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) pulseaudio-alsa-2-3

Total Installed Size:  0.00 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 

I have it installed

Offline

#4 2015-08-24 11:46:58

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,952
Website

Re: [SOLVED]Problem with sound "priority" or something

Maybe you also need lib32 packages of pulseaudio and alsa?

Offline

#5 2015-08-24 11:51:14

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

Re: [SOLVED]Problem with sound "priority" or something

[kuchikuu@Archie ~]$ sudo pacman -S lib32-pulseaudio
warning: lib32-libpulse-6.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-libpulse-6.0-1

Total Installed Size:  0.96 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
[kuchikuu@Archie ~]$ sudo pacman -S lib32-alsa-plugins
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-alsa-plugins-1.0.29-2

Total Download Size:   0.05 MiB
Total Installed Size:  0.19 MiB

:: Proceed with installation? [Y/n] Y
[kuchikuu@Archie ~]$ sudo pacman -S lib32-jack lib32-libsamplerate lib32-speex
resolving dependencies...
looking for conflicting packages...

Packages (10) jack-0.124.1-3  lib32-db-5.3.28-2  lib32-ncurses-5.9-3
              lib32-readline-6.3.008-1  lib32-speexdsp-1.2rc3-1
              zita-alsa-pcmi-0.2.0-2  zita-resampler-1.3.0-3
              lib32-jack-0.124.1-1  lib32-libsamplerate-0.1.8-2
              lib32-speex-1.2rc2-1

Total Download Size:   2.68 MiB
Total Installed Size:  9.92 MiB

:: Proceed with installation? [Y/n] Y
[kuchikuu@Archie ~]$ sudo pacman -S lib32-alsa-lib
warning: lib32-alsa-lib-1.0.29-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-alsa-lib-1.0.29-1

Total Installed Size:  1.08 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 

Should I edit something or can I restart?

Last edited by KuchiKuu (2015-08-24 11:51:47)

Offline

#6 2015-08-24 11:58:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,952
Website

Re: [SOLVED]Problem with sound "priority" or something

Sorry, you have something weird going on there. For me installing pulseaudio-alsa and lib32's have always fixed such problems...

Offline

#7 2015-08-24 12:06:25

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

Re: [SOLVED]Problem with sound "priority" or something

Ok I will check it in 1 hour. Dentist :<<<<< ( will edit post)

Offline

#8 2015-08-24 12:19:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED]Problem with sound "priority" or something

throw away that .asoundrc it breaks everything set up by pulseaudio-alsa and I don't think you need to add yourself to the audio group but I don't think that is going to be the underlying issue

Last edited by V1del (2015-08-24 12:20:25)

Offline

#9 2015-08-24 13:12:56

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

Re: [SOLVED]Problem with sound "priority" or something

simply restarting doesn't help.
First TeamSpeak
then Minecraft
then firefox -> twitch = no sound

I wil try V1del's tip
---
edit
I have pulseaudio-alsa but how to start it XD?

Last edited by KuchiKuu (2015-08-24 13:14:29)

Offline

#10 2015-08-24 13:23:17

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

Re: [SOLVED]Problem with sound "priority" or something

after

mv .asoundrc asoundrc-copy

I don't have a flash sound at all :<
-----
edit
I put the asoundrc back and the flash player works but still not when started i.e. second or thinrd

Last edited by KuchiKuu (2015-08-24 13:26:13)

Offline

#11 2015-08-24 13:28:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED]Problem with sound "priority" or something

what's in your /etc/asound.conf? if you have pulseaudio-alsa installed there should be obvious redirects to pulse, remove the local .asoundrc again and reboot the system and try then (reinstall pulseaudio-alsa to be sure) also regarding issues in wine, make sure all sound outputs are set to systemdefault (NOT a specific card)

Last edited by V1del (2015-08-24 13:55:16)

Offline

#12 2015-08-24 13:44:20

KuchiKuu
Member
Registered: 2015-05-27
Posts: 16

Re: [SOLVED]Problem with sound "priority" or something

[SOLVED] http://www.freedesktop.org/wiki/Softwar … fectSetup/

PLEASE MARK THIS TOPIC TO [SOLVED]
Tips for other people:
1)Just download everything I downloaded (libs)
2)I don't know if it's needed but use paprefs and check "Add virtual output device for simultaneous output on all local sound cards" just to be sure (I will check later without it)
3)Follow the "PerfectSetup"
My .asoundrc:

pcm.dsp {
    type plug
    slave.pcm "dmix"
}
pcm.!default {
    type pulse
    #type hw
    #card 0
}
 
ctl.!default {
    #type hw
     #card 0
    type pulse
}
pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}
#defaults.pcm.device 3

also the file where you need to write "hd:0" is in /etc/pulse
inside the default.pa do CTRL+F "alsa-sink" and there it will be

I'm 0,00001% annoyed that I need to configure EVERYTHING and tweak the system.... but the reward in happiness of finally getting stuff to work is INSANE

#YAY #ARCH #LINUX

Last edited by KuchiKuu (2015-08-24 13:45:32)

Offline

#13 2015-08-24 13:52:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED]Problem with sound "priority" or something

This contains literally the same thing pulseaudio-alsa does... you don't have to write hd:0 anywhere, I suppose a wrong default was set, and you may want to switch that in pavucontrol instead of foregoing the automatic detection (have you fiddled with the module-udev-detect line for some reason?) by setting something in default.pa. However if this is solved for you, you can prepend [SOLVED] to the title of your initial post by editing it

Last edited by V1del (2015-08-24 13:55:57)

Offline

Board footer

Powered by FluxBB