Open vquintin opened 7 years ago
I also ran into the same issue and opened #59780 to fix it, but I always get the error reported by @SchrodingerZhu in #56729.
In #59780 @jD91mZM2 suggests setting this option:
boot.kernelPackages = pkgs.linuxPackages.extend (self: super: {
nvidia_x11 = super.nvidia_x11_legacy390;
});
But that still seems to cause problems and/or use the newest driver in some cases.
I'll try to investigate further
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Still important, stale bot
boot.kernelPackages = pkgs.linuxPackages.extend (self: super: { nvidia_x11 = super.nvidia_x11_legacy390; });
With this I'm able to use nvidia acceleration using primusrun
.
But only under root
or sudo
. But this seems to be a different unsolved problem.
I marked this as stale due to inactivity. → More info
But only under
root
orsudo
. But this seems to be a different unsolved problem.
This could be fixed by adding user to video
group tho I'm still getting
[ 3730.221820] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
but the error seems to be coming from socket.
I'm trying this on 20.09 on laptop which can only do legacy driver, no luck so far. Only managed to get prime.sync
mode running but offload doesn't seem to be supported with legacy driver.
Still important.
I marked this as stale due to inactivity. → More info
Still important
I marked this as stale due to inactivity. → More info
Still important, because Nvidia PRIME is not supported or older cards. Though, for some PRIME can work without offloading using dedicated card all the time.
Issue description
This is the first issue I fill on github, I hope I do it properly. When I install bumblebee on my Intel/Nvidia laptop, it installs the latest nvidia driver when it should use "nvidiaLegacy340". I have no way of specifying the version of nvidia drivers to use in bumblebee.
One possible fix would be to add values in the enum "hardware.bumblebee.driver" to allow specifying the driver version and adapt the code accordingly. Maybe this line should be modified to pass the driver version
Technical details
17.09.1502.19879836d1 (Hummingbird)
nix-env (Nix) 1.11.15
17.09.1502.19879836d1
build-use-sandbox = false