Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX Power Modes. : (2 Items)
   
QNX Power Modes.  
Hi All, 

We are working on Application using Power Mode provided by QNX Power Management Framework on ARM CortexA7 based Board 
and for one of our application we need to put the processor into sleep, standby etc., modes supported by QNX. So, here 
looking at QNX referral document we found that sysmgr_cpumode(int mode) does the job for us. But, wanted to know more on
 this function i.e., specifically int mode, what are these mode values to be passed while calling the API. Are these 
mode values are defined in QNX Library. If so, where? If not how can we handle CPU Modes using this function. 

On reading more about this API, understood that QNX Power Callout will be called by QNX Kernel when this API is called 
from User Space. Will QNX kernel calls Power Callout whenever API is called irrespective of the mode value or it depends
 on any specific mode values. Like,
MODE Value = GOTOSTANDBY    -- Calls Power Callout which changes CPU Mode to Standby
MODE Value = GOTOIDLE    -- Calls Power Callout which changes CPU Mode to IDLE  and so on.

Can anyone help me in understanding the QNX Power Mode API’s.

FYI,  We do not have Power Management Unit on our hardware. 

Best Regards,

Dinakar Babu R
Re: QNX Power Modes.  
> 
> Hi All, 
> 
> We are working on Application using Power Mode provided by QNX Power 
> Management Framework on ARM CortexA7 based Board and for one of our 
> application we need to put the processor into sleep, standby etc., modes 
> supported by QNX. So, here looking at QNX referral document we found that 
> sysmgr_cpumode(int mode) does the job for us. But, wanted to know more on this
>  function i.e., specifically int mode, what are these mode values to be passed
>  while calling the API. Are these mode values are defined in QNX Library. If 
> so, where? If not how can we handle CPU Modes using this function. 
> 
> On reading more about this API, understood that QNX Power Callout will be 
> called by QNX Kernel when this API is called from User Space. Will QNX kernel 
> calls Power Callout whenever API is called irrespective of the mode value or 
> it depends on any specific mode values. Like,
> MODE Value = GOTOSTANDBY    -- Calls Power Callout which changes CPU Mode to 
> Standby
> MODE Value = GOTOIDLE    -- Calls Power Callout which changes CPU Mode to IDLE
>   and so on.
> 
> Can anyone help me in understanding the QNX Power Mode API’s.
> 
> FYI,  We do not have Power Management Unit on our hardware. 
> 
> Best Regards,
> 
> Dinakar Babu R

Missed to Mention -- We are using QNX 6.6 SDP.