ChristophHaag / SteamVR-OpenHMD

SteamVR plugin for using OpenHMD drivers in SteamVR
Boost Software License 1.0
194 stars 32 forks source link

Add documentation on how to uninstall OpenHMD from SteamVR completely #30

Closed JulianGro closed 4 years ago

JulianGro commented 4 years ago

It actually seems really had to properly remove OpenHMD from SteamVR once installed. It took me almost 4 hours to get SteamVR to a point where I was able to use my Valve Index instead and I still get error messages saying that OpenHMD was not found.

Reinstalling SteamVR and/or removing its configs does not seem enough.

Other drivers don't seem to work properly while OpenHMD is still installed. SteamVR was still looking for an OpenHMD compatible HMD, even though I had a Valve Index connected.

ChristophHaag commented 4 years ago

That sucks.

I'm not quite sure where SteamVR stores the config, but the SteamVR/bin/linux64/vrpathreg tool is used to register and remove drivers. If you run it without arguments it should print the registered drivers under "External Drivers" like this:

LD_LIBRARY_PATH=~/.local/share/steam/steamapps/common/SteamVR/bin/linux64 ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrpathreg
Runtime path = /home/chris/.local/share/Steam/steamapps/common/SteamVR
Config path = /home/chris/.local/share/Steam/config/
Log path = /home/chris/.local/share/Steam/logs/
External Drivers:
        /home/chris/SteamVR-OpenHMD/build

If you have libopenvr_api.so in the library path like /usr/lib/libopenvr_api.so, then you don't need LD_LIBRARY_PATH.

Depending on the distribution package Steam was installed from it might be ~/.steam/steam instead of ~/.local/share/Steam.

Something like this should remove the driver from SteamVR:

LD_LIBRARY_PATH=~/.local/share/steam/steamapps/common/SteamVR/bin/linux64 ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrpathreg removedriver  /home/chris/SteamVR-OpenHMD/build

That's what the unregister.sh script is trying to do.

JulianGro commented 4 years ago

Worked fine.

motofckr9k@MotoFckr9k-Tessa:~/.steam/steam/steamapps/common/SteamVR/bin/linux64$ LD_LIBRARY_PATH=~/.steam/steam/steamapps/common/SteamVR/bin/linux64 ~/.steam/steam/steamapps/common/SteamVR/bin/linux64/vrpathreg
Runtime path = /home/motofckr9k/.steam/steam/steamapps/common/SteamVR
Config path = /home/motofckr9k/.steam/steam/config
Log path = /home/motofckr9k/.steam/steam/logs
External Drivers:
    /home/motofckr9k/Dokumente/SteamVR-OpenHMD/build
motofckr9k@MotoFckr9k-Tessa:~/.steam/steam/steamapps/common/SteamVR/bin/linux64$ 
motofckr9k@MotoFckr9k-Tessa:~/.steam/steam/steamapps/common/SteamVR/bin/linux64$ LD_LIBRARY_PATH=~/.steam/steam/steamapps/common/SteamVR/bin/linux64 ~/.steam/steam/steamapps/common/SteamVR/bin/linux64/vrpathreg removedriver  /home/motofckr9k/Dokumente/SteamVR-OpenHMD/build
motofckr9k@MotoFckr9k-Tessa:~/.steam/steam/steamapps/common/SteamVR/bin/linux64$
motofckr9k@MotoFckr9k-Tessa:~/.steam/steam/steamapps/common/SteamVR/bin/linux64$ LD_LIBRARY_PATH=~/.steam/steam/steamapps/common/SteamVR/bin/linux64 ~/.steam/steam/steamapps/common/SteamVR/bin/linux64/vrpathreg
Runtime path = /home/motofckr9k/.steam/steam/steamapps/common/SteamVR
Config path = /home/motofckr9k/.steam/steam/config
Log path = /home/motofckr9k/.steam/steam/logs
motofckr9k@MotoFckr9k-Tessa:~/.steam/steam/steamapps/common/SteamVR/bin/linux64$ 

I will add it to the readme and make a pull request.