Re: Switching off monitor

2021-03-31 Thread Samuel Thibault
Sebastian Humenda, le mer. 31 mars 2021 21:12:57 +0200, a ecrit:
> Samuel Thibault schrieb am 31.03.2021, 20:43 +0200:
> >Samuel Thibault, le mer. 31 mars 2021 20:39:36 +0200, a ecrit:
> >> Sebastian Humenda, le mer. 31 mars 2021 20:34:44 +0200, a ecrit:
> >> > I'm working on the console (TTY) and am using Tmux, hence neither xset 
> >> > nor
> >> > setterm work for me.
> >> 
> >> You can probably use
> >> 
> >> sudo bash -c "setterm -blank < /dev/tty1 > /dev/tty1"
> >
> >I forgot: add TERM=linux
> 
> Thanks for the reply. I cannot see the effects of the command, but at least
> the backlight of the laptop monitor is still on. It might be still useful for
> privacy reasons.

Thinking twice: perhaps -blank is not enough, and you need -blank=force,
some people on the list probably know better.

Samuel



Re: Switching off monitor

2021-03-31 Thread Sebastian Humenda
Hi again

Sebastian Humenda schrieb am 31.03.2021, 21:12 +0200:
>>> sudo bash -c "setterm -blank < /dev/tty1 > /dev/tty1"
>>I forgot: add TERM=linux

After searching the web for a bit, I stumbled over brightnessctl:

$ sudo apt install brightnessctl
$ brightnessctl s 0%

VoilĂ , the screen is dark :). I'll add it to the wiki.

Cheers
Sebastian


signature.asc
Description: PGP signature


Re: Switching off monitor

2021-03-31 Thread Sebastian Humenda
Hi Samuel

Samuel Thibault schrieb am 31.03.2021, 20:43 +0200:
>Samuel Thibault, le mer. 31 mars 2021 20:39:36 +0200, a ecrit:
>> Sebastian Humenda, le mer. 31 mars 2021 20:34:44 +0200, a ecrit:
>> > I'm working on the console (TTY) and am using Tmux, hence neither xset nor
>> > setterm work for me.
>> 
>> You can probably use
>> 
>> sudo bash -c "setterm -blank < /dev/tty1 > /dev/tty1"
>
>I forgot: add TERM=linux

Thanks for the reply. I cannot see the effects of the command, but at least
the backlight of the laptop monitor is still on. It might be still useful for
privacy reasons.

Thanks
Sebastian


signature.asc
Description: PGP signature


Re: Switching off monitor

2021-03-31 Thread Samuel Thibault
Samuel Thibault, le mer. 31 mars 2021 20:39:36 +0200, a ecrit:
> Sebastian Humenda, le mer. 31 mars 2021 20:34:44 +0200, a ecrit:
> > I'm working on the console (TTY) and am using Tmux, hence neither xset nor
> > setterm work for me.
> 
> You can probably use
> 
> sudo bash -c "setterm -blank < /dev/tty1 > /dev/tty1"

I forgot: add TERM=linux

sudo bash -c "TERM=linux setterm -blank < /dev/tty1 > /dev/tty1"

Samuel



Re: Switching off monitor

2021-03-31 Thread Samuel Thibault
Sebastian Humenda, le mer. 31 mars 2021 20:34:44 +0200, a ecrit:
> I'm working on the console (TTY) and am using Tmux, hence neither xset nor
> setterm work for me.

You can probably use

sudo bash -c "setterm -blank < /dev/tty1 > /dev/tty1"

Samuel