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
nouveau loaded with nvidia #29514
Comments
You don't need boot = {
extraModprobeConfig = "options nvidia-drm modeset=1";
initrd.kernelModules = [
"nvidia"
"nvidia_modeset"
"nvidia_uvm"
"nvidia_drm"
];
};
services.xserver.videoDrivers = [ "nvidia" ]; |
This seems to be loading but I'm getting an error
This happens even if I just set My laptop card uses optimus. Could that have something to do with it? |
I don't know - I don't have any optimus hardware. |
The switchable GPUs were always more complicated. I don't know details as I never had one, but I'd try things like https://nixos.org/nixos/manual/options.html#opt-hardware.bumblebee.enable |
(triage) @moaxcp , did you try bumblebee as mentioned by @vcunat ? It's indeed the solution I had found for optimus drivers last time I checked (a couple years ago): run everything on the integrated graphics card by default, and have the |
For what it's worth, I just tried to enable nvidia prime on my Dell Precision latop, too. and I ran into the exact same problem as @moaxcp: X would no longer start, complaining that no viable screen had been found. :-( |
@peti This is what I have setup https://github.com/moaxcp/etc-nixos/blob/master/configuration.nix#L44 |
Yeah, that setup finally worked for me, too, albeit with the latest nvidia driver rather than the legacy one. :-) BTW, does the original problem you reported in this PR still exist? I can set
and it works just fine on the current |
Good point maybe I should close this. |
Issue description
I'm trying to get nvidia working on my laptop. I have added nvidia_x11 to my configuration.
Steps to reproduce
Technical details
the module appears to blacklist nouveau but the kernal log show it being loaded before nvidia.
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)nix-env --version
)nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)grep build-use-sandbox /etc/nix/nix.conf
)The text was updated successfully, but these errors were encountered: