LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2017, 06:17 PM   #1
kd0
Member
 
Registered: Aug 2017
Location: Rapid City, SD
Distribution: CentOS 7
Posts: 40

Rep: Reputation: 0
CentOS 7.3 setterm


im running centos 7.3 and i found it hibernating or suspended after a day at the terminal (no xwindows, virtual box)

i know of a setterm command to stop this

i tried putting it in rc.d

/usr/bin setterm -blank 0 -powersave off

but that doesnt work

how do i get this command to execute at the startup without having to login and punch it in manually anytime oh say, the power goes out?

Last edited by kd0; 08-26-2017 at 07:48 PM. Reason: SOLVED
 
Old 08-26-2017, 06:45 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 756

Rep: Reputation: 144Reputation: 144
The commands I put in file /etc/rc.d/rc.local get executed at startup for me on Fedora. I think I created it from scratch, that is, I don't think it existed originally.
 
1 members found this post helpful.
Old 08-26-2017, 06:55 PM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by kd0 View Post
im running centos 7.3 and i found it hibernating or suspended after a day at the terminal (no xwindows, virtual box)

i know of a setterm command to stop this

i tried putting it in rc.d

/usr/bin setterm -blank 0 -powersave off

but that doesnt work

how do i get this command to execute at the startup without having to login and punch it in manually anytime oh say, the power goes out?
Following on from what KenJackson has said, you might what to take a look at this: https://www.joe0.com/2016/01/03/how-...e-in-centos-7/
 
1 members found this post helpful.
Old 08-26-2017, 07:19 PM   #4
kd0
Member
 
Registered: Aug 2017
Location: Rapid City, SD
Distribution: CentOS 7
Posts: 40

Original Poster
Rep: Reputation: 0
ok i followed the www.joe0.com how-to and am testing it, ill wait 15-30 mins and see if it worked, if it does ill mark it as solved, thanks you guys!
 
Old 08-26-2017, 07:31 PM   #5
kd0
Member
 
Registered: Aug 2017
Location: Rapid City, SD
Distribution: CentOS 7
Posts: 40

Original Poster
Rep: Reputation: 0
ah that did not work either im afraid hmm.. strange, would i have to login as root for that to work?
 
Old 08-26-2017, 07:47 PM   #6
kd0
Member
 
Registered: Aug 2017
Location: Rapid City, SD
Distribution: CentOS 7
Posts: 40

Original Poster
Rep: Reputation: 0
i think it may be solved, i did not put the /usr/bin setterm -blank 0 -powersave 0ff ... i just put setterm in my .sh script lol.. it isnt going blank now, i think it would of screen saved by now if it was going to, and im not logged in as root either.. PERFECT! thanks for every thing guys/gals
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setterm does not power down LCD monitors pisti Linux - Hardware 1 02-12-2008 07:11 PM
saving setterm kwikness Linux - Newbie 6 07-20-2007 02:24 PM
Setterm -powerdown xx won't work. dangerboy Linux - Hardware 2 07-19-2006 04:20 AM
setterm ?? Bill Johns Linux - Software 1 04-11-2005 03:44 AM
setterm command won't budge frankie_DJ Slackware 1 09-29-2004 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:10 AM.

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