Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2004, 12:11 PM   #1
LQ Newbie
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
true sleep mode


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
Old 05-18-2004, 03:37 PM   #2
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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
xset dpms force off
apm -s
and run that so the two commands will be executed in one go.

Old 05-19-2004, 04:05 AM   #3
LQ Newbie
Registered: Mar 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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 ?

Old 05-19-2004, 05:30 AM   #4
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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?


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
Sleep Mode Doesn't Work RemusX2 Linux - Hardware 1 06-26-2004 08:04 AM
console mode sleep ?? johnyy Linux - Software 1 04-05-2004 01:41 PM
Where's sleep mode in RH 8.0? bobterri Linux - Distributions 4 11-27-2002 12:13 AM
Sleep mode mrsolo Linux - Hardware 4 11-26-2002 09:05 PM
sleep mode Linux - General 2 12-29-2001 10:43 AM

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration