티스토리 뷰
Linux disable screen blanking i.e. preventing screen going blank
알 수 없는 사용자 2011. 3. 28. 11:57Source : http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html
It is easy to disable screen saver under X window. But when it comes to text based login or terminal you will not find easy way to disable text based power saving mode (i.e. when your screen goes blank after a few minutes).
So how do I disable the blank screen mode, which activated after a few minutes? Answer is usesetterm command.
setterm writes to standard output a character string that will invoke the specified terminal capabilities. Where possible terminfo database (terminfo is a data base describing terminals, used by screen-oriented programs and libraries such as ncurses) is consulted to find the string to use.
By default, the Linux kernel will use screen-save option to disable it you need to type command (it turns off monitor VESA powersaving features):
$ setterm -powersave off -blank 0
If it dumps back you with an error that read as follows:
cannot (un)set powersave mode
You need to shutdown X window system and rerun the above command. Better, add following two commands to your ~/.xinitrc file:
setterm -blank 0 -powersave off -powerdown 0
xset s off
Other useful options
This command also supports other useful options:
Resets the terminal to its power on state:
$ setterm -reset
Alternatively, initialize terminal:
$ setterm -initialize
Turns the terminal's cursor on or off:
$ setterm -cursor [on|off]
Turns automatic line-wrapping on or off (virtual consoles only)
$ setterm -linewrap [on|off]
Sets the foreground text color (virtual consoles only):
$ setterm -foreground blue
Sets the background text color (virtual consoles only):
$ setterm -background red
Enables or disables the sending of kernel printk() messages to the console (virtual consoles only). Useful if you get lots message from iptables firewall:
$ setterm -msg [on|off]
I regularly use these (above) options.
See also:
- Please consult the setterm and terminfo man pages for more information.
'Application > Linux' 카테고리의 다른 글
그래픽카드 드라이버 깔기 (0) | 2011.05.05 |
---|---|
Ubuntu에서 찾을 수 있는 avr 프로그래밍 관련 소프트웨어 (0) | 2011.04.20 |
Extreme Summit 200-48 Switch 콘솔케이블 (0) | 2011.03.21 |
Linux에서 여러 파일 중 특정 문자열 찾기 및 바꾸기 (0) | 2011.03.09 |
우분투 update-apt-xapi 비활성화 (0) | 2011.02.11 |
- Total
- Today
- Yesterday
- Mabinogi
- Military
- Web Programming
- Embedded System
- Information Processor
- cartoon
- 막장로그
- wallpaper
- 프리랜서로 살아남는 법
- Life News
- 야마꼬툰
- humor
- Assembly
- diary
- WDB
- network
- Linux
- C#
- Tech News
- 나비효과
- console
- USB Lecture
- BadCode
- 3D Engine
- Battle
- Network Inspector
- Reverse Engineering
- 짤방 및 아이콘
- medical
- win32
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |