| delorie.com/archives/browse.cgi | search |
| Message-ID: | <3B0D50EC.80EBC0A9@cyberoptics.com> |
| From: | Eric Rudd <rudd AT cyberoptics DOT com> |
| Organization: | CyberOptics |
| X-Mailer: | Mozilla 4.72 [en] (Win95; U) |
| X-Accept-Language: | en,pdf |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Turning off monitor ? |
| References: | <3 DOT 0 DOT 1 DOT 32 DOT 20010523120828 DOT 006b3ad4 AT wingate> |
| Lines: | 27 |
| Date: | Thu, 24 May 2001 13:20:28 -0500 |
| NNTP-Posting-Host: | 38.196.93.9 |
| X-Trace: | client 990728432 38.196.93.9 (Thu, 24 May 2001 14:20:32 EDT) |
| NNTP-Posting-Date: | Thu, 24 May 2001 14:20:32 EDT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Nimrod A. Abing" wrote: > >Hi, > >does somebody have idea how to turn off monitor (set it to sleep mode) from > >DJGPP program (and then turn it on ?) 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. -Eric Rudd rudd AT cyberoptics DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |