3

Linux server 后台有程序在运行的情况下,竟然无法关闭屏幕,救救孩子,阿里嘎多

 2 years ago
source link: https://www.v2ex.com/t/808395
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Linux

Linux server 后台有程序在运行的情况下,竟然无法关闭屏幕,救救孩子,阿里嘎多

  ETONG · 4 小时 20 分钟前 · 482 次点击

家里有一台服务器,ubuntu server 没有桌面环境的,然后接了个显示器和键盘,但是一直亮着屏幕感觉不舒服,显示器的位置不好,不想每次都手动关屏幕!就想等一分钟就自动关闭屏幕,然后敲击键盘就打开屏幕

上次问了大佬们也给了方案,执行代码:setterm --blank 1 。但是这个代码只有服务器在闲置的状态才有用,只要服务器在执行任务,就无法息屏,就一直亮着

所以想问一下有没有好办法,在不考虑换硬件的情况下(比如搞个小米智能插座用手机控制电源开关等等),就用代码能不能实现没有键盘输入的时候息屏呢?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK