From 0286752fc3ea63dd2f1831847fa8e891690a8a3b Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Tue, 6 Aug 2024 10:11:05 +0200 Subject: [PATCH] chore: move kargs to modprobe.d --- includes.container/etc/abroot/kargs | 2 +- includes.container/etc/modprobe.d/nvidia-fbdev.conf | 1 + .../etc/modprobe.d/nvidia-graphics-drivers-kms.conf | 1 + .../etc/modprobe.d/nvidia-power-management.conf | 4 +++- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 includes.container/etc/modprobe.d/nvidia-fbdev.conf create mode 100644 includes.container/etc/modprobe.d/nvidia-graphics-drivers-kms.conf diff --git a/includes.container/etc/abroot/kargs b/includes.container/etc/abroot/kargs index 6f7ef8d..5535ffe 100644 --- a/includes.container/etc/abroot/kargs +++ b/includes.container/etc/abroot/kargs @@ -1 +1 @@ -quiet splash bgrt_disable $vt_handoff lsm=integrity nvidia-drm.modeset=1 \ No newline at end of file +quiet splash bgrt_disable $vt_handoff lsm=integrity diff --git a/includes.container/etc/modprobe.d/nvidia-fbdev.conf b/includes.container/etc/modprobe.d/nvidia-fbdev.conf new file mode 100644 index 0000000..fabc38f --- /dev/null +++ b/includes.container/etc/modprobe.d/nvidia-fbdev.conf @@ -0,0 +1 @@ +options nvidia-drm fbdev=1 \ No newline at end of file diff --git a/includes.container/etc/modprobe.d/nvidia-graphics-drivers-kms.conf b/includes.container/etc/modprobe.d/nvidia-graphics-drivers-kms.conf new file mode 100644 index 0000000..b1e8df2 --- /dev/null +++ b/includes.container/etc/modprobe.d/nvidia-graphics-drivers-kms.conf @@ -0,0 +1 @@ +options nvidia-drm modeset=1 \ No newline at end of file diff --git a/includes.container/etc/modprobe.d/nvidia-power-management.conf b/includes.container/etc/modprobe.d/nvidia-power-management.conf index 6f3618c..be7859a 100644 --- a/includes.container/etc/modprobe.d/nvidia-power-management.conf +++ b/includes.container/etc/modprobe.d/nvidia-power-management.conf @@ -1 +1,3 @@ -options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp/ \ No newline at end of file +options nvidia NVreg_PreserveVideoMemoryAllocations=1 +options nvidia NVreg_TemporaryFilePath=/var/tmp/ +options nvidia NVreg_DynamicPowerManagement=0x02 \ No newline at end of file