-   Linux - Newbie (
-   -   Redhat 4.8 Hibernate/Sleep/Standby question (

ghost_1on 01-06-2012 02:11 PM

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?


corp769 01-06-2012 02:16 PM


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.



ghost_1on 01-06-2012 02:27 PM

I will do this-

Is there any command your aware of that will disable the pc from going to sleep?

corp769 01-06-2012 02:33 PM

Have a look at xset.

man xset
From the man page:

    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:

xset s off
Just note that you need to run that as root.



ghost_1on 01-06-2012 02:35 PM

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?

corp769 01-06-2012 02:36 PM

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



ghost_1on 01-06-2012 02:47 PM

No luck :(

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

"command not found"

corp769 01-06-2012 02:53 PM

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:

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.

ghost_1on 01-06-2012 02:58 PM

I found this link

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 :D?

corp769 01-06-2012 03:03 PM

Well what is the architecture of your computer? Run the following and post the output for me:

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.

ghost_1on 01-06-2012 03:09 PM

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

ghost_1on 01-06-2012 03:12 PM

Leaving for the weekend! Ill be back monday thanks :)

ghost_1on 01-09-2012 09:00 AM


ghost_1on 01-09-2012 10:03 AM

If i have redhat 4.8 which version should I dl- fedora 15, 16 or rawhide?

All times are GMT -5. The time now is 05:57 PM.