From ba9081b86ea2041f9c99ca2d403e851fa0cb12e5 Mon Sep 17 00:00:00 2001 From: ferreo Date: Tue, 29 Oct 2024 23:13:42 +0100 Subject: [PATCH] Update pika-nvidia-config/debian/postinst --- pika-nvidia-config/debian/postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pika-nvidia-config/debian/postinst b/pika-nvidia-config/debian/postinst index 4dfcf7d..2829d79 100644 --- a/pika-nvidia-config/debian/postinst +++ b/pika-nvidia-config/debian/postinst @@ -13,6 +13,17 @@ then sed -i "s#root=#nvidia-drm.modeset=1 root=#" /boot/refind_linux.conf fi fi + if cat /boot/refind_linux.conf | grep -i 'nvidia-drm.fbdev=1' > /dev/null 2>&1 + then + true + else + if cat /boot/refind_linux.conf | grep -i 'nvidia-drm.fbdev=0' > /dev/null 2>&1 + then + sed -i "s#nvidia-drm.fbdev=0#nvidia-drm.fbdev=1" /boot/refind_linux.conf + else + sed -i "s#root=#nvidia-drm.fbdev=1 root=#" /boot/refind_linux.conf + fi + fi else echo "Warning: You seem to not be using refind as a boot manager as PikaOS normally does, so make sure to add nvidia-drm.modeset=1 to your linux cmd if you have an nvidia card." fi \ No newline at end of file