NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.93k stars 13.95k forks source link

Bumblebee with legacy nvidia driver #30185

Open vquintin opened 7 years ago

vquintin commented 7 years ago

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

fgaz commented 5 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

stale[bot] commented 4 years ago

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:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
fgaz commented 4 years ago

Still important, stale bot

AleXoundOS commented 4 years ago
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.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

sorki commented 3 years ago

But only under root or sudo. 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.

AleXoundOS commented 3 years ago

Still important.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

fgaz commented 3 years ago

Still important

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

AleXoundOS commented 2 years ago

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.