LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   true sleep mode (https://www.linuxquestions.org/questions/linux-software-2/true-sleep-mode-182908/)

coco03 05-18-2004 11:11 AM

true sleep mode
 
Hi,

I would like to put my computer in sleep mode :
- Computer sleep with "apm -s" works well,
- and Screen sleep with "xset dpms force off" works well.

But I don't know how to put computer and screen in sleep mode at the same time.

Do you know how to do that ?

Thank you
COCO3

nukkel 05-18-2004 02:37 PM

You mean that when you blank the screen and you want to type 'apm -s' it goes back on? Then the solution is simple - make a shellscript containing
Code:

#!/bin/sh
#
xset dpms force off
apm -s

and run that so the two commands will be executed in one go.

Greets
nukkel

coco03 05-19-2004 03:05 AM

thanks for your reply,

I have already try this solution. With this kind of script, the screen first go in sleep mode, then the screen leave the sleep mode when the "apm -s" command is launched.

Have you try this script ?
Have good behaviour with it ?

Thanks
COCO

nukkel 05-19-2004 04:30 AM

Strange... Well I can't try it myself because my BIOS causes the whole system to crash when I try to suspend :(

We'll have to see if anyone else knows a solution...

Maybe you have a BIOS option to control whether or not the screen turns off when suspending?


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