We often work on project that use QNX 6.3 with full Photon environnement on
regular PC. Most of time, we use a UPS that we control via an some I/O that we
have on a custom PCI card. We can send a bit to the UPS to cut power on the
whole system (with a hardware timer in it to let enought time to
do a clean shutdown on the computers). During that “grace” time, I want to do
a clean shutdown to the computer from our Photon Application directly or by
spawning a shell command.
Is there a way to do a proper shutdown (not reboot) in QNX (running photon)
from my application or by a shell command with no interaction needed by
I try many possibilities and nothing work properly…
/bin/shutdown utility don’t work well under photon, the image on the screen
freeze and the computer seems to be crashed. (it’s look stupid to ship it like
this to the client).
phshutdown utility don’t seems to work without user interaction to click the
shutdown type and confirm… Even if I specify the shutdown type as parameters
like the following:
It still pop-up the little dialog and need user interaction. Is there a bug in
phshutdown ? Why it’s ignore any parameters I give to it.
Is There a clean solution to do what I want…
Thank you very much