www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/24/23:07:33

Message-Id: <3.0.1.32.20010525111036.0072a0f0@wingate>
X-Sender: n_abing#ns DOT roxas-online DOT net DOT ph AT wingate
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Date: Fri, 25 May 2001 11:10:36 +0800
To: djgpp AT delorie DOT com
From: "Nimrod A. Abing" <n_abing AT ns DOT roxas-online DOT net DOT ph>
Subject: Re: Turning off monitor ?
In-Reply-To: <3B0D50EC.80EBC0A9@cyberoptics.com>
References: <3 DOT 0 DOT 1 DOT 32 DOT 20010523120828 DOT 006b3ad4 AT wingate>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

At 01:20 PM 05/24/2001 -0500, you wrote:
>I haven't tried to do it from DJGPP, but here is a code fragment from a
Borland
>C++ app I use:
>
>   _AX = 0x4F10;
>   _BL = 0x01;
>   _BH = mode;
>   geninterrupt(0x10);
>
>mode: 0=on, 1=standby, 2=suspend, 4=off.  It's probably straightforward to
>translate this to DJGPP-compatible calls.  I got the info from Ralf Brown's
>interrupt list:
>
>   http://www.ctyme.com/rbrown.htm
>
>You should be aware that some interesting things can happen if you attempt
to use
>alt-tab to switch back to Windows while the monitor is sleeping.  Hope this
>helps.

An even more interesting thing happens when the Windoze APM kicks in. Don't
use this inside a Windoze DOS box.

Bye!

nimrod_a_abing
--------------

+========================================+
|  Home page: www.geocities.com/n_abing  |
+========================================+

"I believe in the American Dream.
 That's why I'm still asleep."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019