From 8fad2bda491b083f8bee27ffb0eb6cecb4d147bf Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Thu, 29 Jan 2026 20:01:53 +0100 Subject: [PATCH] feat(Nvidia): force GPU on --- README.md | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6ae204c..def1660 100644 --- a/README.md +++ b/README.md @@ -89,31 +89,41 @@ env = WLR_NO_HARDWARE_CURSORS,1 ## Manage Nvidia power saving +### Kernel command line parameters (Limine) + ```bash -sudo nvim /etc/modprobe.d/nvidia-pm.conf +sudo nvim /etc/default/limine +# add this to file +KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off" +``` + ++= should append the changes to the curernt kernel settings + +```bash +sudo nvim /etc/modprobe.d/nvidia.conf # add this to that file: -options nvidia NVreg_PreserveVideoMemoryAllocations=1 -options nvidia NVreg_TemporaryFilePath=/var/tmp -options nvidia NVreg_DynamicPowerManagement=0x02 +options nvidia-drm modeset=1 +options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp NVreg_DynamicPowerManagement=0x02 ``` -Then rebuild and reboot +Then rebuild initramfs + ```bash -``` -``` sudo mkinitcpio -P -reboot ``` +## create udev rule to force GPU on ```bash -sudo nvim /etc/limine-entry-tool.conf -# add that line to KERNEL_CMDLINE: KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off" +sudo nvim /etc/udev/rules.d/80-nvidia-pm.rules +# add this to file: +# Keep NVIDIA GPU always on +ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", ATTR{power/control}="on" +sudo reboot ``` -Omarchy will merge with current defaults -### Rebuild Limine entries / UKI +## Rebuild Limine entries Rebuild initramfs just to be safe: