SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

No Audio

Open carlzulauf opened this issue 12 years ago • 80 comments

I have everything working except audio. Doesn't work in Steam, doesn't work in GNOME, doesn't work in games (which otherwise work).

Hardware description:

  • AMD FX-4170
  • ASRock 970 Extreme3
  • NVIDIA GTS 450

Navigating to System Settings > Sound in gnome shows zero devices.

Empty device list

lspci -k output shows both the Azalia audio on the motherboard and the HDMI audio on the GTS 450 are recognized as audio device. All audio devices are using kernel driver snd_hda_intel.

I have tried getting audio output through HDMI, SPDIF, and 3.5mm stereo. Nothing on any.

carlzulauf avatar Dec 14 '13 06:12 carlzulauf

Hmmm, I saw you noticed I was having the same problem. I looked up your board specs and noticed you have the same audio chipset as me: Realtek ALC892.

Could be they just haven't added support for it yet.

irbigturtle avatar Dec 14 '13 06:12 irbigturtle

I am having the same issue.

My specs: MSI Z87-G45 (Realtek ALC1150 Audio) Intel Core i5-4670k @ 3.4GHz EVGA GeForce GTX 760 8 GB DDR3-1600 RAM

I tried manually installing the drivers provided by Realtek but when using ./configure there was an error related to compiling a .h file. If more info is needed let me know what i can provide.

vhawley avatar Dec 14 '13 06:12 vhawley

Same issues:

MSI GTX 760 AMD FX-8350 MSI 970A-G46 (Realtek ALC892)

xorl avatar Dec 14 '13 06:12 xorl

Closed my issue and reposting here:

There is no audio when using SteamOS or Desktop. Using standard 1/8" audio jack on ASUS P8Z77-V Motherboard.

Motherboard Specs: Realtek ALC892 8-Channel Audio CODEC

irbigturtle avatar Dec 14 '13 06:12 irbigturtle

I haven't installed SteamOS yet, but ALC892 definitely works on Linux. (I've used it on my deskop using Arch Linux).

Can anyone supply the log for:

lspci -k | grep -i -A 2 audio

Does anyone know if it's possible to install vanilla debian packages without changing the sources.list file?

The pavucontrol is a utility to configure pulseaudio, you can (possibly) install it using the following command:

sudo apt-get install pavucontrol

Does the 'pavucontrol' program show any audio devices?

If this pavucontrol doesn't show anything, you can try to run the alsamixer command. This program can be installed with:

sudo apt-get install alsa-utils

I think the problem is related to pulseaudio configuration

ChristianHersevoort avatar Dec 14 '13 10:12 ChristianHersevoort

I managed to solve this issue, for me the problem's were that

1.) All of my Nvidia HDMI devices were muted. 2.) Pulse audio defaults to using the first HDMI device. Mine was the second.

To solve it I first installed alsa-utils via a deb package from http://packages.debian.org/wheezy/alsa-utils

sudo dpkg -i alsa-utils_1.0.25-4_amd64.deb

Then un-muted my HDMI devices.

alsamixer

Press F6 to select the Nvidia card.

Press "m" to unmute.

Exit.

To see what devices you have run:

aplay -l

The Nvidia section should look something like this: Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 0/1 Subdevice #0: subdevice #0

Determine which device outputs audio aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Right.wav aplay -D plughw:1,7 /usr/share/sounds/alsa/Front_Right.wav aplay -D plughw:1,8 /usr/share/sounds/alsa/Front_Right.wav aplay -D plughw:1,9 /usr/share/sounds/alsa/Front_Right.wav

Create a probe mapping for the device that plays audio. Below are the Nvidia mappings for each device.

Device 3=0x101 Device 7=0x102 Device 8=0x104 Device 9=0x108

In my case it was device 7 (second device) so i used 0x102

Create this file.

vi /etc/modprobe.d/sound.conf

To this add the following, replacing 0x102 with your device map.

options snd-hda-intel probe_mask=0x102

Save the file and update the initramfs:

sudo update-initramfs -u

reboot.

Note: This worked for me with a Gigabyte GTX 550 and Realtek 892 anboard audio.

jazz1138 avatar Dec 14 '13 11:12 jazz1138

I resolved this issue similar to @jazz1138

I did a little research and it appears the issue is a known/documented bug in pulseaudio

ftp://download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html#_issues_in_pulseaudio

Enable Desktop via Big Picture Settings and then Exit > Return to Desktop. Then bring up a terminal and set your password if you haven't already,

passwd
 sudo su

Verify your the kernel drive sees your cards

 cat /proc/asound/cards
 lspci
 cat /proc/asound/cardX

If so then you can proceed

 cd /etc/modprobe.d/
 ls -al

Create snd-hda-intel.conf if it isn't already there

 nano snd-hda-intel.conf

Place the following in the file,

options snd-hda-intel probe_mask=0xa,-1
 rm -rf /home/steam/.pulse
 rm -rf /home/desktop/.pulse
 reboot

Sound should be working.

