藍屏是Windows的一大特點,但是桌面版的Linux也會死機。那死機後怎麼辦呢?
鍵盤和鼠標仍然有響應,但是窗口死了。
Ctrl+Alt+F1 切換到TTY,然後top命令找到cpu占用最高的PID,再kill -KILL PID。
鼠標鍵盤都沒有響應了
暴力方法
使用Reset或者常按Power鍵,這個和Windows的方法沒有區別。
使用sys rq鍵
一般鍵盤上都有sys rq鍵,台式機鍵盤一般和Prt sc共鍵,筆記本鍵盤一般和delete共鍵。
Sys Rq 是一種叫做系統請求的東西,用於直接向底層系統傳達指令。
使用Sys Rq可以安全地重啟計算機。
具體方法是:Sys Rq+ R+E+I+S+U+B
看起來有些繁瑣,解釋一下。
台式機鍵盤按Sys Rq需要使用Alt+Prt Sc而筆記本上使用Fn+Delete
REISUB各個字母的意義分別是:
R: Switch the keyboard from raw mode to XLATE mode
E: Send the SIGTERM signal to all processes except init
I: Send the SIGKILL signal to all processes except init
S: Sync all mounted filesystems
U: Remount all mounted filesystems in read-only mode
B: Immediately reboot the system, without unmounting partitions or syncing