Android 10.2 i.MX53 power off

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Android 10.2 i.MX53 power off

790 次查看
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

标签 (2)
0 项奖励
4 回复数

633 次查看
ToxicAvenger
Contributor III

Hello,

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

Regards,

Toxic

0 项奖励

633 次查看
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

633 次查看
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 项奖励

633 次查看
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