Shutdown without realmode

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
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

Shutdown without realmode

Post by Jeko »

How can I shutdown the computer without realmode?
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: Shutdown without realmode

Post by JAAman »

implement ACPI (very very hard) or use the power switch (very easy)
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

Re: Shutdown without realmode

Post by Jeko »

how can i use the power switch?
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling

http://sourceforge.net/projects/jeko - Jeko Operating System
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: Shutdown without realmode

Post 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
Da_Maestro
Member
Member
Posts: 144
Joined: Tue Oct 26, 2004 11:00 pm
Location: Australia

Re: Shutdown without realmode

Post by Da_Maestro »

Could you use VM86?
Two things are infinite: The universe and human stupidity. But I'm not quite sure about the universe.
--- Albert Einstein
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

Re: Shutdown without realmode

Post by Jeko »

ok i try to implement ACPI. Thank You!
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling

http://sourceforge.net/projects/jeko - Jeko Operating System
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Shutdown without realmode

Post 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.
Last edited by Dex on Tue Jun 06, 2006 11:00 pm, edited 1 time in total.
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

Re: Shutdown without realmode

Post by Jeko »

thank you!
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling

http://sourceforge.net/projects/jeko - Jeko Operating System
Post Reply