Describe the bug
SteamVR fails to load into games due to failing get superuser access. Manually setting the permissions it expects also leads to unexpected behaviour.
To Reproduce
Steps to reproduce the behavior:
- Install a fresh version of Steam and SteamVR, I'm using an HTC Vive
- When trying to launch, it will open a zenity instance asking for superuser permissions
- Choosing either option will yield an error saying setup is incomplete, check a log.
- The log reads "Error: setcap of vrcompositor-launcher failed.", the setcap is trying to set cap_sys_nice
Expected behavior
I'd expect to install steamvr, give it the permissions it asks for, either manually or through the zenity dialogue, then be able to play supported games.
Screenshots


Additional context
Using the troubleshooting steps from here yielded no results.
Additionally, overriding the steam package to be build with libcap did not change anything.
hardware.steam-hardware.enable = true; is set in my config.nix.
If you continue after it fails to get access, games will load, but accept no input and the HMD will be stuck at the loading screen instead.
When the permissions it wants were manually set the HMD did not show any output, and games would not load.
Launching steam via terminal and reading the output shows the error is thrown in ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrstartup.sh
Here's the steam console output with the perms set
and without
Metadata
- system:
"x86_64-linux"
- host os:
Linux 4.19.79, NixOS, 20.03pre196836.1c40ee6fc44 (Markhor)
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.3.1
- channels(root):
"home-manager, nixos-20.03pre196836.1c40ee6fc44"
- channels(kristian):
"home-manager"
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:nixpkgs.steam
# a list of nixos modules affected by the problem
module:
Describe the bug
SteamVR fails to load into games due to failing get superuser access. Manually setting the permissions it expects also leads to unexpected behaviour.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd expect to install steamvr, give it the permissions it asks for, either manually or through the zenity dialogue, then be able to play supported games.
Screenshots


Additional context
Using the troubleshooting steps from here yielded no results.
Additionally, overriding the steam package to be build with libcap did not change anything.
hardware.steam-hardware.enable = true;is set in my config.nix.If you continue after it fails to get access, games will load, but accept no input and the HMD will be stuck at the loading screen instead.
When the permissions it wants were manually set the HMD did not show any output, and games would not load.
Launching steam via terminal and reading the output shows the error is thrown in ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrstartup.sh
Here's the steam console output with the perms set
and without
Metadata
"x86_64-linux"Linux 4.19.79, NixOS, 20.03pre196836.1c40ee6fc44 (Markhor)yesyesnix-env (Nix) 2.3.1"home-manager, nixos-20.03pre196836.1c40ee6fc44""home-manager"/nix/var/nix/profiles/per-user/root/channels/nixosMaintainer information: