How to Determine if LCD Monitor is Turned on From Linux Command Line

前端 未结 8 807
南方客
南方客 2021-01-31 04:04

How do you tell if a computer\'s monitor(s) are turned on/off from the command line in Linux? I\'ve traditionally thought of monitors as output-only devices, but I\'ve noticed t

8条回答
  •  盖世英雄少女心
    2021-01-31 04:18

    You might want to look at the output of

    $ xset -q
    

    I'm not sure if it will work but I think the line " Monitor is (on|off)" should tell you the answer.

提交回复
热议问题