Fwd: New feature: a "poweroff" command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IMHO, this feature makes sense for emulators intended for end-user,
that try to mimic a real PC with a full-featured BIOS,but raises an
issue for the embedded devices, because it forces to implement BIOS
15h, at least a stub to return with CF set.

For that reason, I would enhance your change by adding something like
an "BIOS power management" option in the ELKS configuration
(CONFIG_BIOS_POWER ?).

MFLD


2016-05-26 3:51 GMT+02:00 Jody Bruchon <jody@xxxxxxxxxxxxxxx>:
> I have just committed a 'poweroff' command to ELKS. Piggybacking on the
> existing sys_reboot() syscall, the commit uses Advanced Power Management
> (APM) BIOS calls to power down the computer when the poweroff command is
> issued. If you're running in an emulator like QEMU, Bochs, or Virtualbox, or
> if you're running ELKS on any APM-enabled platform such as most 486 or
> higher laptops and any older ATX PC, this is a much more convenient way to
> shut down.
>
> I find this to be a nicer way of exiting the QEMU curses interface than ESC,
> 2, q, [enter] in any case, and most ELKS testing seems to be done on more
> modern systems and emulators, so it makes sense. I would like someone to
> test it on a non-APM system to make sure that a failure due to no APM
> support falls through to an error message.
>
> Also, I am thinking of renaming sys_reboot() to sys_shutdown() to better
> reflect its actual purpose. Any objections?
>
> -Jody
> --
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Linux ia64]     [DCCP]     [Linux for ARM]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux