Operating System - Microsoft
1748011 Members
4760 Online
108757 Solutions
New Discussion юеВ

real Dos poweroff on dualcore

 
┬аFrederic Hosmann
Trusted Contributor

real Dos poweroff on dualcore

Hello,

I was using several tools to do a poweroff under real dos (msdos,freedos,pc-dos etc...) like poweroff.exe,halt.com,fdapm.exe etc etc and it always ran.

today we received 120 HP DC7700 which are using intel dual core processor. In this situation, it seems that the APM( advanced power management) doesn t exist anymore, completely replaced by ACPI (advanced configuration power interface).

okay, then i decided to use fdapm, the version of august 2006, which is able to do a power off request through acpi under dos.

it doesn t work too. i tried everything that i found but now i have no more idea.

Is there someone who found the way to power off/shutdown/ hibernate computer from dos ?


PS : not linux, i need dos cause of an application.

PS2: not winPE i have 1500 units to load.
anything is impossible
8 REPLIES 8
Oviwan
Honored Contributor

Re: real Dos poweroff on dualcore

hy

i don't know whether it works on your system but what is with:

shutdown -i -t 0

Regards
┬аFrederic Hosmann
Trusted Contributor

Re: real Dos poweroff on dualcore

thank you for your answer, but this doesn t work on ms dos.

the only one way to shutdown this kind of model seems acpi.

now, the problem is that i have no clue how to write a program in C or ASm to be able to standby/power off/ hibernate for dual core


if someone made already this...

anything is impossible
Rich S
Honored Contributor

Re: real Dos poweroff on dualcore

Hi Fred,

the SHUTDOWN command works fine on my dualcore. It was designed for the command prompt (DOS level).

see:

http://www.computerhope.com/shutdown.htm

or

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shutdown.mspx?mfr=true


I also attached an old favorite of mine which shuts down a PC from the desktop through an API call that I wrote.

Let me know how it works on your machine and I will give you the code.

Rich


Say thanks with HP POINTS
Art Wiens
Respected Contributor

Re: real Dos poweroff on dualcore

Sad that people don't remember/know what DOS is!!

He said DOS, not the command prompt from a Windows xyz platform. And no, DOS doesn't have a "desktop"!!

Damn kids! ;-)
Art
Rich S
Honored Contributor

Re: real Dos poweroff on dualcore

here is some programming interupts for DOS.


http://www.uv.tietgen.dk/staff/mlha/PC/Soft/Prog/ASM/INT/index.htm

http://hdebruijn.soo.dto.tudelft.nl/newpage/interupt/out-4400.htm

http://www.uic.edu/classes/eecs/eecs265/ece267_Spring2003/ASSEMBLY/int9.html


calling the Keyboard Interrupt Service Routine will equal the 3 finger salute.

You will of course have to port these calls to your specific OS.

These are references to most MS and IBM dos commands.


Rich


Rich S
Honored Contributor

Re: real Dos poweroff on dualcore

A lot of these calls were blocked to protect from hackers. You will have to review your particular OS interupt calls to find the nearest call that matches the ctl-alt-del combination. In my old DOS days we used DEBUG to review code at the assembler level and copied the results to Borland C for porting to Unix, DOS or WINDOWS.

(How's that Art?)

Young indeed. :)


Rich


Art Wiens
Respected Contributor

Re: real Dos poweroff on dualcore

Sorry Rich, didn't mean to "tar everyone with the same brush". Bet kids have never heard that expression either ;-)

Cheers,
Art
┬аFrederic Hosmann
Trusted Contributor

Re: real Dos poweroff on dualcore

I downloaded acpi specification sheet version 3.0b to find what is the new code to call acpi S5 mode.

Exact, it is under real dos mode and not under windows Xx.

here a part of the code of fdapm using acpi call for S5, which work correctly on acpi 2.x

if one have the motivation to read and help T.T ...

the functions which are interesting are getacpi and acpioff.
anything is impossible