LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Redhat 4.8 Hibernate/Sleep/Standby question (https://www.linuxquestions.org/questions/linux-newbie-8/redhat-4-8-hibernate-sleep-standby-question-922449/)

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?

thanks!

corp769 01-06-2012 02:16 PM

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

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.
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

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.

Cheers!

Josh

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:
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.

ghost_1on 01-06-2012 02:58 PM

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 :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:
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.

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

back!

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.