在控制台中顯示電源管理

在控制台中顯示電源管理

在控制台中(即不在 Gnome 或 KDE 中)時,如果不活動,顯示屏將自動關閉。我覺得應該是30分鐘左右。這種電源管理完全獨立於 X 伺服器,並且在沒有安裝 X 伺服器時確實可以工作。它似乎完全獨立於用戶空間工作。

它可能是由內核完成的嗎?

有人可以解釋一下這個電源管理來自哪裡以及如何配置它(即更改超時等)。

我正在使用 Debian Wheezy

答案1

您可以使用setterm -blank X(X 是分分鐘)。從man setterm

-blank [0-60|force|poke] (virtual consoles only)
       Sets the interval of inactivity, in minutes,  after  which  the
       screen  will be automatically blanked (using APM if available).
       Without an argument, gets the blank status  (returns  which  vt
       was blanked or zero for unblanked vt).

       The force option keeps screen blank even if a key is pressed.

       The poke option unblank the screen.

或者,您可以設定核心參數consoleblank=Y(Y 為這裡)。consoleblank=0禁用消隱。

相關內容