Blanking Console Screen

Hi,

How do I get the console screen to automatically go blank when there is no keyboard/mouse action for a period of time?
Right now, the console screen stays on forever.

By console, I mean the login screen right after I boot up the computer, and before I type "startx".

And this is a Thinkpad T440P laptop. Thanks!


$ uname -a
FreeBSD tb440.localhost 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC amd64
$
 
vidcontrol -t N where N is in seconds.
If that works, there should be a hook in /etc/rc.conf (or /etc/defaults/rc.conf) named blanktime or something that should get called from somewhere. It's been a while since I've tried or used it.
 
You could also poke around /etc/ttys.
The FreeBSD bsdinstaller script has a Hardening option for -Secure Console-
It should have a setting for time before it blanks.
As seen on line 84 of /usr/src/usr.sbin/bsdinstall/scripts/hardening
Code:
sed "s/unknown    off secure/unknown    off insecure/g" $BSDINSTALL_CHROOT/etc/ttys > $BSDINSTALL_TMPETC/ttys.hardening
 
Related thread:
 
Phishfry that's interesting. I believe vt is the default console device instead of syscons. And that it's been that way for a bit. Interesting. Implies folks are probably doing power related stuff (is there a console equivalent of the xset dpms?)
 
Ed Maste commented on that PR that a setting needs to be added.
On my 12.2 codebase it is fixed from my viewing.
Yet blanktime the setting does not work for me.
 
  • Like
Reactions: mer
Back
Top