SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
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 ?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.