• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

disabling screensaver (monitor off)

Anybody know, how to prevent the monitor to
go blank in console mode?

Regards, Oli
0
Oli2
Asked:
Oli2
  • 5
  • 4
1 Solution
 
EatEmAndSmileCommented:
Yes, and as you may have noticed, it goes blank even in X after the time set.

 If you have a true Linux compliant distribution, you can edit /etc/rc.d/rc.M and look for the "setterm" command. It will say something like:

setterm -blank 15

 Just comment out that line and you will get no more blanks.

 If you haven't got a Linux compliant distribution, you've got two options:

 1) Find the setterm ran at start-up yourself, by going to the /etc/rc.d directory and using:

 grep -l setterm *

 and if you've also got subdirectories:

 grep -l setterm */*

 to get a list of files that contain "setterm" inside them. Then edit the file displayed by grep.

 2) Put another "setterm" in your /etc/rc.d/rc.local. Something like:

 setterm -blank 0

 Good luck!
0
 
Oli2Author Commented:
Hi, EatEm, thanx for your answer.
I use SUSE Linux, and there's no setterm found either by using grep -l setterm * or by using grep -l setterm */* inside the /etc/rc.d directory. Also, there's no rc.local file where I could append the setterm -blank 0. Also, there's no rc.M file.
Regards, Oli
0
 
EatEmAndSmileCommented:
Strange, very strange... Well, tell me what does "ls" give you inside the /etc/rc.d

 Do:

 cd /etc/rc.d

 ls

 Gimme the output, please.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Oli2Author Commented:

...
README
apache
at
axnet
boot
boot.d
boot.local
boot.setup
cdb
cron
dummy
file.txt
gpm
halt
halt.local
i4l
i4l_hardware
inetd
init.d
inn
ipfwadm
kbd
kerneld
lpd
named
network
nfs
nfsserver
pcnfsd
powerfail
random
rc
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rcS.d
reboot
route
routed
rpc
rwhod
sendmail
serial
single
skeleton
svgatext
sybase
syslog
xdm
ypclient

regards, Oli
0
 
Oli2Author Commented:
file.txt was for the ls > file.txt command
0
 
EatEmAndSmileCommented:
Oh, no... You've got that rc.X (where X is always a number that says nothing useful) on your system.

 Well, guess it will be harder to find the setterm there.

 Ok, you could put the "setterm -blank 0" on your .bashrc / .profile / .bash_profile file, so it would work at least while you're logged in.

 Give it a try...
0
 
EatEmAndSmileCommented:
By the way, run by hand:

 setterm -blank 0

 To see if your system at least does have the command.
0
 
Oli2Author Commented:
running it by hand works fine and that's all I need.
Fortunately Linux does not need a reboot every day, like Windows does ;-)

Regards, Oli
0
 
EatEmAndSmileCommented:
Yeah, ok... Cool!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now