-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NixOS application are unable to find OpenGL drivers #93489
Comments
Confirmed that using the older mesa is required to cause the problem. If I remove the lines about |
I'll try to clear the confusion. There are in a fact 3 parts of a driver:
I think VMware is just the original author of the llvmpipe driver: it has nothing to do with virtualisation.
Can you check you don't have the You should also try forcing nouveau by setting |
Thanks for the info. Well, this explains why LLVM pipe is always available.
Didn't think otherwise, since it was after the vendor label
No effect.
But, I managed to partially fix the problem. Or rather, Nix did it for me. Since The rebuild downloaded so much stuff that I suspect it constitutes almost everything I've installed so far. Then I realised that I had added another channel since the last rebuild, so it apparently wanted to update the binaries to match with the Nix store. After rebooting, there were no graphical glithes. Even with only the integrated GPU, I'm seeing much better gaming performance. Since the discrete GPU is NVIDIA, does this mean specifying an unfree driver to |
That's not surprising considering nouveau is mostly written mostly by reverse engineering, while amdgpu is officially supported by AMD.
Well, I don't see you doing anything wrong and I would expect Mesa to pick up the correct driver, nouveau, so I would try opening an issue in the Mesa tracker. |
Sorry for the needlessly late reply.
No, I wasn't comparing AMDgpu to Nouveu, I was comparing it to LLVMPipe.
Thanks you. That's what I'm going to do when I get to that. I might first try to override the drivers with the unstable channel Mesa. If I happen to get Nouveau working that way, I'll leave a message here. But anyway, It seems be a Mesa issue, not a Nixpkgs one, so no reason to keep this issue open anymore. |
No, sorry, I didn't manage to get Nouveau working. I did some playing by prefixing application running command with Since I'm lazy I haven't actually reported the issue to Mesa. |
Thanks for reporting back @dukc . From my understanding the issue was a mismatch between mesa in upstream (nixpkg) versus compositor's version. Regarding wrong primary display adapter, I wasn't able to solve it either. Since you mentioned it, I removed my NVIDIA GPU and I can confirm that amdgpu/mesa driver is prone to hard crashing with DX12 games over Proton 8/7 :/ |
Had an another go trying to troubleshoot my Nouveau issue. Didn't get it working, but gained a bit of insight of the problem so decided to share it here. Someone was having very similar problems here. In the same spirit, I spent time reading my
. It does support some other chipsets though:
. Even earlier in the log it turns out it's because lack of firmware (a few non-Nouveau lines hand-removed from between):
. The strange thing is, I do have tu117 in I didn't come up with any fix attempts except explicitly enabling redistributable firmware, to no effect. |
Describe the bug
Despite having specified the wanted graphic drivers in
configuration.nix
:...the applications just fall back to llvmpipe (meaning, no GPU used at all):
Note that vmware does not even exist in the drivers I specified, yet the applications still find it somewhere. Needless to say, 3D-gaming is incredibly slow.
And running
hwinfo --gfxcard
somehow lists the drivers that I want to use, despiteglxinfo
being unable to do that:(It said this even before I added
services.xserver.videoDrivers
toconfiguration.nix
)To Reproduce
Steps to reproduce the behavior:
hwinfo --gfxcard
and add the drivers it says toservices.xserver.videoDrivers
Expected behavior
glxinfo
returning info for (at least) two renderers, one for each GPU. And programs to use them.Additional context
I don't know if this is related, but I post it in case it is. I have added this to
configuration.nix
to combat other problems I've had with OpenGL:EDIT: confirmed to be related.
I use an older Mesa because I had serious graphical glitches in xfce (starting from second login for each user account) with the current NixOS Mesa. This fixed it.
Metadata
"x86_64-linux"
Linux 5.4.44, NixOS, 20.03.2107.70717a337f7 (Markhor)
yes
yes
nix-env (Nix) 2.3.6
"nixpkgs-20.09pre234797.206dc0cfacd"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
Any help to get GPUs working appreciated.
The text was updated successfully, but these errors were encountered: