MS-DOS是没有电源管理的,因为到了DOS7就不再演进了,而是彻底的WINDOWS了。但是,FreeDOS继MS-DOS后继续演进,而且它的许多指令与MS-DOS相兼容,其中对电源管理的FDAPM.COM可以直接拿到MS-DOS6.2下使用。如果你的计算机安装的是纯MSDOS系统,机器是ATX电源的,主板有APM功能,借用FreeDOS的FDAPM.COM指令就可以在纯MSDOS下管理电源了。
FDAPM /? 列出所有可选项如下
Usage: Give FDAPM any one option from the following list.
Case is irrelevant, - or / are optional. HELP or /? shows this help.
This is free open source GPL 2 software.
Written and conceived by Eric Auer. Version: 11 Sep 2009.
INFO / STATS - show information about APM status / APMdos
APMdos - keep FDAPM in RAM, save most energy. To stop, select APMbios/APMoff
APMbios / APMoff - turn plain BIOS APM energy saving mode on / off
SPINUP / SPINDOWN - wake up IDE disks / flush caches and stop IDE disks
VGAoff / VGAon - turn EGA/VGA/VESA DPMS screen off (no auto wake up!) / on
FLUSH / ZapStats - flush caches / clear STATS counters
SPEEDn - set CPU speed to n/8 of max. (0 halts until 'power' pressed).
ACPIDUMP - show ACPI data tables (to debug SPEEDn, stand-by, power off, etc)
STANDBY - flush caches, enter stand-by mode
SUSPEND - flush caches, stop (will auto wake up) IDE disks, suspend PC
POWEROFF - flush caches, stop IDE disks, power off VGA and PC
PURESUSP / PUREOFF - as SUSPEND / POWEROFF but does not stop IDE disks first
COLDboot / WARMboot - do a reboot with / without BIOS tests (POST)
HOTboot - try fast int 19h reboot (will often crash!)
FDAPM POWEROFF
2. 冷启动FDAPM COLDBOOT
3. 热启动FDAPM WARMBOOT
其它的自己看吧。作者说了,HOTBOOT不好用,是模仿POST程序调取MBR到0x7c00并引导系统的方式,估计只是针对传统引导方式写的,其它的没考虑进去,所以他说经常会把机器整崩溃了。FreeDOS有aliases功能,可以定义执行命令的别名,这样重启可以别名为 reboot ,则直接执行 reboot 别名就重启了,类似linux的别名功能,这一点MSDOS是没有的。



