[kwin] Failed to open drm node: "" <-- empty value but "/dev/dri/card0" is expected.

It’s strange that kwin finds no drm node but an empty value. Please help.

Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: "kwin_core: Failed to open drm node: \"\"\nkwin_scene_opengl: couldn't find dev node for drm device \n"

Full logs here:

~ $ lspci | grep VGA
05:00.0 VGA compatible controller: NVIDIA Corporation AD107 [GeForce RTX 4060] (rev a1)

~ $ ls -l /dev/dri/
total 0
drwxr-xr-x  2 root root         80 Aug  1 12:11 by-path/
crw-rw----+ 1 root video  226,   0 Aug  1 12:11 card0
crw-rw-rw-  1 root render 226, 128 Aug  1 12:11 renderD128

~ $ cat /etc/group | grep sddm
render:x:989:user,sddm
video:x:985:user,sddm
sddm:x:968:

~ $ journalctl | grep sddm
Aug 01 12:11:08 onebox sddm[509]: Initializing...
Aug 01 12:11:08 onebox sddm[509]: Starting...
Aug 01 12:11:08 onebox sddm[509]: Logind interface found
Aug 01 12:11:08 onebox sddm[509]: Adding new display...
Aug 01 12:11:08 onebox sddm[509]: Loaded empty theme configuration
Aug 01 12:11:08 onebox sddm[509]: Using VT 1
Aug 01 12:11:08 onebox sddm[509]: Display server started.
Aug 01 12:11:08 onebox sddm[509]: Socket server starting...
Aug 01 12:11:08 onebox sddm[509]: Socket server started.
Aug 01 12:11:08 onebox sddm[509]: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
Aug 01 12:11:08 onebox sddm[509]: Greeter starting...
Aug 01 12:11:08 onebox sddm-helper[514]: [PAM] Starting...
Aug 01 12:11:08 onebox sddm-helper[514]: [PAM] Authenticating...
Aug 01 12:11:08 onebox sddm-helper[514]: [PAM] returning.
Aug 01 12:11:08 onebox sddm-helper[514]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=968) by (uid=0)
Aug 01 12:11:08 onebox systemd-logind[489]: New session c1 of user sddm.
Aug 01 12:11:08 onebox (systemd)[521]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[sddm] ruser=[<unknown>] rhost=[<unknown>]
Aug 01 12:11:08 onebox systemd-logind[489]: New session 1 of user sddm.
Aug 01 12:11:08 onebox sddm-helper[535]: Jumping to VT 1
Aug 01 12:11:08 onebox sddm-helper[535]: VT mode fixed
Aug 01 12:11:08 onebox sddm[509]: Greeter session started successfully
Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: Starting Wayland process "kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1" "sddm"
Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: started succesfully "kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1"
Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: Directory "/run/user/968" has changed, checking for Wayland socket
Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: Found Wayland socket "/run/user/968/wayland-0"
Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: "Accepting client connections on sockets: QList(\"wayland-0\")\n"
Aug 01 12:11:08 onebox sddm-greeter-qt6[549]: High-DPI autoscaling Enabled
Aug 01 12:11:08 onebox sddm-helper-start-wayland[535]: "kwin_core: Failed to open drm node: \"\"\nkwin_scene_opengl: couldn't find dev node for drm device \n"