Android 10.2 i.MX53 power off

cancel
Showing results for 
Search instead for 
Did you mean: 

Android 10.2 i.MX53 power off

204 Views
ToxicAvenger
Contributor III

Hello,

I have custom board based on i.MX53 and MC34708. It is running Android 10.2.

When i short press power button, device goes to suspend, when i press again, it returns from suspend. This is ok.

Now i want to implement power down function. If i long press power button, menu with power off option appears. Device is going in suspend mode and im not able to press power off option.

How to fix this?

Best regards,

Toxic

Labels (2)
0 Kudos
4 Replies

47 Views
ToxicAvenger
Contributor III

Hello,

I still have this problem. Any help will be appreciated.

Regards,

Toxic

0 Kudos

47 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Toxic,

     Please open your BSP file and check if there is this line:

pm_power_off = mc34708_power_off;

If there is no this sentence , please add it  !  If , After you add it and the issue still exists, please send schematic to me , let me see it !

regards,

Weidong

47 Views
ToxicAvenger
Contributor III

Thanks for replay.

I already added this line. It is not working.

In my solution power is defined as:

MX53_nONKEY   (3*32 + 15)

and is used in struct:

static struct gpio_keys_button loco_buttons[] = {

    GPIO_BUTTON(MX53_nONKEY, KEY_POWER, 1, "power", 0),

    GPIO_BUTTON(USER_UI1, KEY_BACK, 1, "back", 0),

    GPIO_BUTTON(USER_UI2, KEY_MENU, 1, "menu", 0),

};

In function mxc_board_init(void) i have:

loco_add_device_buttons();

pm_power_off = mc34708_power_off;

But long power press is not working.

I'm software developer, i don't have schematic.

If you have suggestions what should be checked in hardware, please, tell me.

0 Kudos

47 Views
ToxicAvenger
Contributor III

Hello,

I disabled power functionality from board file.

Now im using only power key gpio, and im handling it by myself.

Best regards,

Toxic