Как запустить команду использования черного экрана?

Я хочу сделать скрипт:

Использовать веб-камеру для управления моим монитором. Автозапуск Заставка Когда я ухожу.

Но я не понимаю, как запустить черный экран, используя скрипт или команду.

Я хочу сэкономить немного электричества.

0
задан 28 April 2019 в 00:47

1 ответ

Вы можете выключить экран с помощью команды:

xset dpms force off

Объяснение из man xset (только сокращенный фрагмент):

NAME
       xset - user preference utility for X

OPTIONS
       dpms flags...
               The  dpms option allows the DPMS (Energy Star) parameters to be
               set.  The option can take up to three numerical values, or  the
               `force'  flag  followed  by  a  DPMS  state.  The `force' flags
               forces the server to immediately switch to the DPMS state spec‐
               ified.   The  DPMS  state  can  be one of `standby', `suspend',
               `off', or `on'.  When numerical values are given, they set  the
               inactivity  period (in units of seconds) before the three modes
               are activated.  The first value  given  is  for  the  `standby'
               mode,  the  second  is for the `suspend' mode, and the third is
               for the `off' mode.  Setting these  values  implicitly  enables
               the DPMS features.  A value of zero disables a particular mode.
0
ответ дан 28 April 2019 в 00:47

Другие вопросы по тегам:

Похожие вопросы: