feat(Nvidia): force GPU on

This commit is contained in:
Łukasz Boryń 2026-01-29 20:01:53 +01:00
parent 298a562ace
commit 8fad2bda49

View File

@ -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: