Skip to content

SteamVR fails to load into games #71554

@Flameslice

Description

@Flameslice

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:

  1. Install a fresh version of Steam and SteamVR, I'm using an HTC Vive
  2. When trying to launch, it will open a zenity instance asking for superuser permissions
  3. Choosing either option will yield an error saying setup is incomplete, check a log.
  4. 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
fresh install
perms set manually

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: steamSteam game store/launcher (store.steampowered.com)
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions