ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
924 stars 45 forks source link

Microphone not working on Valve Index #215

Open beniwtv opened 5 years ago

beniwtv commented 5 years ago

Your system information

Please describe your issue in as much detail as possible:

The Index microphone is detected on the system via ALSA and Pulseaudio, but no input is generated.

Steps for reproducing this issue:

  1. Plug in Valve Index
  2. Start SteamVR
  3. Try to use Index microphone - no sound
cybik commented 2 years ago

In my case it never worked with baseline pulse, however hard I patched it.

JulianGro commented 2 years ago

Normal Pulse here with 48000 works (Ubuntu 18.04) Just to say that it does work for some peeps.

I remember it being finicky but in the end it only needed the 48000 as instructed and I haven't had a problem with it on the machine since. Keep in mind that it needs a while to turn on. To test it you ideally put something in front of the sensor inside the HMD so it stays on. I could also imagine that it only works if you actually pipe audio to its speakers. There was at least some sort of requirement for the mic to turn on which had confused me.

DomiStyle commented 2 years ago

I believe it works for most people since the issue is fairly quiet by now.

I always make sure that the headset is awake, SteamVR is running and some sound is coming from the headset when testing. Still no mic though.

ZarathustraDK commented 2 years ago

It's a very odd problem you have:

Perhaps you have some kind of exotic hardware plugged in/strange onboard sound-device that interferes? Have you tried all the DisplayPorts on your 6900XT? Sometimes SteamVR can be finicky about that, though that's mostly in regards to the displays.

DomiStyle commented 2 years ago

Perhaps you have some kind of exotic hardware plugged in/strange onboard sound-device that interferes?

That's also what I'm thinking but I don't really have anything exotic plugged in. I will give it another go with nothing plugged in though just to make sure.

I already tried the second port on the 6900 XT but it doesn't work either.

The only interesting part about the SteamVR logs seems to be the Watchman log:

20:02:14.325 [audio] video found, enabling audio
20:02:14.334 [video] Video state: wait_for_stable_vsync -> panel_init (103 ms)
20:02:14.334 [panel] set mode 8
20:02:14.462 [panel 0] MTP=21 factory=36 blend=1.148461 offset=0 result=38
20:02:14.475 [panel 0] loaded column cal=38
20:02:14.475 [panel 0] loading gamma cal
20:02:14.691 [panel 2] MTP=36 factory=43 blend=1.148461 offset=0 result=44
20:02:14.700 [panel 2] loaded column cal=44
20:02:14.700 [panel 2] loading gamma cal
20:02:15.186 [video] Video state: panel_init -> backlight_init (852 ms)
20:02:15.188 [video] Video state: backlight_init -> stable (2 ms)
20:02:17.124 [npca110p] commands in patch: 1185
20:02:18.221 [audio] Setting codec to 0
20:02:18.228 [tfa9892] Init (2, ch: 0; bypass: 1)
20:02:18.252 [tfa9892] Init (3, ch: 1; bypass: 1)
20:02:18.280 [audio] speaker init success
20:02:18.285 [cs47l35] jack: detected: 0; (connected: 0; mic_detect_3: 0x0)
20:02:18.291 [audio] audio state: 0 -> 1 (19021 ms)

20:02:18.285 [cs47l35] jack: detected: 0; (connected: 0; mic_detect_3: 0x0)

That line sounds interesting, maybe it can't detect the mic? I will have to connect a headphone to the audio jack under the face mask to check if that value changes. Does anybody know if that audio jack only supports headphones or a microphone as well?

JulianGro commented 2 years ago

Does anybody know if that audio jack only supports headphones or a microphone as well?

The audio jack of the Valve Index actually only supports headphones with a microphone. If you plug in headphones the integrated microphone will deactivate.

ImpulseTheFox commented 2 years ago

Uninstall pulseaudio, install pipewire-pulse. Worked like a charm for me! Do not skip the pulseaudio uninstall or it won't work!

sudo touch /etc/apt/break-my-system # needed on some distros like Pop!_OS to purge pulseaudio
sudo apt purge pulseaudio # you might need to confirm this with typing "Yes, do as I say!"
sudo reboot now
sudo apt install pipewire-pulse
sudo reboot now

Et Voilà!

Foorack commented 2 years ago

:warning: # you might need to confirm this with typing "Yes, do as I say!" :warning: NO, do not do this unless you clearly know what you are doing. Removing pulseaudio also removes the virtual packages "ubuntu-desktop" and "ubuntu-desktop-minimal".

mathew2214 commented 2 years ago

warning # you might need to confirm this with typing "Yes, do as I say!" warning NO, do not do this unless you clearly know what you are doing. Removing pulseaudio also removes the virtual packages "ubuntu-desktop" and "ubuntu-desktop-minimal".

even if you do know what you're doing, ALWAYS second guess yourself when you get this prompt.

SIGSTACKFAULT commented 2 years ago

Happening to me. Shows in PulseAudio but doesn't produce any sound. SteamVR version 1.23.7. info here

Wandang commented 1 year ago

I got it to work by switching to pipewire instead of pulseaudio (since I am using manjaro i switched to the manjaro-pipewire package) and rebooted. now it works out of the box

DASPRiD commented 4 months ago

I updated Pipewire on PopOS 22.04 from 0.3.59-0pop1~1664857105~22.04~83dda19ubuntu1 to 1.0.2~1707732619~22.04~b8b871b yesterday after holding those updates back for a few months (I assume I had some issues, can't remember exactly why).

Since the update the microphone stopped working. By running the following command manually before starting SteamVR I get it running, but I did notice occasional crackling in my index headphones from that:

pw-metadata -n settings 0 clock.force-rate 48000
DASPRiD commented 4 months ago

Alright, I used the pipewire-upstream PPA to upgrade to 1.0.7 which resolved the problem, in case someone else runs into that issue.

Spacefish commented 3 months ago

Microphone isn´t working on my Index since the latest Win 11 Insider build ( 10.0.26244.5000 ) as well..

Seems to use a generic USB-Mic driver there, will be interesting to see once that driver versions rolls out to more players and suddently all their mics stop working..