LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-12-2008, 08:45 AM   #1
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
trying to disable screen "blanking"


I'm a slack user who is having to manage an Archlinux machine. I posted this question with no help on the archlinux forums, so am hoping any fellow slacker can offer some advice.

On the arch machine, which does not have X installed, the virtual consoles will go blank after 10-15 minutes. Googling revealed the culprit may be the 'setterm' command in a startup script. However, there is no 'setterm' command being issued anywhere that I can see - and I've searched the entire HD.

When I login to a virtual console and issue 'setterm -blank 0', it will in fact disable screen blanking. The problem is that nobody is usually logged in, so I can't simply add the 'setterm' command to a bash startup script.

/etc/inittab shows the following for virtual consoles.
Code:
c1:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
Is this a problem/default with 'agetty'? Any help would be appreciated.
 
Old 11-12-2008, 09:13 AM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
On a Slackware system /etc/rc.M has this :
Code:
# Screen blanks after 15 minutes idle time, and powers down in one hour
# if the kernel supports APM or ACPI power management:
/bin/setterm -blank 15 -powersave powerdown -powerdown 60
Don't know if Arch does too. Are you sure you've checked the entire disk ?
 
Old 11-12-2008, 09:34 AM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Well I don't understand why it's a problem if no-one is logged in, but if you really want to fix it put the setterm command into rc.local which is the last thing run during startup. Doesn't matter if anyone is logged in or not, it'll still run during startup.
 
Old 11-12-2008, 10:17 AM   #4
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by masonm View Post
Well I don't understand why it's a problem if no-one is logged in
This is running on a hardware router, which randomly locks-up every 4-6 weeks. At that point, the keyboard is unresponsive, it is not accessible from the network, and the monitor reveals nothing because it has been blanked. My only recourse is to pull the power cord and restart it.

I've painfully searched every logfile and see no indication of a problem. I suspect a hardware issue and would like the see any errors output to the console prior to the crash. In order to do that, I must prevent the machine from "blanking" the console.

I will add the 'setterm' command to rc.local and reboot the box. My only concern is whether it will affect all virtual consoles. I will test it and post the results here for others.

Thanks for the tip.
 
Old 11-12-2008, 06:00 PM   #5
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Quote:
Originally Posted by WindowBreaker View Post
This is running on a hardware router, which randomly locks-up every 4-6 weeks. At that point, the keyboard is unresponsive, it is not accessible from the network, and the monitor reveals nothing because it has been blanked. My only recourse is to pull the power cord and restart it.

I've painfully searched every logfile and see no indication of a problem. I suspect a hardware issue and would like the see any errors output to the console prior to the crash. In order to do that, I must prevent the machine from "blanking" the console.

I will add the 'setterm' command to rc.local and reboot the box. My only concern is whether it will affect all virtual consoles. I will test it and post the results here for others.

Thanks for the tip.
Ah ok, that makes sense. The setterm command, placed in rc.local, will prevent blanking on all consoles. Read the man page for setterm.
 
Old 11-12-2008, 07:47 PM   #6
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Original Poster
Rep: Reputation: 40
[SOLVED] trying to disable screen "blanking"

per masonm's suggestion, I added
Code:
setterm -blank 0
to rc.local and have verified that it does in fact work on all virtual consoles even though nobody is logged in.

Also, I modified syslog-ng to write all console messages to /var/log/console.log in addition to the console. So I guess I solved my problem 2 different ways.

Posting here in case it helps anyone.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I disable "lock screen" in Gnome. tallmtt Linux - General 4 07-09-2007 11:05 AM
how to disable "automatic screen saver" on thinkpad T21 jjonas Linux - Laptop and Netbook 2 07-28-2005 07:31 AM
how to disable "print screen" button sallyslicer Linux - Newbie 0 02-11-2005 02:32 PM
How to disable screen blanking in X? make Linux - General 14 07-15-2004 05:15 PM
How do I disable the "attractive," graphical startup screen? 3line Linux - Software 16 10-30-2003 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration