Monado not working as expected when PS4 camera is recognized by monado / firmware is loaded
Monado works as expected without plugging in my camera and I can test it by running SteamVR with
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh
(thanks to SDraw: https://github.com/ValveSoftware/SteamVR-for-Linux/issues/308).
The PSMoves also work as expected using PSMoveAPI (as described here: https://monado.freedesktop.org/positional-tracking-psmove.html)
But I'm having issues with my camera setup:
With my PS4 camera plugged in and initialized as in the tutorial (https://monado.freedesktop.org/positional-tracking-psmove.html), when I open SteamVR (same command as above) the VR screen is all gray and there are lots of lines that pop up and flicker randomly, and sometimes parts of the SteamVR room on the sides of the gray VR screen. See screenshot below.
I tested Monado with the source code and the ppa (ppa:monado-xr/monado) and got the same results. It seems like Monado uses a "Dummy HMD" instead of "PS VR Headset" when SteamVR is open and fails to load "0001:0015:04" USB address, for example, which is my PS4 camera.
Of course, I'm expecting to see the SteamVR room in the VR screen instead of only gray.
The same happens when running the following:
# Terminal 1: XRT_COMPOSITOR_FORCE_XCB=1 monado-service # Terminal 2: hello_xr -g vulkan
Can you please help me fix this issue?
Result of `monado-cli probe`
:: Creating instance! :: Probing and selecting! :: Regular built in drivers psmv hydra osvr vive wmr PSVR Arduino DayDream Camera Hand Tracking northstar Qwerty Dummy :: Additional built in drivers Remote Debugging :: Destroying probed devices Destroying 'PS VR Headset' [PS VR Headset] :: All ok, shutting down. :: Exiting '0'
Result of `monado-cli probe` (with SteamVR open)
:: Creating instance! :: Probing and selecting! ERROR [open_hid] Failed to open '0001:0015:04' :: Regular built in drivers psmv hydra osvr vive wmr PSVR Arduino DayDream Camera Hand Tracking northstar Qwerty Dummy :: Additional built in drivers Remote Debugging :: Destroying probed devices Destroying 'Dummy HMD' [Dummy HMD] :: All ok, shutting down. :: Exiting '0'
Result of `monado-cli probe` (with PS4 camera's firmware loaded)
:: Creating instance! :: Probing and selecting! WARN [read_cv_mat] Mat transposing on load: 'mat_image_size' WARN [read_cv_mat] Mat transposing on load: 'mat_new_image_size' :: Regular built in drivers psmv hydra osvr vive wmr PSVR Arduino DayDream Camera Hand Tracking northstar Qwerty Dummy :: Additional built in drivers Remote Debugging :: Destroying probed devices Destroying 'PS VR Headset' [PS VR Headset] Failed to set V4L2_CID_WHITE_BALANCE_TEMPERATURE Destroying 'Camera based Hand Tracker' [Camera based Hand Tracker] :: All ok, shutting down. Failed to set V4L2_CID_WHITE_BALANCE_TEMPERATURE :: Exiting '0'
Result of `monado-cli probe` (with PS4 camera's firmware loaded AND SteamVR open)
:: Creating instance! :: Probing and selecting! ERROR [open_hid] Failed to open '0001:0015:04' WARN [read_cv_mat] Mat transposing on load: 'mat_image_size' WARN [read_cv_mat] Mat transposing on load: 'mat_new_image_size' ERROR [v4l2_fs_mainloop] could not set up format! :: Regular built in drivers psmv hydra osvr vive wmr PSVR Arduino DayDream Camera Hand Tracking northstar Qwerty Dummy :: Additional built in drivers Remote Debugging :: Destroying probed devices Destroying 'Dummy HMD' [Dummy HMD] Destroying 'Camera based Hand Tracker' [Camera based Hand Tracker] :: All ok, shutting down. :: Exiting '0'
Computer specifications
- Linux Distro: Ubuntu 21.04 (Hirsute Hippo)
- Kernel: 5.11.0-31-generic
- CPU: Intel i7-8700K with integrated UHD Graphics 630
- GPU: Nvidia GeForce GTX 1660 SUPER
- Video Drivers: Nvidia 470.57.02
- Memory: 16GB
- Motherboard: ASUS ROG STRIX H370-F