[Nix-dev] Broken OpenGL

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Fri Apr 25 22:08:40 CEST 2014


On 04/22/2014 01:12 AM, Mateusz Kowalczyk wrote:
> Hi,
> 
> My OpenGL seems to be rather broken.
> 
> When I first start my X session (currently boots into KDE), things using
> OpenGL do render, but they have problems:
> 
> In the game Tibia, things that don't need refreshing every frame (the UI
> and such) flicker like mad or stay black for a while until something
> refreshes them.
> 
> In supertuxkart, some of the characters (or parts of them) don't render
> in the menu. During the game, some objects don't start to render until I
> come close to them.
> 
> Then, after a while, when I turn off the software and try to come back
> to it later, OpenGL stops rendering at all, for all applications: mpv,
> Tibia, supertuxkart, firefox, anything… The window (frame) starts up but
> there's nothing inside of it, just what was on the desktop at the time.
> The application itself works because I can see the logs or music playing
> from it.
> 
> How can I troubleshoot this?
> 
> In my config, I have hardware.opengl.drivers = [ "intel" ];
> 
> using "vesa", I get the same behaviour.
> 
> I tested whether the setting affects anything by setting it to "ati"
> temporarily and X failed to start as expected.
> 
> I had also set
> 
> services.xserver.vaapiDrivers = [ pkgs.vaapiIntel ];
> 
> recently but it makes no difference as far as I can tell.
> 
> I had tried to see whether it's maybe KDE messing it all up by setting
> the session to boot into xterm (from kdm) but it did not help the
> flickering so that's not the case.
> 
> Playing with vsync by setting vblank_mode=0 does not seem to do anything
> in the way of fixing the issue.
> 
> Find attached my glxinfo. Are there any other drivers I can try, if yes,
> how? How can I for example try a different version of a driver with
> NixOS? I think normally one would simply install the different version
> and change their Xorg config accordingly but the set-up is done
> differently here so I'm unsure how to proceed.
> 
> journalctl does not show anything between the time rendering works and
> when it stops to do so.
> 
> PS: If this is a wrong list to ask such questions, please feel free to
> point me elsewhere.
> 
> 
> 
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 

I had since bought a dedicated nVidia graphics card and no longer have
the problem.

I'd still love to know how to tell NixOS to use a specific driver
version: it's not unusual for some versions to break everything ever.

-- 
Mateusz K.


More information about the nix-dev mailing list