[SOLVED] VE 5.1 host - how to turn off laptop screen?

den

Member
Feb 19, 2015
64
2
6
hi all.

I have VE 5.1 host installed on a spare laptop. How do i turn off laptop screen? I don't want the console message burned onto the laptop screen.

Thanks
 
Try something like:
Code:
setterm -blank 5
(time in minutes)

This should blank the console after 5 minutes, but is only working until the next reboot.
If this is wanted permanently add "consoleblank=5" to the kernel command line, i.e., open "/etc/default/grub" and add "consoleblank=300" (time in seconds) to the GRUB_CMDLINE_LINUX property, e.g.:
Code:
GRUB_CMDLINE_LINUX="consoleblank=300"

Then run "update-grub" to apply the new config for the next boot.

You may also want to try/read:
https://unix.stackexchange.com/a/32043
https://askubuntu.com/a/62861
https://wiki.archlinux.org/index.ph...S_interaction_in_a_Linux_console_with_setterm
 
excellent! sorted. btw, where is the rc-local file? i wanted to simply add "setterm -blank 5" to the bottom of a local startup file. where is it now?