[Nix-dev] Broken OpenGL

Lluís Batlle i Rossell viric at viric.name
Tue Apr 22 09:29:46 CEST 2014


Do you mean that gl worked for you in other distros? In previous NixOS versions?

Or it has always been like this?

On Tue, Apr 22, 2014 at 01:12:18AM +0200, 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.


More information about the nix-dev mailing list