Meidokon Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Useful(?) links

  • furinkan's stuff

  • Postfix snippets


  • SystemInfo

  • This sidebar

Navigation

  • FrontPage
  • RecentChanges
  • FindPage
  • HelpContents
Revision 1 as of 2020-05-18 10:16:47
MeidokonWiki:
  • furinkan
  • linux
  • ConsoleBlanking

Sometimes you want to disable the console blanking out, because let's face it, we're mostly using headless servers now.

This seems to be a deeper terminal setting, and not so much a matter of invocation of the getty app itself. Given that, it's a little tricky. Everyone says to just run setterm from your bashrc, but that's not so helpful when NOBODY LOGS IN ON YOUR DAMNED VTs, MOSTLY.

Query with cat /sys/module/kernel/parameters/consoleblank, I don't know how/why this works if it's meant to be a per-VT thing.

  1. You can pass a kernel commandline option, should work well but feels like overkill. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash consoleblank=0"

  2. Put the magic control code inside /etc/issue, because pretty much everyone dumps that to the VT when it gets kicked into action. Super janky but should be perfect: TERM=linux setterm -blank 0 >> /etc/issue

This is really all setterm is doing, which is why you can pipe-append that to /etc/issue: echo -n -e "\033[9;0]"

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01
MoinMoin Release 1.9.11 [Revision release], Copyright by Juergen Hermann et al.