Instale o Steam
iniciar sessão
|
idioma
简体中文 (Chinês simplificado)
繁體中文 (Chinês tradicional)
日本語 (Japonês)
한국어 (Coreano)
ไทย (Tailandês)
Български (Búlgaro)
Čeština (Tcheco)
Dansk (Dinamarquês)
Deutsch (Alemão)
English (Inglês)
Español-España (Espanhol — Espanha)
Español-Latinoamérica (Espanhol — América Latina)
Ελληνικά (Grego)
Français (Francês)
Italiano (Italiano)
Bahasa Indonesia (Indonésio)
Magyar (Húngaro)
Nederlands (Holandês)
Norsk (Norueguês)
Polski (Polonês)
Português (Portugal)
Română (Romeno)
Русский (Russo)
Suomi (Finlandês)
Svenska (Sueco)
Türkçe (Turco)
Tiếng Việt (Vietnamita)
Українська (Ucraniano)
Relatar um problema com a tradução
What is your soundcard? Can you run two players and hear both of them at the same time? Do you have 32-bit pulse and alsa-plugins installed? Do you have ~/.asoundrc file? If you have it, post its content here, then backup and delete it, and try to run steam and player then. If you don't have such file, create one with below content, and again try steam and player:
From here: http://www.alsa-project.org/main/index.php/Asoundrc#dmix
Don't know about Manjaro, but Arch has a very decent wiki about pulse and stuff https://wiki.archlinux.org/index.php/PulseAudio
My sound card is detected as GF108 High Definition Audio Controller Digital Stereo (whether that's true or not, I haven't the fainest idea). However, the soundserver is using "Built-in Audio Analog Stereo" as the playback device. The GF108 one doesn't seem to be working. I didn't have an asoundrc file so I copied the you posted. I was able to start clementine and listen to music while steam was running but Steam won't play sounds anymore for as long as Clementine is running. I have to terminate Clementine to make Steam produce sound.
The reason I ask is this seems very similar to when "pasuspender" is envoked and caused me many headaches in setting up my system with some low-lantancy audio applications.
But the problem is still here, as I see.
Starting Steam in terminal with SDL_AUDIODRIVER=alsa or SDL_AUDIODRIVER=pulse doesn't help? Can you put output of "aplay -l" here? Also Steam itself doesn't play sounds, as I know. It's games or videos that play sounds. You mean, games don't play sounds when a music player is working in backgroud, right? Can you start a player, and then Steam, and put its output on, say, pastebin.com, maybe it'll show something interesting.
Alternatively, the recipe from ArchWiki might help https://wiki.archlinux.org/index.php/PulseAudio#ALSA.2Fdmix_without_grabbing_hardware_device
I still believe that 64-bit Pulse (of players) and 32-bit ALSA (of Steam) simply can't share a single soundcard...
Here's the output with alsa http://pastebin.com/chj5hrVp
And aplay -!
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/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
In .asoundrc change 'pcm "hw:0"' to 'pcm "hw:0,0"' (though, it wouldn't help much, probably).
If you have a player with a setting to select output between alsa and pulse, you can simply kill pulse, put the player's setting to alsa, and then run the player and steam together. If my guess is correct, without pulse they'll both work.
Yet another alternalively looks like installing 32-bit pulse: lib32-libpulse and lib32-alsa-plugins.
Alternatively try this from ArchWiki:
And then this : https://wiki.archlinux.org/index.php/PulseAudio#ALSA.2Fdmix_without_grabbing_hardware_device (carefully, so that it would be possible to restore).
PS. I rearranged alternatives above in somehow less destructive way.
PPS. Also in .asoundrc insert below this line "ipc_key 1024" the following:
SIMPLY FIX AT POST #29
I also had problems with alsa/pulseaudio and here is what i did:
installed pulseaudio pavucontrol (i use pavucontrol to control sounds)
installed lib32-alsa-plugins lib32-libpulse pulseaudio-alsa (those are needed for control alsa sounds if you use pulseaudio/pavucontrol)
deleted ~/.asoundrc (you should backup it if this does not help)
edited /etc/pulse/default.pa to include
(more information: https://wiki.archlinux.org/index.php/PulseAudio#ALSA.2Fdmix_without_grabbing_hardware_device )
reboot
Even if wikipedia says that if you use ALSA/dmix without grabbing hardware device, pulseaudio-alsa package need to be removed but that was only way i made it work on my case.
After that I could use applications what uses pulseaudio + play steamgames with sounds and also control alsa sounds from pavucontrol (Mainly I use speakers/headphones but every now and then I need to put sounds from one application to TV and sounds from other application to headphones etc.)
Edit: You dont need ~/.asoundrc because PulseAudio plugin for ALSA brings systemwide /etc/asound.conf config file.
Also as Kranky said, be sure that you dont have snd_pcm_oss module loaded.
I've edited the configs as instructed and I have made sure that the 32bit librares are installed but I still can't make Steam produce sounds while a music player is on. It's either Steam or the entire system. Can't seem to have both
I had same problem as you have, but i could test only with game called World of Goo.
First i made that modification to /etc/pulse/default.pa and checked that i had all packages what needed (pulseaudio pavucontrol lib32-alsa-plugins lib32-libpulse pulseaudio-alsa).
Reboot
Same problem, gamesounds didn't work if started VLC before steam.
Then I reinstalled packages in this order:
sudo pacman -S pulseaudio pavucontrol
sudo pacman -S lib32-alsa-plugins lib32-libpulse pulseaudio-alsa
didnt need to make changes to default.pa because it left it like i changed before.
Reboot.
Then gamesounds did work at the same time when i played music from VLC.
Only difference between my desktop arch and that laptop is that pavucontrol dont show ALSA sounds on that manjaro laptop like my arch shows, but at least i managed to get it work.
Try to reinstall those packages in that order and tell the result?
Start pavucontrol and from "Output Devices" tab find your audiodevice what you want to be your primary output and at right side is green circle with "Set as fallback" mouseover hint, click it.
Then if vlc or other application what uses pulseaudio does not playback audio, open "Playback" tab from pavucontrol and there is button on right side that opens dropdown menu where you can select what output device that application uses.
(Woke up ~24 hours ago so i guess it's normal to forget something lol)
Anyway, I can't get Steam to produce sounds at all now. Nothing related to Alsa works. Not even aplay.
Aplay returns this: ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
aplay: main:722: audio open error: Device or resource busy
While Steam returns this: SDLAUDIO: SDL_OpenAudioDevice() failed: ALSA: Couldn't open audio device: Device or resource busy
Let's start from the beginning, with the help of blessed ArchWiki.
Theoretically, there're 3 possible setups:
1) All use Pulse. You now have lib32-alsa-plugins lib32-libpulse pulseaudio-alsa installed, and restarted pulse, right? In this case you don't need changes in /etc/pulse/default.pa and don't need .asoundrc. Pulse shall completely grab hardware and catch all sounds streams and manage them itself. Steam will use 32-bit pulse lib, and no ALSA app will work with alsa directly (it'll work like alsa-app -> pulseaudio-alsa plugin -> pulse -> alsa -> hardware).
With all 32-bit libs installed cancel all changes in default.pa (or even better try with and then without them), remove .asoundrc, restart pulse (or just reboot), start Steam and in pulse gui select a working output/sink for it (default or analog stereo or card 0,0 not sure how they call it), start a player and in pulse gui select the same output for it too. Also try Steam with SDL_AUDIODRIVER=pulse to make sure.
2) Some apps use Pulse and others use Alsa, in ArchWiki it's called "ALSA/dmix without grabbing hardware device". Eventually, pulse and alsa have to share the same hardware. As Archwiki says, you have to purge pulseaudio-alsa and make changes in default.pa and bring .asoundrc back and restart pulse (or reboot). In this case your 64-bit players will still use 64-bit Pulse. Steam can work well with alsa directly, it doesn't need 32-bit pulse libs, only a correct setup for alsa (asoundrc with dmix -- software mixing) and non-blocked hardware (changes in default.py). Then start a player, select a working output for it in Pulse gui, then try Steam with SDL_AUIDODRIVER=alsa.
3) No Pulse, all apps use their native backend (alsa, oss, esd, arts, don't know what else) direclty. For that purge all Pulse completely and configure all app to use their backends (most of apps can use alsa, anyway). Or as I suggested above, just kill (shutdown) all Pulse, bring back asoundrc, start a player that can choose alsa as its backend, then start Steam. And if everything works as you want -- purge all pulse and forget about it for now.