Hello!
I’m a bit of a nixos noob, so please bear with me. I’ve recently installed nixos on an ASUS X570-PLUS with a Radeon RX 7900 XT gpu. The bug I’m experiencing is that everything the GPU renders has cascading visual bug where everything on the screen leaves behind an artifact of itself. Strangely enough screenshots don’t capture it, so i’ve taken a picture:
I’ve followed the instructions in then amdgpu wiki and added these lines to my configuration.nix
:
boot.initrd.kernelModules = [ "amdgpu" ];
...
service.xserver.videoDrivers = [ "amdgpu" ];
Along side that I’m using the latest kernel packages:
boot.kernelPackages = pkgs.linuxPackagaes_latest;
Without this change the gpu is not detected.
Does anyone know why this bug might be happening? I can provide more detail if needed. Thanks in advance!
1 Like
Same issue here!
Did you figure it out?
I have had an RX 7900 XT since April and have never had this problem. I have been using nixos-unstable though, not 22.11. There’s a reasonable chance that could matter for the mesa driver.
1 Like
I ended waiting for drivers to be released to nixos unstable since this problem was far too complex for me. There’s more discussion in this thread:
opened 12:13PM - 24 Dec 22 UTC
closed 08:41AM - 22 Feb 23 UTC
0.kind: bug
### Describe the bug
Booting into system with Radeon RX 7900 XTX does not show … cursor nor has hardware acceleration.
### Steps To Reproduce
Steps to reproduce the behavior:
1. Instal Radeon RX 7900 XTX into system
2. Boot into graphical environment
### Expected behavior
A shown hardware cursor and hardware acceleration.
### Screenshots
N/A
### Additional context
Issue for tracking addition of new support.
### Notify maintainers
@K900 @LunNova (gathered from linux-firmware git blame)
### Metadata
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.1.0, NixOS, 23.05 (Stoat), 23.05pre436728.652e92b8064`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.12.0`
- channels(root): `"nixos"`
- channels(user): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
```
TL;DR - RDNA3 cards require Linux 6.2 and Mesa 22.3. And if you’re using Xorg you should use the following:
service.xserver.videoDrivers = [ "modesetting" ];
So you will need to use nixos-unstable
if you want to use the card.
1 Like