The kernel has support for powering down your monitor. You can
activate this support by compiling and running the program in the
quote section of linux/drivers/char/vesa_blank.c
There are various strings you can echo to the terminal to set screen
blanking and monitor powerdown. The string ESC[9;10] sets the
blanking time to ten minutes. The string ESC[14;45] will power down
the monitor after 45 minutes of inactivity at the keyboard, if your
monitor supports this.
I have gotton these escape sequences to work just fine if I'm logged
in to the linux console. However, they will not work in an Xterm.
Even if you log into the linux console and run the escape sequences
there, it no longer works when you switch back to the X session. I
would like to be able to call these escape sequences from my
.bash_profile, so that monitor power down is set automatically when
I log into an Xterm.
Is there a secret to echoing these escape sequences in an Xterm, or
any other alternative?
Tom Ed White