emacs/var/elfeed/db/data/cd/cd61652bb0bb12fa50383bfa481ca2db511da003
2022-01-03 12:49:32 -06:00

1 line
3.3 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>First off, this is about non-free stuff, I&#39;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&#39;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 &quot;translate&quot; 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 = [ &quot;nvidia&quot; ]; 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 = &quot;PCI:0:2:0&quot;; # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA nvidiaBusId = &quot;PCI:1:0:0&quot;; }; }; boot.extraModprobeConfig = &quot;options nvidia \&quot;NVreg_DynamicPowerManagement=0x02\&quot;\n&quot;; services.udev.extraRules = &#39;&#39; # Remove NVIDIA USB xHCI Host Controller devices, if present ACTION==&quot;add&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x0c0330&quot;, ATTR{remove}=&quot;1&quot; # Remove NVIDIA USB Type-C UCSI devices, if present ACTION==&quot;add&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x0c8000&quot;, ATTR{remove}=&quot;1&quot; # Remove NVIDIA Audio devices, if present ACTION==&quot;add&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x040300&quot;, ATTR{remove}=&quot;1&quot; # Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind ACTION==&quot;bind&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x030000&quot;, TEST==&quot;power/control&quot;, ATTR{power/control}=&quot;auto&quot; ACTION==&quot;bind&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x030200&quot;, TEST==&quot;power/control&quot;, ATTR{power/control}=&quot;auto&quot; # Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind ACTION==&quot;unbind&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x030000&quot;, TEST==&quot;power/control&quot;, ATTR{power/control}=&quot;on&quot; ACTION==&quot;unbind&quot;, SUBSYSTEM==&quot;pci&quot;, ATTR{vendor}==&quot;0x10de&quot;, ATTR{class}==&quot;0x030200&quot;, TEST==&quot;power/control&quot;, ATTR{power/control}=&quot;on&quot; &#39;&#39;; </code></pre> </div><!-- SC_ON --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/GUIX/comments/rm9jbk/nvidia_prime_offload/">[comments]</a></span>