Closed cx405 closed 6 years ago
Erm, @guibou ? :)
Thank you for the repport (Sorry for the delay, you know, life, bla bla bla ;)
I'll have a look tomorrow. I don't have this hardware, so I'll do a branch with guess work and ask for your tests. Thank you.
@guibou Hello, thank you very very much for giving the status update. Ofc, life.so is max priority, no questions. :)
Small status update: I have upgraded to 18.03 properly (through bricking, having nice guidance and then reinstalling), so I will update the issue above with newer cfg and then hibernate to life.so until I could be of assistance to you. :) :)
Until then!
I wonder something stupid. It seems that you are using the mesa driver? Did you tried nixGLIntel
which uses the mesa driver and may in fact works for your ati?
If I'm wrong and you are using the proprietary driver, have a look at PR #6.
Well, this is correct, if you mean the "radeon"(d1) driver, which uses mesa opengl library.
There is also "amdgpu"(d2) driver which also uses opengl library, and new "amdgpu-pro"(d3) driver that uses amd's own proprietary opengl library. The (d3) uses the same kernel driver as fully open (d2). If you don't count firmware, which all (d1,d2,d3) use.
I am willing to test any driver which can run on my card, however, to improve experience of nixos users. Open or not.
Now as to why I have found my way to nixGL - encountered #9415 *:
I am (still) a rookie/newbie in nixos and first thing I discovered is that:
1) Openarena
2) Urban Terror
games do not work properly.
They are both idtech-based, however (1) uses ioquake engine and (2) uses original idtech engine. The symptoms are similar:
1) starts in a window and immediately sets the screen into 1024x768 resolution (I have a 1920 24" monitor via hdmi here). The screen image does not seem to change at all.
After a minute the screen turns off and I can't even switch to tty (ctrl+f1) - however, I can blindly switch, blindly login and blindly reboot (init 6).
2) looks like it immediately starts in full screen and screen goes immediatly black with same symptoms.
Shared 1+2: if I reboot, the screen is ok until I login into kde (plasma5). The sddm(login manager) is ok, but after I put my credentials and hit enter - screen turns black and stays so even if I switch to tty. It could be said 1+2 brick kde resolution settings too.
I have written a script, that allows me to switch into tty after reboot, log in tty and clean the plasma5 kscreen configuration file. After that, screen is back to normal in plasma5.
Here it is: https://gist.github.com/cx405/701f3f36afe428fcf2cf8b235667ddc7
@cx405 Do I get it correctly that you use NixOS (not e.g. Nix on Ubuntu)? Because if you do nixGL
shouldn't be applicable for you -- you should set your drivers in services.xserver.videoDrivers
and it should Just Work. Given, last time I heard situation with closed-source AMD drivers on NixOS is dire (maybe situation has improved since) -- having somebody to at least test and report stuff would certainly be helpful.
@abbradar Yes, this is correct. I have this driver set. More precisely, I have this:
services.kmscon.hwRender = true;
services.xserver.videoDrivers = [ "radeon" ];
hardware.opengl.driSupport32Bit = true;
hardware.opengl.s3tcSupport = true;
hardware.opengl.extraPackages = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
hardware.opengl.extraPackages32 = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
..
users.extraUsers.userp.extraGroups =
[ "audio" "disk" "video" "wheel" "networkmanager" "systemd-journal" ];
...and I have the problems above :)
@cx405 Hm, it seems that this problem is not because your video drivers cannot be found but because something is broken in video drivers.
amdgpu
(replace radeon
with amdgpu
in videoDrivers
)? If not, try this and post your new glxinfo
results and check the games.glxgears
work?Also we should probably move away from this issue into a separate one in nixpkgs. Can you create one?
@abbradar 1. thanks for suggesting, I will try this today and report in 24hours. 2. yes, glxgears works. The openarena issue I posted, is the issue in my case. I though that this is the project to solve it.
Well, I have ubuntu, debian, arch and gentoo experience. I am pretty sure that I can find time to throw latest of ubuntu on spare hard drive, install nix and help you out with the tests.
@abbradar Sorry for the delay, it was something different! I have asked numerous people on #nixos IRC, nobody had a clue and researched web with no results. The solution is weird, one needs "ati" into
services.xserver.videoDrivers = [ "radeon" "ati" "vesa" ];
this "ati" is not an old driver, but xorg DDE driver (xf86-video-ati). Also weird that Xorg could boot without it and used "radeon" driver normally after failing to find it.
Well, I still have hardware and willing to contribute to nixGL, once you guys tell me which OS+driver combo I should install and the task to do, that is.
@cx405 Ouch, turns out there is no "radeon"
videoDrivers
entry at all! We have an old bug which is difficult to fix that allows one to specify a non-existent driver which is then silently ignored.
@abbradar Fair enough. However people would add less entries to that section, if it would be documented in the Nix wiki (or anywhere). Also wiki is not listed in https://nixos.org/nixos/support.html. At least a reference would be nice. :/
@cx405 Good call, can you open an issue for those?
@abbradar Sure, I am on it :)
NixGL Intel works perfectly for me with AMD
@xCuri0 Thank you, I suppose you use the open source AMD driver which comes with MESA. I updated a bit the README to explain that nixGLIntel
works for most mesa drivers.
I'm closing this bug as it appears that the problem you have is more related to the support of AMD by NixOS rather of the support of AMD by nixGL outside ouf NixOS.
Please, if you try your card outside of NixOS, have a look at pull request #6 to test the AMD support.
@guibou Yes I am using the Mess drivers since my GPU doesn't support AMDGPU-PRO and fglrx is no longer supported (it was filled with bugs anyways).
Someone needs to test with AMDGPU-PRO too
My environment (updated):
My hardware:
glxinfo (without extensions):
dmesg|grep -i radeon:
The link to card.