Page 1 of 1

Shutdown without realmode

Posted: Sun Jun 04, 2006 11:00 pm
by Jeko
How can I shutdown the computer without realmode?

Re: Shutdown without realmode

Posted: Mon Jun 05, 2006 11:00 pm
by JAAman
implement ACPI (very very hard) or use the power switch (very easy)

Re: Shutdown without realmode

Posted: Mon Jun 05, 2006 11:00 pm
by Jeko
how can i use the power switch?

Re: Shutdown without realmode

Posted: Mon Jun 05, 2006 11:00 pm
by JAAman
flip the switch on the computer? that will shut it off

seriously, if you want to turn it off in software, without using the BIOS calls, you must either write a separate driver for each MB, or implement ACPI

Re: Shutdown without realmode

Posted: Mon Jun 05, 2006 11:00 pm
by Da_Maestro
Could you use VM86?

Re: Shutdown without realmode

Posted: Tue Jun 06, 2006 11:00 pm
by Jeko
ok i try to implement ACPI. Thank You!

Re: Shutdown without realmode

Posted: Tue Jun 06, 2006 11:00 pm
by Dex
Why not just reverse the going to Pmode method, that's what i do.
Here's demo to do this:
http://www.dex4u.com/images/DemoVesa.zip

NOTE: This demo goes to realmode to swich vesa mode, but it could just as well shutdown.

Re: Shutdown without realmode

Posted: Wed Jun 07, 2006 11:00 pm
by Jeko
thank you!