Dear all
I was thinking that the power-off feature in Nextstep 3.3 always displays a message "its now safe to turn off the machine", then i need to power it off.
how hard do you think it will be to creat something to add to halt command so it can trigger low level ACPI shutdown?
i was thinking creating a halt script which would actually execute the real halt command then issue a acpi power off call, to shut down the pc.
Did anyone manage to achieve this.
im just thinking out loud
just saw this .c and .h in github
https://github.com/lowlevelmemes/acpi-shutdown-hackthanks and regards
Driverkit has inb(), inw(), inl(), outb(), outw() and outl().
Here is the pdf manual (
https://www.nextcomputers.org/NeXTfiles/Software/OPENSTEP/Developer/DriverKit/DriverKit.pdf). Just search for those functions.
09 System Startup and Shutdown (
https://www.nextop.de/NeXTstep_3.3_administration/09_StartShut.htmld/index.html)
From the above link apparently
shutdown now or
halt are the commands used to shutdown NeXTSTEP.
Quote from: 09 System Startup and Shutdown - Shutting Down with a UNIX CommandThe shutdown command takes you to single-user mode. If you're using an Intel-based computer, the halt command prepares the computer so your can turn it off.
If you used the shutdown command, press the Power key and then type y when you're asked if you really want to turn off the computer. If you're using an Intel-based computer and you used the halt command, press the power switch on your computer when you see the message that it's safe to turn it off.
Darwin0.3 (
https://github.com/evolver56k/Darwin-0.3/tree/master) source code for
halt(8) (
https://github.com/evolver56k/Darwin-0.3/tree/master/system_cmds-2/halt.tproj) and
shutdown(8) (
https://github.com/evolver56k/Darwin-0.3/tree/master/system_cmds-2/shutdown.tproj).