Despite running nixos for ~5 years now I am getting stuck from time to time. So this is a question to mostly understand how can I debug this issue rather than finding out a quick solution (might even not be one). Thanks for reading!
which, in my mind, made sense. But looks like wrong since it didnât change the error, still wanted to install the same broken version.
Then I tried to copy the bumblebee module and imported it locally in my config. Changing even the option name and the driver version. But system also did not care about it (even though I enabled only fixedbumblebee option this time) and complained about the same broken version (it didnât fail because of the option name etc. so this must mean I got it imported without issues).
I am missing something fundamental here. Could you point out why I canât make it work with these 2 methods?
What youâre trying to do now is replace your whole systemâs driver with 390 maybe not, but the user who suggested this had 390 as the system driver, already, so this might not work for this case.
The main problem according to GitHub issue the is i686 compatibility. A simple workaround is to replace bumblebeeâs nvidia_x11_i686 instead:
Thanks for the explanation. I missed the compatibility since it was failing even on my previous steps.
Applying your suggestion causederror: Package ânvidia-x11-560.31.02â in /nix/store/h60m1fwahjd2mv6gsg77ji3vb4gpj4dk-source/pkgs/os-specific/linux/nvidia-x11/generic.nix:238 is not available on the requested hostPlatform: but itâs pretty understandable.
Weird thing is, even though I add { nixpkgs.config.allowUnsupportedSystem = true; } it doesnât accept it. I still canât grasp why my explicit selections on the config does not apply fully when I want to override something around nvidia stuff.
Setting i686 stuff to null as 2nd suggestion seems to work though, at least nixos-rebuild does not complain.
Huh, it compiles, but gets a weird issue when I want to use primus:
Aug 14 17:16:15 splinter kernel: nvidia: module license 'NVIDIA' taints kernel.
Aug 14 17:16:15 splinter kernel: Disabling lock debugging due to kernel taint
Aug 14 17:16:15 splinter kernel: nvidia: module license taints kernel.
Aug 14 17:16:16 splinter kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511
Aug 14 17:16:16 splinter kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 555.58.02 Tue Jun 25 01:39:15 UTC 2024
Aug 14 17:16:16 splinter acpid[1402]: client connected from 5342[0:1]
Aug 14 17:16:16 splinter acpid[1402]: 1 client rule loaded
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (WW) Warning, couldn't open module mouse
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE) No devices detected.
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE)
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE) no screens found(EE)
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE)
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE) Please also check the log file at "/var/log/X.bumblebee.log" for additional information.
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE)
Aug 14 17:16:16 splinter bumblebeed[1417]: [XORG] (EE) Server terminated with error (1). Closing log file.
Aug 14 17:16:16 splinter bumblebeed[1417]: X did not start properly
mouse not found⊠alright⊠I think itâs trying to create a whole new X server with missing info?
I will try the production driver I guessâŠ
P.s. The other config which I mentioned as âworkingâ also failed another way:
Aug 14 17:04:50 splinter kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511
Aug 14 17:04:50 splinter kernel: NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:28a1)
NVRM: installed in this system is not supported by the
NVRM: NVIDIA 555.58.02 driver release.
NVRM: Please see 'Appendix A - Supported NVIDIA GPU Products'
NVRM: in this release's README, available on the operating system
NVRM: specific graphics driver download page at www.nvidia.com.
Aug 14 17:04:50 splinter kernel: nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
Aug 14 17:04:50 splinter kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
Aug 14 17:04:50 splinter kernel: NVRM: None of the NVIDIA devices were initialized.
Aug 14 17:04:50 splinter kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 511
Aug 14 17:04:50 splinter bumblebeed[1601]: Could not load GPU driver
despite itâs actually supported according to release notesâŠ
I wasnât using nvidia for long time but apparently not much changed.
Eh, I am coming from prime. My experience was a lot different on that front. Kernel panics, mixed up graphics (like 1/3rd of the sentence is not even rendered), lagging screens (e.g. no refresh of terminals until I press a button or move mouse over it) etcâŠ
At least I can trust what is on the screen with intel graphics.
Thanks for this. Iâve added, but not directly fixed the issue. The warning was also explaining that it detected the PCI bus and device correctly but for some reason itâs not supported.
At this point Iâm just randomly poking all variables
Itâs caused by the nvidia package itself, if youâre using a Linux kernel version > 6.1 it will be marked as broken. Maybe you can try to copy the package locally and remove this line:
Yeah but this is the version I do not like to use. That one doesnât support my card since itâs too old. I was trying to use the latest version.
Anyway, thanks for the effort. I am relatively happy with PRIME after recent minor upgrades on kernel and the driver. Not sure if Iâd like to dive into bumblebee anymore (since it looks stale a bit).