Page 1 of 1

Shutdown PC

Posted: Mon May 26, 2003 2:02 am
by Wacky
Morning!

With follow command i can restart my computer

Code: Select all

outportb(KEYB_CTRL,0xFE);
OK, but how can i shutdown an ATX?? I don't found any information.. :-(
Can somebody help me, please?!

thx Wacky

Re:Shutdown PC

Posted: Mon May 26, 2003 3:11 am
by Pype.Clicker
i know Tim'sMobius shell can do it, through BIOS calls.

Afaik, that feature is motherboard dependent, and i don't think there is a standardized technique to shut the system down but using BIOS interrupts (thus yes, either go back to realmode or support V86)

Re:Shutdown PC

Posted: Mon May 26, 2003 9:50 am
by udarkman
You may use APM interrupts to shutdown. If you check posts I have posted a whole code for shutting down computer using APM interrupts.

Int 15/AX=5300h - APM v1.0+ - INSTALLATION CHECK
Int 15/AX=5304h - APM v1.0+ - DISCONNECT INTERFACE
Int 15/AX=5301h - APM v1.0+ - CONNECT REAL-MODE INTERFACE
Int 15/AX=5307h - APM v1.0+ - SET POWER STATE