Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

GNOME Shell 凍結無響應的兩種快速恢復方案

編輯:Linux 教學

現象

切換應用程式時 GNOME Shell 停止響應,鍵盤滑鼠無輸入,僅能移動滑鼠游標。

方案一:重啟 LightDM(影響較大)

  1. Ctrl+Alt+F1 切換至 TTY1
  2. 以 root 登入
  3. 執行:/etc/init.d/lightdm restart
  4. 重新圖形化登入

缺點:所有圖形介面程式將被終止,未儲存工作會遺失。

方案二:僅重啟 GNOME Shell(推薦)

  1. Ctrl+Alt+F1 切換至 TTY1,root 登入
  2. 查找進程:ps -ef | grep gnome-shell
  3. 終止進程:kill -9 <PID>
  4. GNOME Shell 會自動重啟,其他圖形程式完全不受影響

原理說明

GNOME Shell 由系統監控自動重生機制管理,單獨殺掉其進程會觸發重啟,不影響已運行的應用程式視窗與狀態。

預防建議

  • 定期更新顯卡驅動與 GNOME 套件
  • 避免同時運行過多擴展套件
  • 遇到頻繁凍結可檢查 ~/.xsession-errors 或 journalctl -u gdm 分析原因
Copyright © Windows教程網 All Rights Reserved