Subject: [PATCH v2] gnu: linux-libre: Enable simpledrm driver.

From: Homo <[email-masked]>
Date: Mon, 16 Dec 2024 11:03:31 +0200

Without it GDM and Wayland don't work on unsupported GPUs.

Fixes <https://issues.guix.gnu.org/74390>

* gnu/packages/linux.scm (default-extra-linux-options): Enable
CONFIG_DRM, CONFIG_DRM_SIMPLEDRM and CONFIG_SYSFS_SIMPLEFB.
Disable CONFIG_FB_EFI and CONFIG_FB_SIMPLE.

Change-Id: Id4e8d595d56416581e1be5093a224a19cc2d3dfb
---
Changed commit log.

 gnu/packages/linux.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0fc2c4428a..67bcc5e6db 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -894,6 +894,12 @@ (define (default-extra-linux-options version)
     ("CONFIG_MEMCG_KMEM" . #t)
     ("CONFIG_CPUSETS" . #t)
     ("CONFIG_PROC_PID_CPUSET" . #t)
+    ;; Allow GDM and Wayland on unsupported GPUs.
+    ("CONFIG_DRM" . #t)
+    ("CONFIG_DRM_SIMPLEDRM" . #t)
+    ("CONFIG_SYSFB_SIMPLEFB" . #t)
+    ("CONFIG_FB_EFI" . #f)
+    ("CONFIG_FB_SIMPLE" . #f)
     ;; Allow disk encryption by default
     ("CONFIG_DM_CRYPT" . m)
     ;; Support zram on all kernel configs
-- 
2.46.0