-
Notifications
You must be signed in to change notification settings - Fork 80
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
Mesa build failure #143
Comments
Could you check if #142 fixes it for you? I was having mesa issues as well and that fixed it for me. |
Yes, I switched my flake url to ```
|
I just rebooted after applying that PR and now it appears I do NOT have working graphics acceleration. I am not sure what is wrong yet (and may not be able to investigate until after work). I can't launch kitty or alacrity at all, and everything in wayland is VERY sluggish. |
This should be fixed in the latest release. Not sure what is up with the acceleration. Please try the latest known good nixpkgs and version of this repo and file a new issue if problems remain. Also make sure your session manager selects a Wayland session if appropriate. |
I just rebuilt with the latest now that #142 has been merged, and that builds just fine but I am still not getting graphics acceleration after applying it. Here is the log when I start wayland:
|
Same symptom as #136 please try the steps indicated in that issue if applicable. |
hmmm my config works perfectly: { inputs, ... }: {
imports = [
../common
./hardware.nix
inputs.nixos-apple-silicon.nixosModules.apple-silicon-support
];
nixpkgs.overlays = [
inputs.nixos-apple-silicon.overlays.apple-silicon-overlay
(final: prev: { mesa = final.mesa-asahi-edge; })
];
hardware = {
asahi = {
addEdgeKernelConfig = true;
peripheralFirmwareDirectory = ./firmware;
useExperimentalGPUDriver = true;
experimentalGPUInstallMode = "driver";
withRust = true;
};
opengl.enable = true;
};
boot = {
consoleLogLevel = 0;
kernelParams = [ "apple_dcp.show_notch=1" ];
};
networking.hostName = "kitaro";
system.stateVersion = "23.05";
} |
I tried everything listed there with no luck ... (Sorry for the slow reply, I was out of town for the last few days) |
I haven't tried the edge stuff... I didn't see that in the docs anywhere. I am building it now, so fingers crossed. Is there documentation anywhere on that? I also didn't know bout the kernel option to show the notch. I assume those are documented by the asahi project? Guess I'd better go read up on some of those options too. |
I am not sure why, but applying changes based on @idm1try 's config has caused it to rebuild gtk-webkit and chromium... So, that is taking a while. I'll report success or failure when that is done. |
@minego because we replacing mesa package with |
Ah, yeah I do use network manager. I use chromium as well, but that isn't vital so I removed it for now. I will try to be patient and let this build :-) |
No dice. After letting that all build I still get the error about zink_dri.so not being found and libEGL fails to initialize. The entire gui is very laggy and things like kitty won't launch. |
what your window manager? i using sway |
dwl, which is wlroots like sway
…On Mon, Jan 22, 2024, at 10:36 AM, idm1try wrote:
> No dice. After letting that all build I still get the error about zink_dri.so not being found and libEGL fails to initialize. The entire gui is very laggy and things like kitty won't launch.
>
what your window manager? i using sway
—
Reply to this email directly, view it on GitHub <#143 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADSRCBCAMAX6YCARAXUSTDYP2PQFAVCNFSM6AAAAABB65F7V2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGQ4DOOJQGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This is my config at the moment btw... I'm pretty certain I have it matching what you suggested... https://github.com/minego/nixos-config/blob/apple-gpu/hosts/zaphod2/default.nix @idm1try |
Is it possible that my firmware needs to be updated? I can't think of anything else to try. It seems like this should be working... |
I tried with sway as well, and I am getting the same results with sway. |
As I said this seems to be the same issue as the one I linked. Home manager is the cause, or rather nix flakes + home manager. I think you are using the home manager packages and not the nixpkgs including the mesa override. I bet it works if you stop using home manager and just use the packages given from the nix flake in this repo. |
I've experimented with moving where I install things, and have been trying with install dwl, sway and HyperLand all from the main config and not home-manager... And, I've had But, to be sure I am now trying to rip out home manager entirely, at least as a test. I'll reply here after trying that. |
@rowanG077 Okay, I removed home-manager from my config and switched, and it looks like the error message changed...
This is now using the default kitty config (since I had been using the home-manager module) but I don't see any related options that were removed. |
For some reason kitty tries to use zink which it shouldn't. Please first try to get |
I have been having issues getting glxinfo to run with xwayland today, and I'm not sure why. I will try through x. Burr, everything is also very very laggy in dwl or sway.
…On Mon, Jan 22, 2024, at 4:42 PM, Rowan Goemans wrote:
For some kitty tries to use vulkan. Please first try to get `glinfo` to work and it showing the driver.
—
Reply to this email directly, view it on GitHub <#143 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADSRCEJNT6GAC2YAVV3KMDYP32P5AVCNFSM6AAAAABB65F7V2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGAZTEMBYGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
yes asahi needs firmware updates |
Is there an easy way to tell if my firmware is out of date? It looks like the process to update it is... not simple. If I am understanding correctly I need to:
Or, it looks like there is an asahi tool that the installer uses to extract the firmware. Maybe it is easier to just use that? If I need to boot the installer image then I will probably have to wait a day or two before I have time. |
@idm1try The result was the same errors I had been seeing, which suggests to me that the firmware or something else specific to my machine is at fault. I'm going to try to go through the process to update the firmware tonight, but I may not be able to find time due to work stuff today. |
update macos and what your macos version? and what your machine?(my is m1 pro mbp) |
I have all macOS updates installed. I have to use macOS for work from time to time, so I keep it updated. It is a macbook Pro 16" M2 Max. |
This morning I tried the following:
I'm seeing the same results:
Before the big recent mesa changes everything was working perfectly on this machine, including acceleration. |
Okay, I installed xfce so I can run X, so I can run
|
I'm running out of ideas of things to debug or try... So, this morning I decided to try HyperLand since I've seen that a number of other people here seem to be based on the comments in other issues.. So, I added
|
I just did a
nix flake update
andnixos-rebuild switch --flake ./#$(hostname)
to update my macbook pro, and got a failure building mesa:The failure is:
Details about my system:
The text was updated successfully, but these errors were encountered: