LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-18-2004, 11:11 AM   #1
coco03
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
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
 
Old 05-18-2004, 02:37 PM   #2
nukkel
Member
 
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
Code:
#!/bin/sh
#
xset dpms force off
apm -s
and run that so the two commands will be executed in one go.

Greets
nukkel
 
Old 05-19-2004, 03:05 AM   #3
coco03
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 ?

Thanks
COCO
 
Old 05-19-2004, 04:30 AM   #4
nukkel
Member
 
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?
 
  


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


All times are GMT -5. The time now is 01:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration