LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-06-2012, 01:11 PM   #1
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Rep: Reputation: Disabled
Redhat 4.8 Hibernate/Sleep/Standby question


Hello all,

Here is my issue- I'm using a redhat 4.8 kernel command line only and it seem that after 15-20 minutes the monitor will shut off(I assume go into sleep mode) and I can't wake it up with the mouse or keyboard, I have to manually restart the machine.

Is there a way to turn off this via command line? or any ideas as to why this is happening?

thanks!
 
Old 01-06-2012, 01:16 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

I would have a look at /var/log/pm-suspend.log and see if you are getting any errors, this will aid in troubleshooting. I would also have a look at your dmesg output, along with /var/log/messages.

Cheers,

Josh
 
Old 01-06-2012, 01:27 PM   #3
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
I will do this-

Is there any command your aware of that will disable the pc from going to sleep?
 
Old 01-06-2012, 01:33 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Have a look at xset.
Code:
man xset
From the man page:
Code:
    For screen-saver control:
	 s [timeout [cycle]]  s default    s on
	 s blank              s noblank    s off
	 s expose             s noexpose
	 s activate           s reset
So in this case, you will want to run the following:
Code:
xset s off
Just note that you need to run that as root.

Cheers,

Josh
 
Old 01-06-2012, 01:35 PM   #5
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Really appreciate the quick reply-

My linux skills are very dated- just to confirm.

1) I log in as roo
2) in the main shell, I type "xset s off"

This will shut off the sleepmode/screensaver?
 
Old 01-06-2012, 01:36 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
If you read the man page, you will see that by doing that, yes it will disable it.

Cheers!

Josh
 
Old 01-06-2012, 01:47 PM   #7
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
No luck

I tried the man xset and the xset command but both say

"command not found"
 
Old 01-06-2012, 01:53 PM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You just need to install it then. Install the xorg-x11-server-utils package in order to get the needed dependencies for xset. Quick question.... Did you pay for redhat? If so, you can use yum to install it:
Code:
yum install xorg-x11-server-utils
If you didn't pay for support, you will need to manually download the package. I also recommend that you upgrade your system to the newest version of red hat.
 
Old 01-06-2012, 01:58 PM   #9
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
I found this link

http://rpmfind.net/linux/rpm2html/se...1-server-utils

should I get the rawhide one? or x86.. or i386?

then i use this command to install the package?

rpm -i nameofrpm.rpm

but do I have to specify the location of the rpm? it will be on a external hard drive.

then I run the xset command ?
 
Old 01-06-2012, 02:03 PM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Well what is the architecture of your computer? Run the following and post the output for me:
Code:
uname -a
Alternatively, you can also download the source of the package and compile manually, but for now, let's just stick to the RPM's.
 
Old 01-06-2012, 02:09 PM   #11
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
its run on a kvm with other machines-

I just noticed that if I use a ps/2 mouse and keyboard into the machine, that will wake it up from sleep-

But a usb will not.

the command gave me this

linux sefcs 2.6.9-89 ELSMP #1 SMP "the date" i686 i686 i386 GNU/LINUX
 
Old 01-06-2012, 02:12 PM   #12
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Leaving for the weekend! Ill be back monday thanks
 
Old 01-09-2012, 08:00 AM   #13
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
back!
 
Old 01-09-2012, 09:03 AM   #14
ghost_1on
LQ Newbie
 
Registered: Jan 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
If i have redhat 4.8 which version should I dl- fedora 15, 16 or rawhide?
 
  


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
What are the standby and hibernate commands? spiffytech Linux - Software 1 07-27-2006 01:56 AM
hibernate, standby phoenix7 Linux - General 3 05-06-2005 05:03 AM
Sleep/Standby/Hibernation on Mandrake 10 Kramer Linux - Laptop and Netbook 3 10-13-2004 01:57 AM
How to control sleep/standby etc? Cookie Fedora 3 04-16-2004 10:45 AM
HDD Standby/Sleep Problems green_dragon37 Linux - Hardware 7 06-16-2003 12:59 AM

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

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