turn off LCD/monitor using ms-dos

Programming, for all ages and all languages.
Locked
gonzalezmurilo
Posts: 5
Joined: Mon Jul 15, 2013 6:49 am

turn off LCD/monitor using ms-dos

Post 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!
gonzalezmurilo
Posts: 5
Joined: Mon Jul 15, 2013 6:49 am

Re: turn off LCD/monitor using ms-dos

Post 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++ ?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: turn off LCD/monitor using ms-dos

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked