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?

Ubuntu24.04でGUIがブラックアウトしたときのメモ

Posted at

はじめに

Ubuntu24でGUIがブラックアウトしたときの備忘録をメモします。

環境

  • Ubuntu:24.04
  • Geforce RTX 3090

1. リカバリーモードで CUI を確保

GRUB → Advanced options
recovery mode
root - Drop to root shell

systemctl disable gdm3
systemctl set-default multi-user.target
reboot

👉 これで 必ず CUI 起動になる(安全地帯)

2. CUIで NVIDIA 関連を整理

sudo apt purge '^nvidia-.*'
sudo rm -f /etc/X11/xorg.conf
sudo rm -rf /etc/X11/xorg.conf.d/*
sudo update-initramfs -u
reboot

3.正規 NVIDIA ドライバを明示インストール

sudo apt update
ubuntu-drivers devices
sudo apt install nvidia-driver-535   # ← recommended の番号

4. Wayland を無効化(必須)

sudo nano /etc/gdm3/custom.conf


[daemon]
WaylandEnable=false

5. Xorg 設定を強制生成

sudo nvidia-xconfig

6. GUI を戻す

sudo systemctl set-default graphical.target
sudo systemctl enable gdm3
sudo reboot

7. 確認

ログイン画面が表示される

nvidia-smi が通る

おわりに

Ubuntu 24.04 + NVIDIA + Wayland = 事故りやすい

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?