Shutdown PC

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Wacky

Shutdown PC

Post 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
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Shutdown PC

Post 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)
udarkman

Re:Shutdown PC

Post 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
Post Reply