You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Corrupted "snow"-looking artifacts and glitches, only on SteamVR system menus in VR grid mode #202
Please describe your issue in as much detail as possible:
When SteamVR tries to display system menus or messages when you are in the "grid" view that you get when you are between applications, the menus are corrupted and illegible. It looks like the texture is not getting interpreted correctly by the GPU or something; it's covered in weird semi-random snow.
Here's a screenshot:
Notably, the artifacts aren't random or changing every frame. It looks like there's a real back there with some UI animation happening. I just can't see it properly.
Through random button-mashing, I've even managed to get a few corrupted dialogs open at once. I can't read any of them.
Possibly relevant is that I'm using an OpenHMD HMD driver for an Oculus DK1 HMD, but I get the artifacts even if the vr compositor window is on my normal screen.
Actual VR games like SteamVR Home work fine, and their in-game menus display properly.
This is not #183. Other applications are displaying just fine. It's only these VR system menus that are corrupted.
Steps for reproducing this issue:
Open SteamVR Home
From the middle screen in SteamVR Home, try to launch a game that is still downloading. Here I am trying to launch Google Earth VR.
You end up going to the grid world, and it tries to display a dialog or something.
On my system, the dialog will be corrupted and unreadable.
OK, I've tried the packages from the PPA. There's no apparent improvement in the system dialogs, and now something has gone wrong with syncing the rendering and the display or something, so the images in each eye flicker. I grabbed a screenshot and it looks like many blocks of the image are just not rendered by the time it is displayed.
I don't know if the drivers updated, or if I installed it with a different set of commands this time, or if the magic trick was forcing my extra GPU to be bound to the vfio-pci driver instead of amdgpu, but (after a few rounds of unplugging and replugging the cable to get all the USB devices to be detected), I can get SteamVR on my system to start up in direct mode about 1/2 of the time. If it comes up in extended mode (with the compositor just on the desktop), I can stop it and restart it and it eventually picks direct mode (and puts the compositor on the headset). It might be that it needs to wait a minute or so from the last time I ran it to start up again in direct mode.
Moreover, I can no longer reproduce the rendering-in-blocks effect, or the corrupted system menus.
Here's a system report from it working in direct mode:
I'm still having some trouble with latency, though not as severely as and more intermittently than in #211. Interestingly, some frames seem to take ~infinity time (see the numbers in the screenshot below). In the in-headset frame graph there are regions that are empty, but they don't show as empty on the one I can take a screenshot of.
Performance is still sadly sufficiently poor that I don't think I can really use it with this setup. I've also noticed a couple minor quirks:
The wood floor of the default SteamVR home is weirdly blurry and flickering, but I can't get a screenshot of that either.
The firmware updater insists on popping up to claim all my firmware is up to date as of today (since I used it to update the firmware around Friday). In Windows, the firmware updater yesterday thought my HMD had an available update (which I didn't install yet).
The original issue here is clearly resolved, but there are some new ones. Should I open new tickets for those?
Can you check if sudo mv /usr/share/vulkan/icd.d/intel_icd.x86_64.json /usr/share/vulkan/icd.d/intel_icd.x86_64.json.disabled has an effect on SteamVR's behavior?
On cases where direct mode is failing, it is because X.org isn't properly enumerating your HMD. This is why you see a fallback to extended mode with the extended display surface on your monitor instead of on your HMD display.
You should be able to verify this by running xrandr and looking for your HMD in the output.
For the good cases you should see the following for your HMD connector:
Status: disconnected (yes, disconnected is normal since X isn't using it as part of the desktop)
A list of modes
E.g.
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
2880x1600 90.00 + 144.00 120.02 80.00
1920x1200 90.00
1920x1080 90.00
1600x1200 90.00
1680x1050 90.00
1280x1024 90.00
1440x900 90.00
1280x800 90.00
1280x720 90.00
1024x768 90.00
800x600 90.00
640x480 90.00
For the bad case you will see:
Status: disconnected
No modes listed
E.g.
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
Checking with xrandr will probably be the best way to narrow down what is happening since it is a lot faster than launching SteamVR.
I also have the laptop's internal GPU (AMD/ATI Radeon 680M) and a Thunderbolt eGPU (AMD/ATI Radeon RX 6650 XT). I'm running SteamVR over the latter.
However I wasn't able to completely disable the iGPU. I added vfio-pci.ids=1022:1681 to Grub and I see this in dmesg: [ 3.903528] vfio_pci: add [1022:1681[ffffffff:ffffffff]] class 0x000000/00000000. However I still get those artifacts. Trying to unbind via echo "0000:33:00.0" | sudo tee /sys/bus/pci/drivers/amdgpu/unbind is not working either, I get crashes in dmesg then.
@interfect any pointers regarding how you got rid of these rendering issues would be much appreciated. I guess in your case you are having an Intel iGPU and an extra PCIe connected AMD/ATI GPU?
I had a weird config with two nearly equivalent AMD GPUs in the system. I think I managed to get one on vfio and one on amdgpu by:
Putting amdgpu on the list of modules not to load at boot ("blacklist")
Doing something to the kernel command line to not load amdgpu and to load vfio at boot for both GPUs instead, for the PCI ID of the GPUs
Loading amdgpu manually with a systemd unit, and binding the GPU I actually want to use to that. And also attaching the right sound driver to its integrated audio device.
[anovak@octagon ~]$ cat /etc/unbind-devices.sh
#!/usr/bin/env bash
# Set up after boot
# Make sure vfio-pci had a chance to grab the GPUs
modprobe vfio-pci
PASSTHROUGH="vfio-pci"
if [[ $? != "0" ]] ; then
# Probably on Xen
modprobe xen-pciback
PASSTHROUGH="xen-pciback"
fi
# This is the GPU we want Linux to have
GPUS=("0000:08:00.0")
# And the sound devices
SOUNDS=("0000:0b:00.3" "0000:08:00.1")
# And the sound devices to not take
NONSOUNDS=("0000:09:00.1")
for GPU in ${GPUS[@]} ; do
if [[ -e "/sys/bus/pci/devices/${GPU}/driver" ]] && [[ "$(basename $(readlink /sys/bus/pci/devices/${GPU}/driver))" == "amdgpu" ]] ; then
echo 1>&2 "Error: amdgpu driver already loaded for ${GPU}"
exit 1
fi
done
# Change it over to the amdgpu driver
modprobe amdgpu
for GPU in ${GPUS[@]} ; do
echo 'amdgpu' > "/sys/bus/pci/devices/${GPU}/driver_override"
echo "${GPU}" > "/sys/bus/pci/devices/${GPU}/driver/unbind"
echo "${GPU}" > "/sys/bus/pci/drivers/amdgpu/bind"
done
for SOUND in ${SOUNDS[@]} ; do
if [[ -e "/sys/bus/pci/devices/${SOUND}/driver" ]] && [[ "$(basename $(readlink /sys/bus/pci/devices/${SOUND}/driver))" == "snd_hda_intel" ]] ; then
echo 1>&2 "Error: snd_hda_intel driver already loaded for ${SOUND}"
exit 1
fi
done
for NONSOUND in ${NONSOUNDS[@]} ; do
echo "${PASSTHROUGH}" > "/sys/bus/pci/devices/${NONSOUND}/driver_override"
if [[ -e "/sys/bus/pci/devices/${NONSOUND}/driver" ]] ; then
echo "${NONSOUND}" > "/sys/bus/pci/devices/${NONSOUND}/driver/unbind"
fi
echo "${NONSOUND}" > "/sys/bus/pci/drivers/${PASSTHROUGH}/bind"
done
modprobe snd_hda_intel
for SOUND in ${SOUNDS[@]} ; do
echo 'snd_hda_intel' > "/sys/bus/pci/devices/${SOUND}/driver_override"
echo "${SOUND}" > "/sys/bus/pci/devices/${SOUND}/driver/unbind"
echo "${SOUND}" > "/sys/bus/pci/drivers/snd_hda_intel/bind"
done
[anovak@octagon ~]$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT="Ubuntu"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="-1"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
# removed: quiet splash
# In addition to blacklisting amdgpu here, we have to prevent X
# from loading it.
GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=amdgpu usb_storage.quirks=0bc2:ab38: amd_iommu=on vfio-pci.ids=1002:67df"
GRUB_CMDLINE_LINUX=""
...
[anovak@octagon modprobe.d]$ cat /etc/modprobe.d/blacklist.conf
...
# Don't load amdgpu at all
blacklist amdgpu
# Or the intel sound driver
blacklist snd_hda_intel
Instead of all this garbage you might be able to turn off the iGPU in the BIOS instead?
To check whether your setup is working, you can look at where the driver symlink points for the device in its directory under /sys. That tells you which driver is driving the device:
Activity
kisak-valve commentedon Jun 16, 2019
Hello @interfect, can you check if you see the same quirk with SteamVR Experimental Graphics PPA.
interfect commentedon Jun 17, 2019
@kisak-valve Unfortunately, my system is all running off of ZFS, and it looks like your kernels in that PPA specifically don't have ZFS support.
Would it be useful/advisable to not install the kernel packages from the PPA and try the other ones?
kisak-valve commentedon Jun 17, 2019
Thanks for mentioning the ZFS note, that note is outdated and has been removed.
interfect commentedon Jun 23, 2019
OK, I've tried the packages from the PPA. There's no apparent improvement in the system dialogs, and now something has gone wrong with syncing the rendering and the display or something, so the images in each eye flicker. I grabbed a screenshot and it looks like many blocks of the image are just not rendered by the time it is displayed.
interfect commentedon Jul 13, 2019
I just got a Valve Index, and this issue with the illegible menus persists with the Index as my display.
lostgoat commentedon Jul 15, 2019
@interfect Can you provide a system report with the PPA video drivers installed?
interfect commentedon Jul 16, 2019
OK, so I installed the PPA's packages by following the instructions on this repo's README (not on the PPA itself).
I don't know if the drivers updated, or if I installed it with a different set of commands this time, or if the magic trick was forcing my extra GPU to be bound to the vfio-pci driver instead of amdgpu, but (after a few rounds of unplugging and replugging the cable to get all the USB devices to be detected), I can get SteamVR on my system to start up in direct mode about 1/2 of the time. If it comes up in extended mode (with the compositor just on the desktop), I can stop it and restart it and it eventually picks direct mode (and puts the compositor on the headset). It might be that it needs to wait a minute or so from the last time I ran it to start up again in direct mode.
Moreover, I can no longer reproduce the rendering-in-blocks effect, or the corrupted system menus.
Here's a system report from it working in direct mode:
https://gist.github.com/interfect/b2e18d33c52887b98ea3ebd2ab3b022b
And here's one from it stuck in extended mode:
https://gist.github.com/interfect/2e72caebd8ab89ccc6b3d3945d4a1cf7
I'm still having some trouble with latency, though not as severely as and more intermittently than in #211. Interestingly, some frames seem to take ~infinity time (see the numbers in the screenshot below). In the in-headset frame graph there are regions that are empty, but they don't show as empty on the one I can take a screenshot of.
Performance is still sadly sufficiently poor that I don't think I can really use it with this setup. I've also noticed a couple minor quirks:
The original issue here is clearly resolved, but there are some new ones. Should I open new tickets for those?
kisak-valve commentedon Jul 16, 2019
Can you check if
sudo mv /usr/share/vulkan/icd.d/intel_icd.x86_64.json /usr/share/vulkan/icd.d/intel_icd.x86_64.json.disabledhas an effect on SteamVR's behavior?lostgoat commentedon Jul 16, 2019
Hi @interfect
On cases where direct mode is failing, it is because X.org isn't properly enumerating your HMD. This is why you see a fallback to extended mode with the extended display surface on your monitor instead of on your HMD display.
You should be able to verify this by running
xrandrand looking for your HMD in the output.For the good cases you should see the following for your HMD connector:
E.g.
For the bad case you will see:
E.g.
Checking with
xrandrwill probably be the best way to narrow down what is happening since it is a lot faster than launching SteamVR.lostgoat commentedon Jul 16, 2019
Some snippets from the system report of the bad case:
And the good case:
T-X commentedon Jun 13, 2023
Hi, I think I might be running into this issue, too. It looks like this for me:
https://gitlab.freedesktop.org/monado/monado/-/issues/267
I also have the laptop's internal GPU (AMD/ATI Radeon 680M) and a Thunderbolt eGPU (AMD/ATI Radeon RX 6650 XT). I'm running SteamVR over the latter.
However I wasn't able to completely disable the iGPU. I added vfio-pci.ids=1022:1681 to Grub and I see this in dmesg:
[ 3.903528] vfio_pci: add [1022:1681[ffffffff:ffffffff]] class 0x000000/00000000. However I still get those artifacts. Trying to unbind viaecho "0000:33:00.0" | sudo tee /sys/bus/pci/drivers/amdgpu/unbindis not working either, I get crashes in dmesg then.@interfect any pointers regarding how you got rid of these rendering issues would be much appreciated. I guess in your case you are having an Intel iGPU and an extra PCIe connected AMD/ATI GPU?
SpookySkeletons commentedon Jun 13, 2023
You're not all running your apps on the same GPU.
Run everything with DRI_PRIME=1 or such to eliminate the fruit salad due to one GPU accessing the resources of another.
interfect commentedon Jun 23, 2023
I had a weird config with two nearly equivalent AMD GPUs in the system. I think I managed to get one on vfio and one on amdgpu by:
Here's what that vaguely looks like:
Instead of all this garbage you might be able to turn off the iGPU in the BIOS instead?
To check whether your setup is working, you can look at where the
driversymlink points for the device in its directory under/sys. That tells you which driver is driving the device:You can also look in the directory for the driver and see if there's a symlink for the device or not: