feat(Nvidia): force GPU on
This commit is contained in:
parent
298a562ace
commit
8fad2bda49
34
README.md
34
README.md
@ -89,31 +89,41 @@ env = WLR_NO_HARDWARE_CURSORS,1
|
|||||||
|
|
||||||
## Manage Nvidia power saving
|
## Manage Nvidia power saving
|
||||||
|
|
||||||
|
### Kernel command line parameters (Limine)
|
||||||
|
|
||||||
```bash
|
```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:
|
# add this to that file:
|
||||||
options nvidia NVreg_PreserveVideoMemoryAllocations=1
|
options nvidia-drm modeset=1
|
||||||
options nvidia NVreg_TemporaryFilePath=/var/tmp
|
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp NVreg_DynamicPowerManagement=0x02
|
||||||
options nvidia NVreg_DynamicPowerManagement=0x02
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Then rebuild and reboot
|
Then rebuild initramfs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
```
|
|
||||||
```
|
|
||||||
sudo mkinitcpio -P
|
sudo mkinitcpio -P
|
||||||
reboot
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## create udev rule to force GPU on
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo nvim /etc/limine-entry-tool.conf
|
sudo nvim /etc/udev/rules.d/80-nvidia-pm.rules
|
||||||
# add that line to KERNEL_CMDLINE: KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off"
|
# 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:
|
Rebuild initramfs just to be safe:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user