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?

More than 1 year has passed since last update.

ノートパソコンをサーバーとして利用したい場合に画面を開いたままの状態でも消灯する方法

Posted at

方法

色々とネットで調べたら方法自体はあるっぽいが結局一番使いやすかった方法を見つけたので忘れても大丈夫なように書いておくよ

crontabとかで起動時実行するようにしてみるのもありかもしれないですね

OFFにする場合

if [ $# -eq 0 ]; then
    sleep 0
else
    sleep "$1"
fi

su -c "echo 0 > /sys/class/backlight/intel_backlight/brightness"

ONにする場合

su -c "echo 0 > /sys/class/backlight/intel_backlight/brightness"

まとめ

バリ簡単ですね!!!
他にもいいやり方がたくさんあると思うので皆さん教えて下さい。

最後にTwitterのフォローや他の記事もよろしくお願いします。

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?