Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valve Index sink not found #11

Closed
RealBlueVR opened this issue Mar 19, 2021 · 3 comments
Closed

Valve Index sink not found #11

RealBlueVR opened this issue Mar 19, 2021 · 3 comments
Labels

Comments

@RealBlueVR
Copy link

I've just recently switched from Win10 to Manjaro and am encountering some major audio issues for the VR (everything worked fine back in Win10).
I tried setting the vr_sink_regex in the config.yaml to .displayport. since the hmd is connected via DisplayPort to my computer. But even after trying this, the device wasn't found. My hmd is connected properly as I can play with it in vr - just without any sound.
The output from the hmd is also not listed within the OS sound settings, however the input mic is shown there.

Output from using 'pactl list cards'

[blue@Blue-Desktop scripts]$ python steamvr_utils.py on
2021-03-19 19:51:31 [DEBUG]: dry_run: False
2021-03-19 19:51:31 [DEBUG]: 'pactl list short sinks':
0       alsa_output.pci-0000_28_00.1.hdmi-stereo        module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
1       alsa_output.pci-0000_2a_00.4.analog-stereo      module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
2       combined        module-combine-sink.c   s16le 2ch 44100Hz       RUNNING

2021-03-19 19:51:31 [DEBUG]: normal sink: alsa_output.pci-0000_2a_00.4.analog-stereo
2021-03-19 19:51:31 [DEBUG]: vr sink: alsa_output.pci-0000_28_00.1.hdmi-stereo
2021-03-19 19:51:31 [INFO ]: SteamvrUtils turning on:
2021-03-19 19:51:31 [INFO ]: Scanning for Base Stations:
2021-03-19 19:51:31 [INFO ]: Found Base Station LHB-EBEFA780 at address f0:34:ed:b1:8a:dc
2021-03-19 19:51:31 [INFO ]: Found Base Station LHB-8437B878 at address c4:dd:da:8f:dd:d1
2021-03-19 19:51:33 [INFO ]: Changing power state of Base Stations:
2021-03-19 19:51:33 [INFO ]: Connecting to f0:34:ed:b1:8a:dc
2021-03-19 19:51:33 [INFO ]: Turning on
2021-03-19 19:51:33 [INFO ]: Connecting to c4:dd:da:8f:dd:d1
2021-03-19 19:51:33 [INFO ]: Turning on
2021-03-19 19:51:33 [INFO ]: Success of attempt 1 of 5
2021-03-19 19:51:34 [INFO ]: Connecting to f0:34:ed:b1:8a:dc
2021-03-19 19:51:34 [INFO ]: Turning on
2021-03-19 19:51:34 [INFO ]: Connecting to c4:dd:da:8f:dd:d1
2021-03-19 19:51:34 [INFO ]: Turning on
2021-03-19 19:51:34 [INFO ]: Success of attempt 2 of 5
2021-03-19 19:51:34 [INFO ]: Connecting to f0:34:ed:b1:8a:dc
2021-03-19 19:51:34 [INFO ]: Turning on
2021-03-19 19:51:34 [INFO ]: Connecting to c4:dd:da:8f:dd:d1
2021-03-19 19:51:34 [INFO ]: Turning on
2021-03-19 19:51:34 [INFO ]: Success of attempt 3 of 5
2021-03-19 19:51:35 [INFO ]: Connecting to f0:34:ed:b1:8a:dc
2021-03-19 19:51:35 [INFO ]: Turning on
2021-03-19 19:51:35 [INFO ]: Connecting to c4:dd:da:8f:dd:d1
2021-03-19 19:51:35 [INFO ]: Turning on
2021-03-19 19:51:35 [INFO ]: Success of attempt 4 of 5
2021-03-19 19:51:35 [INFO ]: Connecting to f0:34:ed:b1:8a:dc
2021-03-19 19:51:36 [INFO ]: Turning on
2021-03-19 19:51:36 [INFO ]: Connecting to c4:dd:da:8f:dd:d1
2021-03-19 19:51:36 [INFO ]: Turning on
2021-03-19 19:51:36 [INFO ]: Success of attempt 5 of 5
2021-03-19 19:51:36 [WARNI]: Failed to find any port on any card matching "(Index HMD)|(VIVE)". Name of the product at every port:
alsa_card.pci-0000_28_00.1
    -
alsa_card.usb-Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM-01
    -
alsa_card.usb-MICE_MICROPHONE_USB_MICROPHONE_201308-00
    -
alsa_card.pci-0000_2a_00.4
    -
    -
    -
    -
    -
    -