thimslugga avatar Dec 14 '13 12:12 thimslugga

Broknbottle instructions work perfectly. Fixed my sound problem. Thank you.

mingsterUK avatar Dec 14 '13 18:12 mingsterUK

Ok so for some reason i have sound in the system(desktop mode/after following a combination of the tutorials a few posts up) but not in the client (steam client)and no i restarted and that didn't fix

EDIT: ok so i Now i got audio in my steam client after doing a full reinstall /testing things and redoing the steps above

hikto avatar Dec 14 '13 21:12 hikto

@broknbottle your solution fixed my audio issues, at least mostly. Thank you.

Now audio works through HDMI. Still can't seem to get any audio from the Realtek ALC892 on the motherboard. This works for now.

carlzulauf avatar Dec 14 '13 23:12 carlzulauf

@broknbottle Similar result to @carlzulauf

Audio Works through HDMI only on the desktop but it does not work in steamOS.

It also does not work through motherboard with ALC892 chipset.

irbigturtle avatar Dec 15 '13 01:12 irbigturtle

@irbigturtle at the shell prompt escalate to root with,

sudo su -

See if the steam user is part of the audio group

groups steam

Also make sure this was done after making the changes

update-initramfs -u
rm -rf /home/steam/.pulse

thimslugga avatar Dec 15 '13 02:12 thimslugga

I followed all of the steps @broknbottle listed and I still do not see see the motherboard audio (ALC892). However when I do the following:

sudo killall pulseaudio
pulseaudio

I can see the motherboard audio. However, when I restart the machine the motherbord audio disappears again.

Any suggestions?

ckedwards avatar Dec 15 '13 03:12 ckedwards

@chrise524 Are you trying to use the onboard ALC892 audio and NVidia for video?

My guide was for fixing audio when using NVidia HDMI out for Audo/Video.

lsmod # make sure kernel module is loaded for that chipset
pulseaudio -vvv # check pulseaudio
sudo apt-get install firmware-linux-free firmware-linux-non-free # try installing these also

thimslugga avatar Dec 15 '13 04:12 thimslugga

@broknbottle It looks like audio is part of the steam group. I then did...

update-initramfs -u rm -rf /home/steam/.pulse reboot

...and still don't have audio in SteamOS, but I do have audio in Desktop.

To clarify:

cat /proc/asound/cards RETURNS HDA-Intel - HDA Intel PCH (is this the onboard audio?) HDA-Intel - HDA NVidia (HDMI audio on GPU)

lspci RETURNS Audio device: Intel Corp.... C210 Chipset Family High Definition Audio Controller (onboard audio?) Audio device: NVIDIA.... GK104 HDMI Audio Controller (GPU Audio)

cat /proc/asound/cardx RETURNS No such file or directory

I feel like it could be something as simple as a bad setting in the steam user, but i can't access it because SteamOS forces it's overlay (or whatever it's doing to prevent me from logging in as "steam".

irbigturtle avatar Dec 15 '13 06:12 irbigturtle

@irbigturtle The 'X' is not literal, if you look in that directory there should be files such as card1, card2, etc. The 'X' just signifies the number. Sorry about that

cat /proc/asound/cardX

Just to clarify you are trying to get audio working over nvidia HDMI out, correct?

thimslugga avatar Dec 15 '13 06:12 thimslugga

@broknbottle Ahh yes, that makes sense! Yes, whether it is through HDMI or the motherboard, I'm just trying to get audio out of SteamOS.

irbigturtle avatar Dec 15 '13 06:12 irbigturtle

My final hurdle was that the default sound process (gnome?) was overwriting the pulse default sink config in /home/steam/.pulse on reboot. I have an Asus Xonar DG that I am using the digital output on to my speakers, but the HDMI of my Nvidia GPU was the default device, and the analog out of the Xonar was the default.

I set the Xonar to be the first device indexed, then configured the Sound Control panel to the way I wanted it, eg that the Nvidia output was turned off, and the Xonar was set to digital stereo. I confirmed this the in pulse config file, and then did a chmod -w on only that file for both the steam and desktop users.

There must be a bug that the pulse config is overwritten on reboot, because making it read only preserved the settings across reboots, and even into the SteamOS environment after I did the post install script.

I hope this helps someone else.

blhunter avatar Dec 15 '13 06:12 blhunter

@broknbottle I was just retracing my footsteps and realized i had misspelt "options snd-hda-intel probe_mask=0xa,-1" in the config file! Sorry for giving you the run around. I just tried to re-do your original instructions and now I've lost my HDMI audio output on the desktop! it has been replaced by "dummy audio" and when i do....

cat /proc/asound/cards

It says there are no cards. Should I not have tried the instructions a second time or is there something else going on here?

irbigturtle avatar Dec 15 '13 06:12 irbigturtle

I believe this is a how it is meant to be at the moment, I saw a rep from valve saying that there is no audio in desktop mode. More importantly do you now have audio in Steam?

jazz1138 avatar Dec 15 '13 06:12 jazz1138