1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>First off, this is about non-free stuff, I'll remove it if anyone asks me to, but I figured that reddit is not free either, so I guess it is not an official channel.</p> <p>Hello! I'm about to try out Guix System, but I have a dell xps 7590, with an nvidia card. To save power, I would like to be able to power the nvidia GPU completely off, when not in use, which I believe is known as prime offload. I had this set up with NixOS, and I thought this might also be possible with Guix and nonguix (and the vanilla linux kernel). Have anyone tried this? For reference, I put the relevant configuration I used in NixOS at the bottom, if anyone is familiar with that. It might also be possible to "translate" it to scheme, if anyone has experience with both nix and guix. Any help is greatly appreciated!</p> <p>Thanks!</p> <pre><code> # enable nvidia # https://github.com/NixOS/nixpkgs/issues/90152 services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia = { nvidiaPersistenced = true; prime = { offload.enable = true; # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA intelBusId = "PCI:0:2:0"; # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA nvidiaBusId = "PCI:1:0:0"; }; }; boot.extraModprobeConfig = "options nvidia \"NVreg_DynamicPowerManagement=0x02\"\n"; services.udev.extraRules = '' # Remove NVIDIA USB xHCI Host Controller devices, if present ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1" # Remove NVIDIA USB Type-C UCSI devices, if present ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1" # Remove NVIDIA Audio devices, if present ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1" # Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto" ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto" # Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on" ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on" ''; </code></pre> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/TheGrimDownvoter"> /u/TheGrimDownvoter </a> <br/> <span><a href="https://www.reddit.com/r/GUIX/comments/rm9jbk/nvidia_prime_offload/">[link]</a></span>   <span><a href="https://www.reddit.com/r/GUIX/comments/rm9jbk/nvidia_prime_offload/">[comments]</a></span> |