-
Notifications
You must be signed in to change notification settings - Fork 91
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
Graphics acceleration not loading with NixOS 24.05 #234
Comments
can confirm. same here |
I am experiencing the same issue. I also noticed that During the update, there was the following diff of packages (perhaps one of the removed packages is causing the problem):
|
I cannot reproduce this with a NixOS unstable + M2 Max + non-homemanger hyprland. Could someone post their kernel log? |
I use NixOS stable on an M1. Here is the kernel.log |
I believe the issue lies in the following error: |
My kernel log is different, but I am still encountering errors related to |
Here's mine, I also see the frequency error. kernel.log |
The issue does not seem to be related to
|
This is my kernel.log when switching to |
Does anyone have an idea about how to fix this dependency issue on stable 24.05? |
Same thing happens to me, Hyprland doesn't launch |
Do we know what packages are causing the issue? I can try various overlays in my flake if not. |
Setting
fixed this for me. (I'm also using unstable.) |
@mogery can't confirm. i have |
@mogery I have that set aswell, still does not load |
Are you on unstable nixpkgs or 24.05? Is that + unstable a universal workaround for now? |
I'm on 24.05 with a few unstable packages |
@mogery my workaround is to switch my $ sudo nix-channel --list
apple-silicon-support https://github.com/tpwrules/nixos-apple-silicon/archive/main.tar.gz
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable
nixos-unstable https://nixos.org/channels/nixos-unstable Note:
I wait until |
The issue probably is that NixOS 24.05 ships Rust 1.77, but kernel 6.10 requires Rust 1.78 for |
Wow, finding that must've been hell. Thank you! |
@lukaslihotzki You're spot on, thank you! I made a local overlay for the kernel:
and things work fine now. |
I am using hardware.asahi.useExperimentalGPUDriver = true; I get the following error, have anyone else encountered this? or have any good ways of fixing it/tracking it down?
The entire log, using `--show-trace`
Update:I figured it out, it is because I am using flakes. To make it comparable with flakes, one also needs to add hardware.asahi = {
useExperimentalGPUDriver = true;
experimentalGPUInstallMode = "overlay";
}; Source: nixos-apple-silicon/apple-silicon-support/modules/mesa/default.nix Lines 62 to 77 in c5f944f
|
@dvaerum I have |
What if there were two (This would tie in nicely with #182 (comment), that comment having a bit more details) |
Are you using flakes? Because I am using flakes and the documentation said that |
For flakes, one has to run nixos-rebuild with the |
Interesting @xeniagda, do you know if I can declare that inside flake as some variable? Something like {
flake-settings.impure = true;
inputs = { ... };
outputs = { ... };
} |
This is likely due to NixOS stable having a too-old version of Rust. As mentioned, stable support is on a best-effort basis. 24.11 is almost here so I do not plan to address this. If you need graphics acceleration before then, please downgrade the Apple Silicon support module. |
After updating to 2024-09-03 I'm getting issues loading the mesa driver:
LIBGL_DEBUG=verbose glxinfo -B
with 2024-07-31:LIBGL_DEBUG=verbose glxinfo -B
with 2024-09-03:The text was updated successfully, but these errors were encountered: