This is a discussion on Power off system programmatically within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hello All: I have a P4 based system which I am trying to power off programmatically through the use ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello All: I have a P4 based system which I am trying to power off programmatically through the use of a menu system I am writing. I tried the "-p" flag to "shutdown" but it did not work. Is there another way anyone knows of to shutdown and turnoff an Openbsd system programmatically? I am currently using version 3.3 but will be upgrading to 3.4. TIA, Jim |
| |||
| "Jim Lambert" <jaylamb_ert@futrx.com> writes: > I have a P4 based system which I am trying to power off programmatically > through the use of a menu system I am writing. I tried the "-p" flag to shutdown -hp should do the trick. If that fails try this: sysctl -w machdep.apmhalt=1 and then issue your shutdown command. That is a workaround required for some hardware. If it solved your problem you can enable the sysctl in /etc/sysctl.conf. If it still doesn't work then OpenBSD doesn't know how to tell your hardware to shut down (or your hardware doesn't support programatic shutdown). // marc |
| ||||
| Marco S Hyman wrote: > "Jim Lambert" <jaylamb_ert@futrx.com> writes: > >> I have a P4 based system which I am trying to power off >> programmatically through the use of a menu system I am writing. I >> tried the "-p" flag to > > shutdown -hp should do the trick. If that fails try this: > > sysctl -w machdep.apmhalt=1 > > and then issue your shutdown command. That is a workaround required > for some hardware. If it solved your problem you can enable the > sysctl in /etc/sysctl.conf. > > If it still doesn't work then OpenBSD doesn't know how to tell your > hardware to shut down (or your hardware doesn't support programatic > shutdown). > I checked my bios and saw that I didn't have apm enabled in the bios. My problem now is that when I boot the system it hangs at "apm0 at bios0". Anyone have any ideas why this might be doing this? Thanks, Jim |