Page 1 of 1

shutdown - ATX

Posted: Wed Apr 23, 2003 11:33 am
by nitroglycerin
hello!

How to shutdown computer (ATX) (software shutdown)?
I assume it is done through ports and/or opcodes, but which?

thx

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 12:28 pm
by Pype.Clicker
i don't know, but i know this depend on the Advanced Power Management or Advanced Power Control Interface. And i also know Moebius can do it. Check out the CVS browser from Tim Ronbinson's webpage :)

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 1:18 pm
by Tim
...which, in turn, came out of the Menuet sources. int 15h handles it.

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 2:13 pm
by nitroglycerin
thanks Tim. I looked into 15h and now my poor OS gloriously shuts down ;)

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 2:21 pm
by Tim
Great, isn't it? :) Feels like a real OS now.

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 3:03 pm
by Pype.Clicker
no option like shutting down without going back to real mode ?

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 3:19 pm
by Tim
What would you do in real mode? Boot some other OS? Maybe, but you'd have to re-init any hardware you'd used first. Why not let the BIOS do that? Hey: switching to real mode and re-initing hardware using the BIOS. That sounds like... rebooting! :)

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 4:09 pm
by Pype.Clicker
err ?? i must have been unclear or i'm too tired to understand your response ...

what i meant is can't we shutdown the computer while in pmode ? calling bios INT 15h implies we go back to real mode, isn't it ? can't that be avoided ?

Re:shutdown - ATX

Posted: Wed Apr 23, 2003 5:03 pm
by Tim
OK, n/m my previous response. :)

AFAIR there are several APM interfaces through int 15h: real mode, 16-bit pmode and 32-bit pmode. It seemed easier for me to use the real mode interface, as I already had a V86 monitor in place. It shouldn't be necessary to switch back to real mode unless you want to start another OS (hence my previous response).