2021-03-19 19:51:36 [DEBUG]: set_suspend_state pactl suspend-sink alsa_output.pci-0000_28_00.1.hdmi-stereo true
2021-03-19 19:51:46 [DEBUG]: set_suspend_state pactl suspend-sink alsa_output.pci-0000_28_00.1.hdmi-stereo false
2021-03-19 19:51:46 [DEBUG]: 'pactl list short sink-inputs':
212     2       11      protocol-native.c       s16le 2ch 44100Hz
214     1       259     protocol-native.c       float32le 2ch 44100Hz
217     1       264     protocol-native.c       float32le 2ch 44100Hz
232     0       -       module-combine-sink.c   s16le 2ch 44100Hz
233     1       -       module-combine-sink.c   s16le 2ch 44100Hz

2021-03-19 19:51:46 [ERROR]: 'pactl move-sink-input 217 alsa_output.pci-0000_28_00.1.hdmi-stereo' (client_name: java) failed (count: 1), stderr:
Failure: Invalid argument

2021-03-19 19:51:46 [DEBUG]: last_pactl_sinks:
0       alsa_output.pci-0000_28_00.1.hdmi-stereo        module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
1       alsa_output.pci-0000_2a_00.4.analog-stereo      module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
2       combined        module-combine-sink.c   s16le 2ch 44100Hz       RUNNING

2021-03-19 19:51:46 [DEBUG]: last_pactl_sink_inputs:
212     2       11      protocol-native.c       s16le 2ch 44100Hz
214     1       259     protocol-native.c       float32le 2ch 44100Hz
217     1       264     protocol-native.c       float32le 2ch 44100Hz
232     0       -       module-combine-sink.c   s16le 2ch 44100Hz
233     1       -       module-combine-sink.c   s16le 2ch 44100Hz

2021-03-19 19:51:46 [DEBUG]: last_pactl_clients:
None
2021-03-19 19:51:46 [ERROR]: 'pactl move-sink-input 233 alsa_output.pci-0000_28_00.1.hdmi-stereo' (client_name: None) failed (count: 1), stderr:
Failure: Invalid argument

2021-03-19 19:51:46 [DEBUG]: last_pactl_sinks:
0       alsa_output.pci-0000_28_00.1.hdmi-stereo        module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
1       alsa_output.pci-0000_2a_00.4.analog-stereo      module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
2       combined        module-combine-sink.c   s16le 2ch 44100Hz       RUNNING

2021-03-19 19:51:46 [DEBUG]: last_pactl_sink_inputs:
212     2       11      protocol-native.c       s16le 2ch 44100Hz
214     1       259     protocol-native.c       float32le 2ch 44100Hz
217     1       264     protocol-native.c       float32le 2ch 44100Hz
232     0       -       module-combine-sink.c   s16le 2ch 44100Hz
233     1       -       module-combine-sink.c   s16le 2ch 44100Hz

2021-03-19 19:51:46 [DEBUG]: last_pactl_clients:
None
[blue@Blue-Desktop scripts]$ pactl list cards          
Card #0
        Name: alsa_card.pci-0000_28_00.1
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "0"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xf7a40000 irq 74"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:28:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:03.2/0000:28:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "aa68"
                device.product.name = "Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]"
                device.string = "0"
                device.description = "Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:hdmi-stereo
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo

