LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-03-2015, 09:42 PM   #1
KelleyConfig
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Rep: Reputation: Disabled
Disable powersave CentOS 7


Greetings all,

I'm a complete newbie, but enjoying the Linux learning curve very much. Just installed CentOS 7 and going through "The Linux Command Line: A Complete Introduction" by William E. Shotts Jr. Nicely laid out for a neophyte to get up and running.

I'm having a pesky problem though... powersave seems to kick in after a certain time of inactivity and when I tab back into the screen it is utterly blank -- forcing me to hard reboot. A google search yielded these two commands:

setterm -powersave off -blank 0

/usr/bin/setterm -powersave off -blank 0

Do these work only for the current session? If so, is there a permanent solution (perhaps preferably done in the bios?)

Any help or guidance is much appreciated.

Best,
Kelley

Last edited by KelleyConfig; 07-03-2015 at 09:57 PM.
 
Old 07-04-2015, 01:08 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

Welcome to Linux Questions and.....
congrads on your fresh installation of CentOS 7!

Look in your System Settings Menu. In your upper right hand corner of your desktop environment (with the Gnome DE) where you see your name.
You should be able to disable powersave, hybernate, blank screen and other things as well.

https://www.centos.org/forums/viewtopic.php?t=20493
 
1 members found this post helpful.
Old 07-04-2015, 02:11 PM   #3
KelleyConfig
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks Ztcoracat

Hi Ztcoracat,

Thanks so much for the reply. I’ll disable this in the Systems Settings of the Gnome shell. But as I mentioned, complete newbie here. Haven’t even got to the Gnome shell yet. Just going though commands via the classic terminal.

I did a search to bring up the Gnome shell, and found this:

[root@localhost ~]# echo "exec gnome-session" >> ~/.xinitrc
[root@localhost ~]# startx

However, I can’t seem to find a clear answer as to exiting the Gnome shell and returning to the classic terminal mode. I always like to give myself bread crumbs when I venture down a new path. Is there a clean way to exit the gui and default back to the classic terminal on re-boot?

Thanks again,
Kelley
 
Old 07-04-2015, 02:15 PM   #4
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Disable powersave CentOS 7

The daemon is probably called gnome-power-manager

#systemctl disable gnome-power-manager

#systemctl stop gnome-power-manager

is there a reason you didn't install a desktop?
 
1 members found this post helpful.
Old 07-04-2015, 02:25 PM   #5
KelleyConfig
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi Chris,

After the install, CentOS defaulted to a terminal shell on boot. Not sure if I did or did not install a desktop. Still finding my way here. I'm probably asking ignorant questions, but starting to get a feel nonetheless. Thanks for the reply, regardless. I'll try your suggestion after I confirm I don't have the gui.

Best,
Kelley
 
Old 07-04-2015, 02:39 PM   #6
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by KelleyConfig View Post
Hi Chris,

After the install, CentOS defaulted to a terminal shell on boot. Not sure if I did or did not install a desktop. Still finding my way here. I'm probably asking ignorant questions, but starting to get a feel nonetheless. Thanks for the reply, regardless. I'll try your suggestion after I confirm I don't have the gui.

Best,
Kelley
You don't and my suggestion is bad because I had my head up my fourth point of contact..

Google systemd power management and you'll have your answer. The CENTOS media can intstall desktops it's in the SW selection part you have to select workstation server etc. just select workstation then open that'll give you a menu further to the right to select other SW. The other issue is your book was likely written pre-systemd so some of the stuff in there won't work like startx. If this system needs to work reinstall installing a desktop and learn from there the redhat knowledge base will be helpful.
 
1 members found this post helpful.
Old 07-04-2015, 02:56 PM   #7
KelleyConfig
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks Chris. That makes sense. I'm going to get through the book (probably by this weekend) and then do a re-install with the desktop.

Best,
Kelley
 
Old 07-04-2015, 06:34 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Download CentOS here:
http://www.centos.org/download/

Burn the .iso at a slow speed.-

-::-You can try this before you do a fresh download.-::-

Code:
Install GNOME Desktop Environment on here.

# yum -y groups install "GNOME Desktop" 

Input a command like below after finishing installation:

# startx
Run those commands w/o the pound (#) sign and run as 'root'. The terminal will say "complete!" when done.

To become root in cmd-line in a CentOS terminal run:
Code:
su press Enter than type in your root password. (it will not show while you type it)
That should give you a desktop environment.-
 
1 members found this post helpful.
Old 07-04-2015, 06:36 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Have a Happy Fourth of July!

http://unix.stackexchange.com/questi...ts-on-centos-7
 
1 members found this post helpful.
Old 07-04-2015, 08:25 PM   #10
KelleyConfig
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks again, Ztcoracat

You know, given the history of GNU and Linux, I had a suspicion the developers involved would be intelligent and gracious. I wasn’t wrong. Thanks so much for the clear direction Ztcoracat. This will obviously save me much time and frustration on the re-install.

Looking forward to my path towards superuserhood.

Best,
Kelley
 
1 members found this post helpful.
Old 07-04-2015, 08:56 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Looks like CentOS 7 ships with sudo - might be a safer option.
I did a test install a while back and note I am in the wheel group, so can do all commands using sudo. I'm guessing I chose to add my user to the admin group during the install.

Google found doco on sudo on the wiki and CentOS.org - as well as all over the web.
 
1 members found this post helpful.
Old 07-04-2015, 09:12 PM   #12
KelleyConfig
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks syg00. About halfway though my first book. Should finish by tomorrow. Re-install on Monday, and I'll do it with sudo.

Best,
Kelley
 
Old 07-05-2015, 12:05 AM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by KelleyConfig View Post
You know, given the history of GNU and Linux, I had a suspicion the developers involved would be intelligent and gracious. I wasn’t wrong. Thanks so much for the clear direction Ztcoracat. This will obviously save me much time and frustration on the re-install.

Looking forward to my path towards superuserhood.

Best,
Kelley
Your Welcome, Kelley-

I run my CentOS with "su" as root.
For some reason sudo does not work in my CentOS terminal.
 
1 members found this post helpful.
  


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
Disable IPv6 From CentOS 7 carlosinfl CentOS 2 11-19-2014 03:49 PM
CentOS 6.3, disable iptables piyush.sharma Linux - Server 5 11-27-2012 08:44 AM
How to disable particular port on centos SinclairJ Linux - Newbie 10 10-05-2012 12:05 PM
How to disable on-board audio in CentOS? ggyyree Linux - Hardware 1 07-03-2012 10:20 AM
any way to disable powersave? oily_rags SUSE / openSUSE 6 11-01-2004 02:31 AM

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

All times are GMT -5. The time now is 04:12 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