Forum Topic - shutdown utility -- source code: (16 Items)
   
shutdown utility -- source code  
Hi,

Is it possible to obtain source code of the QNX4 shutdown application ?
We have to implement custom shutdown scenario (including Power off procedure) in a new project.

Regards,
Jacek
RE: shutdown utility -- source code  
Here you go.


-----Original Message-----
From: Jacek Rudnicki [mailto:jacek.rudnicki@quantum.com.pl] 
Sent: Monday, April 07, 2008 4:04 AM
To: qnx4-community
Subject: shutdown utility -- source code

Hi,

Is it possible to obtain source code of the QNX4 shutdown application ?
We have to implement custom shutdown scenario (including Power off
procedure) in a new project.

Regards,
Jacek

_______________________________________________
QNX4 Community Support
http://community.qnx.com/sf/go/post6480

Attachment: Text shutdown.c 4.42 KB
Re: RE: shutdown utility -- source code  
Thank you Hugh !!

Regards,
Jacek
Re: RE: shutdown utility -- source code  
One more problem.

Where can I find ...util/stdutil.h header file ?

Regards,
Jacek
RE: RE: shutdown utility -- source code  
Here is the source with the required definitions. I cannot give you the
stdutil.h file, so have included the definitions in the source.


-----Original Message-----
From: Jacek Rudnicki [mailto:jacek.rudnicki@quantum.com.pl] 
Sent: Wednesday, April 16, 2008 8:30 AM
To: qnx4-community
Subject: Re: RE: shutdown utility -- source code

One more problem.

Where can I find ...util/stdutil.h header file ?

Regards,
Jacek

_______________________________________________
QNX4 Community Support
http://community.qnx.com/sf/go/post6880

Attachment: Text shutdown.c 4.51 KB
Re: RE: RE: shutdown utility -- source code  
Our custom shutdown works fine :-D.

Once again thank you for providing source code!!

Jacek
Re: RE: RE: shutdown utility -- source code  
Hello Jacek,

is it possible to get the source of your Power off procedure ?

(I try to implement an APM power off.)


Best regards

Matthias
Re: RE: RE: shutdown utility -- source code  
Hello Matthias,

Please send me an e-mail. Then we will continue this thread...

Best Regards,
Jacek
Re: RE: RE: shutdown utility -- source code  
> Hello Matthias,
> 
> Please send me an e-mail. Then we will continue this thread...
> 
> Best Regards,
> Jacek


Hello Jacek,
I am also interested in power off procedure. Can I get one? Sorry but I don't know how to get your e-mail.

Best Regards,
Serge
Re: RE: RE: shutdown utility -- source code  
Hello Serge,

I'm avaialble at: jacek@quantum.com.pl.

Regards,
Jacek
Re: Re: RE: RE: shutdown utility -- source code  
Hello Jacek,

We need software able to turn off the power under qnx4. I'm searching for the source code or at least the idea how to do
 this. Thanks in advance.

Regards,
Serge
Re: Re: RE: RE: shutdown utility -- source code  
Hi Serge,

please write me a private message.

Regards,
Jacek
Re: Re: RE: RE: shutdown utility -- source code  
Hello Jacek,

We need software able to turn off the power under qnx4. I'm searching for the source code or at least the idea how to do
 this. Thanks in advance.

Regards,
Serge
Re: RE: RE: shutdown utility -- source code  
Hi all,
does somebody have a solution to completely power-off a QNX-host after shutdown that he is willing to share?
Any hints or comments on how I can achive this behaviour are warmely welcome. 

At the moment I'm using the acpi-server available as a binary form Rick Duff to aquire the status of the power button.  

http://www.openqnx.com/downloads/projects/phan/

Does anybody know if this can also be used to send a ACPI command to power-off the machine?

Cheers Christian
Re: RE: shutdown utility -- source code  
Hello Hugh,

Looks like there is a bug in loop waiting for the Fsys shutdown:
...
while( qnx_psinfo( 0, pid, &psdata, 0, 0 ) == 0  &&  psdata.pid == pid ) {
...

The qnx_psinfo() function returns process id or -1 on error.
So, with present condition while doesn't execute.

Regards,
Jacek

Re: shutdown utility -- source code  
OK, thanks. I'll take a look at it.

Hugh.


On 10-08-23 5:09 AM, "Jacek Rudnicki" <community-noreply@qnx.com> wrote:

> Hello Hugh,
> 
> Looks like there is a bug in loop waiting for the Fsys shutdown:
> ...
> while( qnx_psinfo( 0, pid, &psdata, 0, 0 ) == 0  &&  psdata.pid == pid ) {
> ...
> 
> The qnx_psinfo() function returns process id or -1 on error.
> So, with present condition while doesn't execute.
> 
> Regards,
> Jacek
> 
> 
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post63891
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8