From 6b115b7850fd0d2a28e30cc86339e5ec34e8f74f Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Wed, 31 Jul 2024 23:26:11 +0200 Subject: [PATCH 1/3] chore: use nvidia-kernel-open module (should fix some issues with multiple-monitors) --- recipe.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe.yml b/recipe.yml index a67809a..d75facf 100644 --- a/recipe.yml +++ b/recipe.yml @@ -25,8 +25,8 @@ stages: - curl -fSsL https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub | gpg --dearmor -o /usr/share/keyrings/nvidia-drivers.gpg - echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /' > /etc/apt/sources.list.d/nvidia-drivers.list - apt-get update - - apt-get install nvidia-driver nvidia-vaapi-driver nvidia-settings nvidia-smi -y - - apt-mark hold nvidia-driver nvidia-vaapi-driver nvidia-settings nvidia-smi + - apt-get install nvidia-kernel-open nvidia-driver nvidia-vaapi-driver nvidia-settings nvidia-smi -y + - apt-mark hold nvidia-kernel-open nvidia-driver nvidia-vaapi-driver nvidia-settings nvidia-smi - name: extra-utilities type: apt From 73c55825eceb57eab7a662fa23c3191f8b2b3ac7 Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Thu, 1 Aug 2024 18:16:41 +0200 Subject: [PATCH 2/3] chore: remove enable-wayland module --- recipe.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/recipe.yml b/recipe.yml index d75facf..73027f5 100644 --- a/recipe.yml +++ b/recipe.yml @@ -56,12 +56,6 @@ stages: - chmod +x /usr/bin/nrun - chmod +x /usr/bin/prime-switch - - name: enable-wayland - type: shell - commands: - - mkdir -p /etc/udev/rules.d - - ln -s /dev/null /etc/udev/rules.d/61-gdm.rules - - name: cleanup type: shell commands: From 9d6aa9f06487114a76d03c22c7d91cf18c9dafa2 Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Thu, 1 Aug 2024 18:26:46 +0200 Subject: [PATCH 3/3] chore: Add extra NVIDIA kernel parameters - enable fine-grained dynamic power management with NVreg_DynamicPowerManagement=0x02 - ensure video memory allocations are preserved across sleep cycles with NVreg_PreserveVideoMemoryAllocations=1 - set temporary file path for NVIDIA drivers to /var/tmp for improved file handling during power management - enable framebuffer device emulation with nvidia-drm.fbdev=1 to maintain console visibility during early boot (might not be necessary) --- includes.container/etc/abroot/kargs | 1 + 1 file changed, 1 insertion(+) create mode 100644 includes.container/etc/abroot/kargs diff --git a/includes.container/etc/abroot/kargs b/includes.container/etc/abroot/kargs new file mode 100644 index 0000000..6282b76 --- /dev/null +++ b/includes.container/etc/abroot/kargs @@ -0,0 +1 @@ +quiet splash bgrt_disable $vt_handoff lsm=integrity nvidia.NVreg_DynamicPowerManagement=0x02 nvidia.NVreg_PreserveVideoMemoryAllocations=1 nvidia.NVreg_TemporaryFilePath=/var/tmp nvidia-drm.fbdev=1