Card #1
        Name: alsa_card.usb-Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM-01
        Driver: module-alsa-card.c
        Owner Module: 7
        Properties:
                alsa.card = "3"
                alsa.card_name = "Valve VR Radio & HMD Mic"
                alsa.long_card_name = "Valve Corporation Valve VR Radio & HMD Mic at usb-0000:2a:00.3-1.3.3, full spee"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:2a:00.3-usb-0:1.3.3:1.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2a:00.3/usb7/7-1/7-1.3/7-1.3.3/7-1.3.3:1.1/sound/card3"
                udev.id = "usb-Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM-01"
                device.bus = "usb"
                device.vendor.id = "28de"
                device.vendor.name = "Valve Software"
                device.product.id = "2102"
                device.product.name = "Valve VR Radio & HMD Mic"
                device.serial = "Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM"
                device.string = "3"
                device.description = "Valve VR Radio & HMD Mic"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Profiles:
                input:mono-fallback: Mono Input (sinks: 0, sources: 1, priority: 1, available: yes)
                input:multichannel-input: Multichannel Input (sinks: 0, sources: 1, priority: 1, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: input:multichannel-input
        Ports:
                analog-input: Analog Input (type: Analog, priority: 10000, latency offset: 0 usec, availability unknown)
                        Part of profile(s): input:mono-fallback

Card #2
        Name: alsa_card.usb-MICE_MICROPHONE_USB_MICROPHONE_201308-00
        Driver: module-alsa-card.c
        Owner Module: 8
        Properties:
                alsa.card = "2"
                alsa.card_name = "USB MICROPHONE"
                alsa.long_card_name = "MICE MICROPHONE USB MICROPHONE at usb-0000:2a:00.3-2, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:2a:00.3-usb-0:2:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2a:00.3/usb7/7-2/7-2:1.0/sound/card2"
                udev.id = "usb-MICE_MICROPHONE_USB_MICROPHONE_201308-00"
                device.bus = "usb"
                device.vendor.id = "0d8c"
                device.vendor.name = "C-Media Electronics, Inc."
                device.product.id = "0005"
                device.product.name = "Blue Snowball"
                device.serial = "MICE_MICROPHONE_USB_MICROPHONE_201308"
                device.string = "2"
                device.description = "Blue Snowball"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Profiles:
                input:mono-fallback: Mono Input (sinks: 0, sources: 1, priority: 1, available: yes)
                input:multichannel-input: Multichannel Input (sinks: 0, sources: 1, priority: 1, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: input:mono-fallback
        Ports:
                analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability unknown)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:mono-fallback

Card #3
        Name: alsa_card.pci-0000_2a_00.4
        Driver: module-alsa-card.c
        Owner Module: 9
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xf7400000 irq 91"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:2a:00.4"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2a:00.4/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "1487"
                device.product.name = "Starship/Matisse HD Audio Controller"
                device.string = "1"
                device.description = "Starship/Matisse HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: no)
                output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: no)
                output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)
                output:analog-surround-41: Analog Surround 4.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:analog-surround-50: Analog Surround 5.0 Output (sinks: 1, sources: 0, priority: 1200, available: no)
                output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)
                output:analog-surround-51: Analog Surround 5.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5565, available: no)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:analog-stereo
        Ports:
                analog-input-front-mic: Front Microphone (type: Mic, priority: 8500, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-input-rear-mic: Rear Microphone (type: Mic, priority: 8200, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-input-linein: Line In (type: Line, priority: 8100, latency offset: 0 usec, not available)
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-output-lineout: Line Out (type: Line, priority: 9000, latency offset: 0 usec, not available)
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21, output:analog-surround-21+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo, output:analog-surround-41, output:analog-surround-41+input:analog-stereo, output:analog-surround-50, output:analog-surround-50+input:analog-stereo, output:analog-surround-51, output:analog-surround-51+input:analog-stereo
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, available)
                        Properties:
                                device.icon_name = "audio-headphones"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
                iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
                        Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-stereo

Thanks for any help. I'm currently reaching my limits on how to fix the issue...

@RealBlueVR
Copy link
Author

Just tried to replace the Index/Vive value in card_port_vr_product_name_regex with 'alsa_card.usb-Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM-01' to see if it could find it at all...

2021-03-19 20:50:57 [WARNI]: Failed to find any port on any card matching "alsa_card.usb-Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM-01". Name of the product at every port:
alsa_card.pci-0000_28_00.1
    -
alsa_card.usb-Valve_Corporation_Valve_VR_Radio___HMD_Mic_C57E1219BC-LYM-01
    -
alsa_card.usb-MICE_MICROPHONE_USB_MICROPHONE_201308-00
    -
alsa_card.pci-0000_2a_00.4
    -
    -
    -
    -
    -
    -

Is this only the mic so that it can't detect it as an output or am I missing something else?

@DavidRisch
Copy link
Owner

The output from the hmd is also not listed within the OS sound settings

If the audio device is not visible to the os, there is little I can do. You might have missed the output, but if you havent, you need to fix that issue somehow before you can use my scripts. The audio output (via displayport+gpu) is competently separate to the microphone (via usb).
Have you tried changing your gpu driver?

I tried setting the vr_sink_regex in the config.yaml to .displayport. since the hmd is connected via DisplayPort

At least in my experience all the sink of all gpu outputs ports contains 'hdmi' (this includes the displayport the index is connected to).

From your logs, the correct sink seems to be alsa_output.pci-0000_28_00.1.hdmi-stereo, so the default regex should correctly detect it.

Some errors in the logs are normal, the only thing that looks problematic is the audio card of your gpu:

        Profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:hdmi-stereo
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo
  • Why is there only a single port? Presumably you have some kind of monitor connected to the same card (or is that running over on-board graphics)?
  • There should be a device.product.name propertiy on the port the index is connected to, but that is not strictly necessary for basic functionality.
  • The output:hdmi-stereo profile seems to be turned off. That might be related to
    2021-03-19 19:51:36 [DEBUG]: set_suspend_state pactl suspend-sink alsa_output.pci-0000_28_00.1.hdmi-stereo true
    2021-03-19 19:51:46 [DEBUG]: set_suspend_state pactl suspend-sink alsa_output.pci-0000_28_00.1.hdmi-stereo false
    
    But that should have left the sink turned on.

Debugging audio issues is tricky, good luck!

@stale
Copy link

stale bot commented Jun 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 5, 2021
@stale stale bot closed this as completed Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants