SteamOS-specific

Download Official archlinux-keyring ZST Package: [https://archlinux.org/packages/core/any/archlinux-keyring/download](https://archlinux.org/packages/core/any/archlinux-keyring/download) Then install the downloaded ZST file through pacman - Ex. `sudo pacman -U archlinux-keyring*.zst`
1
2
3
4
5
6
7
8
9
sudo steamos-readonly disable
echo "keyserver hkps://keyserver.ubuntu.com" >> /etc/pacman.d/gnupg/gpg.conf
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman -Sc
sudo pacman -S archlinux-keyring
sudo pacman -Syyuu
sudo pacman-key --refresh-keys
yay -S base-devel

This will probably take an hour or so to complete sync.

sudo pacman -S ninja meson cmake base-devel hidapi linux-headers libglvnd glibc gcc sdl sdl2 sdl2_ttf lib32-sdl lib32-sdl2 lib32-sdl2_ttf glew glu lib32-glu lib32-glew python3

This sets up the development tools to compile OpenHMD.
If you hit anerror: failed to commit transaction (invalid or corrupt package) then do it one package at a time, reinstalling if necessary until you hit whichever one halts it. Do another sudo pacman -Sc then try to locate the offending package from archlinux.org, download from their mirror, and install it with sudo pacman -U

Pick a location to store the git, I opted to mkdir /home/LGVR and cd to that location.

git clone --branch LG-R100 https://github.com/OpenHMD/OpenHMD.git LG-R100

This is unfortunately based on OpenHMD 0.3.0.

Github user ChristophHaag has rolled up patches since 2019 into a new branch hopefully based on 0.7.0, additional installations were needed, test at your own pace.

git clone --branch LG-R100-new https://github.com/ChristophHaag/OpenHMD.git LG-R100-new
sudo pacman -S linux-api-headers linux-neptune-headers

At this point, we should be ready to compile by following the readme. https://github.com/OpenHMD/OpenHMD/tree/LG-R100
We need to make a small tweak for R100.

1
2
3
meson ./build -Ddrivers=lgr -Dexamples=simple,opengl
ninja -C ./build
sudo ninja -C ./build install

OR

1
2
3
4
5
mkdir build
cd build
cmake .. -DDRIVER_OF_CHOICE=ON
make
sudo make install

Please pick one and stick to it. Don't waste time using both Meson/Ninja and Cmake.

If all has gone well you should now be ready to try the R100. If you are on Deck, this is a good time to get a bluetooth keyboard and mouse going.
Plug the R100 in, use one of the lens covers or a wad of paper to cover the proximity sensor, then cd build and then sudo ./openhmd_opengl_example

You should now see the screens come alive, and the example program! What's better, the R100 should send movement data to OpenHMD, and your viewport should move with 3 whole degrees of freedom! Geometric!

From this point, you can now begin to try other things. Like run SteamVR.

References used
https://forum.xda-developers.com/t/lg-360-vr-openhmd-journey-linux-mac-windows-bsd-support-and-steamvr.3810873/
https://wiki.archlinux.org/title/Pacman/Package_signing#Upgrade_system_regularly
https://christitus.com/unlock-steam-deck/

Edit
Pub: 03 Sep 2022 09:40 UTC
Edit: 04 Sep 2022 07:23 UTC
Views: 606