Page 1 of 1

turn off LCD/monitor using ms-dos

Posted: Tue Aug 13, 2013 6:20 am
by gonzalezmurilo
i would like to implement something using c++ (open watcom ide) to turn off lcd/monitor on ms-dos.

i think the easiest mode would be call int 10h

who knows how to do it? i need some help..

thanks!

Re: turn off LCD/monitor using ms-dos

Posted: Tue Aug 13, 2013 6:23 am
by gonzalezmurilo
this is what i need to use...

INT 10 - VESA VBE/PM (Power Management) v1.0+ - SET DISPLAY POWER STATE
AX = 4F10h
BL = 01h
BH = new state (see #0088)
Return: AL = 4Fh if function supported
AH = call status
00h successful
else failed
SeeAlso: AX=4F10h/BL=00h,AX=4F10h/BL=02h,AX=A00Ch
(Table 0088)
Values for VESA VBE/PM power state:
00h On
01h standby
02h suspend
04h Off
08h reduced On (for flat screens)


How can i implement this using c++ ?

Re: turn off LCD/monitor using ms-dos

Posted: Tue Aug 13, 2013 7:47 am
by Combuster
If you needed three minutes to get that much further, maybe it would be wise to also spend some time on learning to use the library, no?