Re: Disabling laptop display & turning off suspend on lid close
On Nov 22 09:05:38, unic...@disroot.org wrote: > I am currently setting up my ThinkPad X220 as a server Not a good idea. The laptop parts are not designed to be running 24/7 years. Why don't you get an actual server hardware? Depending on your exact needs, you might foind it dirt cheap. > and wish to disable the integrated display as it is anyway and will not > be used. Unplug the display cable. > I am not familiar with how the underlying systems work Why do you want to use such a system for a server then? Jan
Re: Disabling laptop display & turning off suspend on lid close
On Fri, 2019-11-22 at 09:53 +0100, Gabriel Kihlman wrote: > Unicorn writes: > > Still would like to know how to turn the display off, have not > > figured > > that out yet ;) > > If you are not starting X, this is enough: > > $ cat /etc/wsconsctl.conf > display.screen_off=10 > display.vblank=on > display.kbdact=on > display.msact=on > display.outact=off > > See the FAQ (Blanking an Inactive Console): > https://www.openbsd.org/faq/faq7.html > > Excerpt for your convenience: > > " > display.screen_off determines the blanking time in milliseconds. > display.kbdact if set to on, keyboard activity will unblank the > screen. > display.msact if set to on, console mouse activity will unblank the > screen. > display.outact if set to on, screen output will unblank the screen. > display.vblank if set to on will disable the vertical sync pulse. > This will cause many monitors to go into an energy saver mode. > " > > /gabriel > > Have a look at wsconsctl.conf(5). Might be relevant. > > -- > > / Raimo Niskanen, Erlang/OTP, Ericsson AB > Thank you, this is what I was looking for! :) I am sorry for not mentioning that I am not running X and not intending to. I did search online (only finding X related solutions) and stumbled upon wsdisplay after searching through manpages for a while, but there was too much terminology and system knowledge that I did not know about for me to conclude what exactly I need to do. Next time I will try to include more context to avoid confusion though. :) Thanks again and all the best, Unicorn
Re: Disabling laptop display & turning off suspend on lid close
Mathijs Hengst writes: > > You can turn off the screen via X: > > xset dpms force off > > (I found this on google in 2/3 minutes, so you might want to improve > your google-foo.) It looks to me like his google-foo is working just fine. Question asked and answered, no? Matthew
Re: Disabling laptop display & turning off suspend on lid close
On Fri, 2019-11-22 at 09:05 +0100, Unicorn wrote: Hello, I am currently setting up my ThinkPad X220 as a server running OpenBSD and wish to disable the integrated display as it is anyway and will not be used. Equally, I wish for the ThinkPad to not suspend when I close the lid, as the lid will be closed practically all the time. :) I am not familiar with how the underlying systems work so I had trouble figuring out a solution myself, and searching online sadly did not give me working results. Any help is thus greatly appreciated! Best, Unicorn Okay, by trial and error I found the sysctl setting machdep.lidaction=0 turns off suspend on closing lid, and I figured out I need to add it to /etc/sysctl.conf to make it permanent, so I'm sorry for the early question about that :) Still would like to know how to turn the display off, have not figured that out yet ;) Best, Unicorn You can turn off the screen via X: xset dpms force off (I found this on google in 2/3 minutes, so you might want to improve your google-foo.)
Re: Disabling laptop display & turning off suspend on lid close
Unicorn writes: > > Still would like to know how to turn the display off, have not figured > that out yet ;) If you are not starting X, this is enough: $ cat /etc/wsconsctl.conf display.screen_off=10 display.vblank=on display.kbdact=on display.msact=on display.outact=off See the FAQ (Blanking an Inactive Console): https://www.openbsd.org/faq/faq7.html Excerpt for your convenience: " display.screen_off determines the blanking time in milliseconds. display.kbdact if set to on, keyboard activity will unblank the screen. display.msact if set to on, console mouse activity will unblank the screen. display.outact if set to on, screen output will unblank the screen. display.vblank if set to on will disable the vertical sync pulse. This will cause many monitors to go into an energy saver mode. " /gabriel
Re: Disabling laptop display & turning off suspend on lid close
On Fri, Nov 22, 2019 at 09:45:44AM +0100, Unicorn wrote: > On Fri, 2019-11-22 at 09:28 +0100, Claus Assmann wrote: > > On Fri, Nov 22, 2019, Unicorn wrote: > > > > > Still would like to know how to turn the display off, have not > > > figured > > > that out yet ;) > > > > man xset > > > > Not sure if this is what you want (yes, it's ugly): > > > > #!/bin/sh > > if test $# -ge 1 > > then > > TO=$1 > > else > > TO=300 > > fi > > xset s $TO > > xset s blank > > if test $# -lt 1 > > then > > xset dpms 500 660 900 > > fi > > > > Thank you for the suggestion! > > Will using xset work without running X? I intended to not use X as I am > just trying to set up a simple mailserver. :) > > Best, > > Unicorn Have a look at wsconsctl.conf(5). Might be relevant. -- / Raimo Niskanen, Erlang/OTP, Ericsson AB
Re: Disabling laptop display & turning off suspend on lid close
On Fri, 2019-11-22 at 09:28 +0100, Claus Assmann wrote: > On Fri, Nov 22, 2019, Unicorn wrote: > > > Still would like to know how to turn the display off, have not > > figured > > that out yet ;) > > man xset > > Not sure if this is what you want (yes, it's ugly): > > #!/bin/sh > if test $# -ge 1 > then > TO=$1 > else > TO=300 > fi > xset s $TO > xset s blank > if test $# -lt 1 > then > xset dpms 500 660 900 > fi > Thank you for the suggestion! Will using xset work without running X? I intended to not use X as I am just trying to set up a simple mailserver. :) Best, Unicorn
Re: Disabling laptop display & turning off suspend on lid close
On Fri, Nov 22, 2019, Unicorn wrote: > Still would like to know how to turn the display off, have not figured > that out yet ;) man xset Not sure if this is what you want (yes, it's ugly): #!/bin/sh if test $# -ge 1 then TO=$1 else TO=300 fi xset s $TO xset s blank if test $# -lt 1 then xset dpms 500 660 900 fi -- Address is valid for this mailing list only.
Re: Disabling laptop display & turning off suspend on lid close
On Fri, 2019-11-22 at 09:05 +0100, Unicorn wrote: > Hello, > > I am currently setting up my ThinkPad X220 as a server running > OpenBSD > and wish to disable the integrated display as it is anyway and will > not > be used. > > Equally, I wish for the ThinkPad to not suspend when I close the lid, > as the lid will be closed practically all the time. :) > > I am not familiar with how the underlying systems work so I had > trouble > figuring out a solution myself, and searching online sadly did not > give > me working results. Any help is thus greatly appreciated! > > Best, > > Unicorn Okay, by trial and error I found the sysctl setting machdep.lidaction=0 turns off suspend on closing lid, and I figured out I need to add it to /etc/sysctl.conf to make it permanent, so I'm sorry for the early question about that :) Still would like to know how to turn the display off, have not figured that out yet ;) Best, Unicorn
Re: Disabling laptop display & turning off suspend on lid close
Unicorn wrote: > Hello, > > I am currently setting up my ThinkPad X220 as a server running OpenBSD > and wish to disable the integrated display as it is anyway and will not > be used. > > Equally, I wish for the ThinkPad to not suspend when I close the lid, > as the lid will be closed practically all the time. :) > > I am not familiar with how the underlying systems work so I had trouble > figuring out a solution myself, and searching online sadly did not give > me working results. Any help is thus greatly appreciated! Interesting. I searched on google and found the openbsd source code, so you can probably succeed if you try hard enough.
Disabling laptop display & turning off suspend on lid close
Hello, I am currently setting up my ThinkPad X220 as a server running OpenBSD and wish to disable the integrated display as it is anyway and will not be used. Equally, I wish for the ThinkPad to not suspend when I close the lid, as the lid will be closed practically all the time. :) I am not familiar with how the underlying systems work so I had trouble figuring out a solution myself, and searching online sadly did not give me working results. Any help is thus greatly appreciated! Best, Unicorn