KiaraGrouwstra / nix-config

my NixOS configuration
15 stars 1 forks source link

Steam: OpenGL GLX extension not supported by display #53

Closed KiaraGrouwstra closed 5 years ago

KiaraGrouwstra commented 6 years ago

https://stackoverflow.com/questions/23053822/opengl-code-not-running-opengl-glx-extension-not-supported-by-display#23055913 says go install nvidia drivers.

KiaraGrouwstra commented 6 years ago

This seems related to uncommenting

  systemd.services.nvidia-control-devices = {
    wantedBy = [ "multi-user.target" ];
    serviceConfig.ExecStart = "${pkgs.linuxPackages.nvidia_x11}/bin/nvidia-smi";
  };

yielding

setting up /etc...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-tycho'
kbuildsycoca5 running...
kf5.kservice.services: The desktop entry file "/home/tycho/.nix-profile/share/applications/org.gnome.ChromeGnomeShell.desktop" has Type= "Application" but no Exec line
kf5.kservice.sycoca: Invalid Service :  "/home/tycho/.nix-profile/share/applications/org.gnome.ChromeGnomeShell.desktop"
setting up tmpfiles
warning: the following units failed: nvidia-control-devices.service

● nvidia-control-devices.service
   Loaded: loaded (/nix/store/28rjxr1vs6jrlqsxpsyb8l1paal73a6n-unit-nvidia-control-devices.service/nvidia-control-devices.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-09-02 12:24:59 CEST; 22ms ago
  Process: 27035 ExecStart=/nix/store/k4ffha139avzdznf0g7kqga10p67bvlw-nvidia-x11-390.67-4.14.63/bin/nvidia-smi (code=exited, status=203/EXEC)
 Main PID: 27035 (code=exited, status=203/EXEC)

Sep 02 12:24:59 klink systemd[1]: Started nvidia-control-devices.service.
Sep 02 12:24:59 klink systemd[27035]: nvidia-control-devices.service: Failed to execute command: No such file or directory
Sep 02 12:24:59 klink systemd[27035]: nvidia-control-devices.service: Failed at step EXEC spawning /nix/store/k4ffha139avzdznf0g7kqga10p67bvlw-nvidia-x11-390.67-4.14.63/bin/nvidia-smi: No such file or directory
Sep 02 12:24:59 klink systemd[1]: nvidia-control-devices.service: Main process exited, code=exited, status=203/EXEC
Sep 02 12:24:59 klink systemd[1]: nvidia-control-devices.service: Failed with result 'exit-code'.
warning: error(s) occurred while switching to the new configuration
KiaraGrouwstra commented 6 years ago

trying that at https://github.com/tycho01/nix-config/tree/issue-53

KiaraGrouwstra commented 6 years ago

https://github.com/NixOS/nixpkgs/search?q=nvidia_x11

KiaraGrouwstra commented 6 years ago

hardcoding the path advanced me to Failed to initialize NVML: Driver/library version mismatch

KiaraGrouwstra commented 6 years ago

fwiw this also crashes e.g. zoom-us

KiaraGrouwstra commented 5 years ago

enabling bumblebee did not fix.

KiaraGrouwstra commented 5 years ago

workaround is #80 (Gnome) which is in turn blocked by #83.

KiaraGrouwstra commented 5 years ago

switching to #111.