About desk clock alarm wake up from sleep mode(imx6q with android 5.0)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About desk clock alarm wake up from sleep mode(imx6q with android 5.0)

1,123 Views
yenchao
Contributor IV

Hi all,

I'm working on imx6q with android 5.0.

We have met a problem with using desk clock alarm to wake up from sleep mode.

Sometimes it works fine, but sometimes it can't wake up,

espically when the alarm time is far from current time.

It seems like there are some problems in rescheduleKernelAlarmsLocked(AlarmManagerService.java).

We have tested this issue on boundary devices BD-SL-i.MX6.

It has the same problem.

Does any one know how to fix this issue?

Any advice or suggestions will be greatly appreciated!!

Thx

Yen

Labels (3)
0 Kudos
8 Replies

816 Views
yenchao
Contributor IV

Hi Carlos,

I have tried the patch

but it failed

and showed error message as below

Applying: Revert "ENGR00300018-1 Update USB and Power Manager driver for android linux kernel 3.10"

error: include/linux/wakelock.h: does not exist in index

error: kernel/power/main.c: does not exist in index

error: kernel/power/suspend.c: does not exist in index

error: kernel/power/wakelock.c: does not exist in index

Patch failed at 0001 Revert "ENGR00300018-1 Update USB and Power Manager driver for android linux kernel 3.10"

The copy of the patch that failed is found in:

   /media/yenchao/334fef4a-f0d4-41f6-98f4-761d950fcd8a/yenchao/work/i-mx6-android-5-0-0_1-0-0/test/.git/rebase-apply/patch

When you have resolved this problem, run "git am --continue".

If you prefer to skip this patch, run "git am --skip" instead.

To restore the original branch and stop patching, run "git am --abort".

Could you advise me how to apply the patch

Thx

Yen

0 Kudos

816 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi,

It seems the conflict of kernel version.

Can you tell me which standard GA release are you using?

Best regards!

0 Kudos

816 Views
yenchao
Contributor IV

Hi Carlos,

I have applied the patch file to the android 5.0 project successfully.

But it can't go into sleep mode now.

It just only close the screen, but when I touch the mouse, it will open the screen.

Is this the correct behavior?

Thx

Yen

0 Kudos

816 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Yen,

Have you tested it on SABRE SD or SABRE AI boards?

Could you please provide the steps to reproduce it?

Best regards!

/Carlos

0 Kudos

816 Views
yenchao
Contributor IV

Hi Carlos,

We just only tested it on boundary devices board.

(we don't have SABRE SD or SABRE AI )

1.open clock app and set an alarm after 12 hours than now.

2.sometimes it won't wake up.

Thx

Best regards

Yen

0 Kudos

816 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Yen,

AE team commented that it is a bug, and they already prepare a patch for this.

Please try the patch in the attachment.


Hope this will be useful for you.
Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

816 Views
yenchao
Contributor IV

Hi Carlos,

I have applied the patch file to the android 5.0 project.

But it can't go into sleep mode now.

Is this the correct behavior?

Thx

Yen

0 Kudos

816 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Yen,

We are internally reviewing your case.

I will post an update as soon as having news.

Best regards!

/Carlos

0 Kudos