power off pc with nextstep

NeXT Computer, Inc. -> Intel White Hardware

Title: power off pc with nextstep
Post by: rjnf on February 19, 2024, 01:13:31 PM
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-hack

thanks and regards
Title: Re: power off pc with nextstep
Post by: pTeK on August 12, 2024, 02:53:14 AM
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.
Title: Re: power off pc with nextstep
Post by: pTeK on August 13, 2024, 05:16:31 AM
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).

Go to top  Forum index