View previous topic :: View next topic |
Author |
Message |
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Fri Mar 19, 2010 3:51 pm Post subject: [SOLVED] Audio works with some apps but not others ? |
|
|
Hi all,
I have a brand new PC just installed. I have audio working fine with amarok, but not with games. I tried both front and headphones, checked with alsamixer. I could not imagine that was possible.
Some games like bzflag tells me sound is not available in their config !
Of course, I am in the game group.
Some info :
Code: | # cat /proc/asound/cards
0 [U0x46d0x8d7 ]: USB-Audio - USB Device 0x46d:0x8d7
USB Device 0x46d:0x8d7 at usb-0000:00:1a.0-1.3, full speed
1 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf7ff8000 irq 22
# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.20.
# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.20 emulation code)
Kernel: Linux JANUS 2.6.30-tuxonice-r6 #5 SMP PREEMPT Fri Mar 19 13:49:33 CET 2010 x86_64
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
USB Device 0x46d:0x8d7 at usb-0000:00:1a.0-1.3, full speed
HDA Intel at 0xf7ff8000 irq 22
Audio devices:
0: USB Audio
1: HDA Generic (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
31: system timer
Mixers:
0: USB Mixer
1: Intel G45 DEVIBX
# dmesg | grep snd
[ 15.492077] snd-usb-audio 1-1.3:1.1: usb_probe_interface
[ 15.492081] snd-usb-audio 1-1.3:1.1: usb_probe_interface - got id
[ 15.497649] usbcore: registered new interface driver snd-usb-audio
J
# uname -a
Linux JANUS 2.6.30-tuxonice-r6 #5 SMP PREEMPT Fri Mar 19 13:49:33 CET 2010 x86_64 Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz GenuineIntel GNU/Linux |
Last edited by lalebarde on Wed Mar 31, 2010 8:31 pm; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Mar 20, 2010 6:37 am Post subject: |
|
|
Which of those 2 audio devices do you want to use - USB or HDA-Intel?
You do not say what, if anything, you've changed in the amarok config.
It's the games group - plural. |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Sat Mar 20, 2010 10:54 am Post subject: |
|
|
Hi PaulBredbury,
0 [U0x46d0x8d7 ]: USB-Audio - USB Device 0x46d:0x8d7
USB Device 0x46d:0x8d7 at usb-0000:00:1a.0-1.3, full speed
is a web cam. It is recognized as audio because of the microphone.
I did not change anything in the amarok configuration. Though it looks instructive :
Audio Output
HDA Intel (HDA Generic)
This will try the following devices and use the first that works :
1. ALSA:x-phonon:CARD=0,DEV=0
2. ALSA:plughw:CARD=0,DEV=0
3. OSS:/dev/dsp
4. OSS:/dev/audio
HDA Intel, Intel HDMI (HDMI Audio Output)
This will try the following devices and use the first that works :
1. ALSA:hdmi:CARD=Intel,DEV=0
Jack Audio Connection Kit
The xfce4-mixer give me two options :
HDA Intel (Alsa mixer)
USB Device 0x46d:0x8d7 (Alsa mixer)
The alsamixer :
0 HDA Intel
Card: HDA Intel Chip: Intel G45 DEVIBX
1 USB Device 0x46d:0x8d7
It looks like Amarok knows how to fine tune the configuration. But I have no clue what to do. |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Thu Mar 25, 2010 7:38 pm Post subject: |
|
|
sound works with sauerbraten for example, but no other game (tremulous, xmoto). |
|
Back to top |
|
|
scan2006 n00b
Joined: 20 Jan 2008 Posts: 48
|
Posted: Thu Mar 25, 2010 8:12 pm Post subject: |
|
|
I know that some games/apps have problem's with hardware mixing, so make sure you are not running something like amarok in the background. This was a real problem with running teamspeak and urban-terror at the same time for people that didn't have a sound card that supported hardware mixing (which was is most on-board sound cards) if you started teamspeak up first it would have sound and urban terror wouldn't. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
|
Back to top |
|
|
scan2006 n00b
Joined: 20 Jan 2008 Posts: 48
|
Posted: Fri Mar 26, 2010 3:15 am Post subject: |
|
|
oh I do use mumble but there is a lot of apps that seem to have the same problems when running games. But mumble is so much nicer though and is quicker in response. Btw I have a sound blaster audigy and it supports hardware mixing so I never have had a problem. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Mar 26, 2010 3:22 am Post subject: |
|
|
Run this while you have a sound problem, then we actually get some useful facts:
fuser -v /dev/snd/* /dev/dsp*
/dev/snd is good (ALSA), /dev/dsp is bad (OSS). |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Sat Mar 27, 2010 10:29 am Post subject: |
|
|
If I run Amarok, then Sauerbraten, I can hear Amarok, but not Sauerbraten. I get :
Code: | # fuser -v /dev/snd/* /dev/dsp*
USER PID ACCESS COMMAND
/dev/snd/controlC0: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/controlC1: alain 2368 F.... amarok
alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/pcmC1D0p: alain 2368 F...m amarok
/dev/snd/timer: alain 2368 f.... amarok |
If I stop Amarok but keep sauerbraten, I get : Code: | # fuser -v /dev/snd/* /dev/dsp*
USER PID ACCESS COMMAND
/dev/snd/controlC0: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/controlC1: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed |
If I quit Sauerbraten, I get the same.
If I relaunch it, I can hear Sauerbraten, and I get this : Code: | # fuser -v /dev/snd/* /dev/dsp*
USER PID ACCESS COMMAND
/dev/snd/controlC0: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/controlC1: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/dsp1: alain 2477 f.... linux_client |
So, if I have well understood, Sauerbraten uses OSS .
If I run xmoto in addition, I cannot hear it, only Sauerbraten, and I get : Code: | # fuser -v /dev/snd/* /dev/dsp*
USER PID ACCESS COMMAND
/dev/snd/controlC0: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/controlC1: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/dsp1: alain 2477 f.... linux_client |
If I stop both, and re-run only xmoto, I get : Code: | # fuser -v /dev/snd/* /dev/dsp*
USER PID ACCESS COMMAND
/dev/snd/controlC0: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/controlC1: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed |
This one seems to not connect to any device (xmoto did work well on my old PC).
Supertuxcarts works well : Code: | # fuser -v /dev/snd/* /dev/dsp*
USER PID ACCESS COMMAND
/dev/snd/controlC0: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/controlC1: alain 4378 F.... xfce4-mixer-plu
alain 4408 F.... xfce4-volumed
/dev/snd/pcmC1D0p: alain 2534 f...m supertuxkart |
Is there a solution for the apps that do not work ? It is not only a matter of which app I run first. |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Sun Mar 28, 2010 5:44 pm Post subject: |
|
|
I disconnected the webcam and rebooted. My sound card is now n°0 instead of n°1, but that changes nothing. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Mar 28, 2010 6:51 pm Post subject: |
|
|
lalebarde wrote: | /dev/dsp1: alain 2477 f.... linux_client |
Right there is the problem. Sauerbraten is using OSS, which is bad bad bad. I suggest you use Google for how to make Sauerbraten use ALSA instead of OSS. |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Sun Mar 28, 2010 10:26 pm Post subject: |
|
|
Sure, but at least, sauerbraten works. My main concern is whatever I use Sauerbraten or not, quite all apps don't have sound working. I have not tested everything, but only Amarok and Sauerbraten have the sound working.
The other apps I listed don't. I can add the mozilla flash plugin, VLC, MPlayer, Kino, rosegarden in the list of apps for which sound does not work. And audacity in the ones that work. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Mar 29, 2010 5:29 am Post subject: |
|
|
For flash, see thread.
For mplayer:
In ~/.mplayer/config
ao=alsa
In ~/.mplayer/gui.conf
ao_driver = "alsa"
If mplayer (or any other app) is defaulting to OSS on Linux, then mplayer is stupid, and that default should be changed to ALSA.
Get the gist? STOP USING OSS. Use ALSA. Is that clear? |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Mon Mar 29, 2010 10:01 pm Post subject: |
|
|
Thanks very much PaulBredbury .
After reading all your links,
For flash, uninstall and remerge works.
For the rest, Jackctrl makes everything work. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Mar 30, 2010 5:49 am Post subject: |
|
|
lalebarde wrote: | For flash, uninstall and remerge works. |
That makes no sense - it's a binary file.
Unless you removed libflashsupport - well, did you? |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Tue Mar 30, 2010 10:45 pm Post subject: |
|
|
No, I did not remove libflashsupport. |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Tue Mar 30, 2010 11:19 pm Post subject: |
|
|
After reboot, I lost sound again.
It seems that qjackctrl is broken. It freezes (buttons are inactive). There are no message when runned under a terminal. After unmerge and remerge, the interface is now blank (only the frame and gray inside). |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Tue Mar 30, 2010 11:40 pm Post subject: |
|
|
OK, it was just a conflict with my webcam. I have sound without running qjackctrl !
I still don't know the origin of the conflict. |
|
Back to top |
|
|
|