0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 24.04 で NVIDIA ドライバをGPGPU専用にしつつ、Waylandを有効にする方法

0
Posted at

はじめに

Ubuntu さんは気が利いていて、古いNVIDIAドライバを検出すると、Waylandセッションは有効にならず、自動的にX11セッションになります。

けれど、画面出力にはNVIDIA使わず、GPGPU専用にしようとしても、X11セッションになってしまいます。

これは、その動きの回避方法です。

TL;DR

/usr/lib/udev/rules.d/61-gdm.rules/etc/udev/rules.d へコピーし、次のように変更します。

--- /usr/lib/udev/rules.d/61-gdm.rules	2025-12-17 02:32:43.000000000 +0900
+++ /etc/udev/rules.d/61-gdm.rules	2026-02-24 17:00:58.158840621 +0900
@@ -71,14 +71,14 @@
 KERNEL!="nvidia_drm", GOTO="gdm_nvidia_drm_end"
 SUBSYSTEM!="module", GOTO="gdm_nvidia_drm_end"
 ACTION!="add", GOTO="gdm_nvidia_drm_end"
-# disable wayland if nvidia-drm modeset is not enabled
-ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
-# disable wayland for nvidia drivers versions lower than 470
-ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", GOTO="gdm_disable_wayland"
-# For nvidia drivers versions Above 510, prefer Xorg by default
-ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_prefer_xorg"
-# For nvidia drivers versions 470-495, prefer Xorg by default
-GOTO="gdm_prefer_xorg"
+## disable wayland if nvidia-drm modeset is not enabled
+#ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
+## disable wayland for nvidia drivers versions lower than 470
+#ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", GOTO="gdm_disable_wayland"
+## For nvidia drivers versions Above 510, prefer Xorg by default
+#ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_prefer_xorg"
+## For nvidia drivers versions 470-495, prefer Xorg by default
+#GOTO="gdm_prefer_xorg"
 LABEL="gdm_nvidia_drm_end"
 
 GOTO="gdm_end"

NVIDIAドライバ検出しても、Waylandを無効にならないように、X11を優先しないように、しています。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?