[Android Stick & Console AMLogic based Computers] salehdeh76:
Hello guys

I have a p212 board (SoC:s905x) and a SDK for android 7.1. There is a problem

When I suspend the box (either via IR remote or command) It does not wakeup by any source. Neither Mouse and Keyboard (HID) nor IR remote can not wake it!

What is the reason for this?

I pasted UART log here (when I suspend it via IR remote;):

[ 111.176638@1] ion_dev ion_dev.21: Fail to allocate buffer
[ 116.933671@0] ion_dev ion_dev.21: Fail to allocate buffer
[ 116.989352@3] ion_dev ion_dev.21: Fail to allocate buffer
[ 117.121349@0] ion_dev ion_dev.21: Fail to allocate buffer
[ 117.743720@2] request_suspend_state: sleep (0->3) at 117587466304 (2015-01-01 00:01:59.546593178 UTC)
[ 117.747276@2] request_suspend_state,164,old_sleep=0,new_state=3
[ 117.753191@2] early_suspend: call handlers
[ 117.757242@2] RTL871X: rtw_early_suspend
[ 117.786311@2] avmute set to 2
[ 117.886354@2] hdmitx: system: HDMITX: early suspend
[ 117.886399@2] hdmitx: system: unmux DDC for gpio read edid
[ 117.891041@2]
[ 117.891041@2] vdac_enable: on:0,module_sel:8
[ 117.897038@2] fb: osd_suspended
[ 117.901938@2] gxbb_pm: meson_system_early_suspend
[ 117.904781@2] early_suspend: sync
[ 117.905152@1] RTL871X: cfg80211_rtw_scan(wlan0)
[ 117.906429@0] RTL871X: cfg80211_rtw_scan: bBusyTraffic == _TRUE
[ 117.908833@0] RTL871X: rtw_android_priv_cmd: Android private cmd "SETSUSPENDMODE 0" on wlan0
[ 117.908842@0] RTL871X: Unknown PRIVATE command SETSUSPENDMODE 0 - ignored
[ 117.959868@1] RTL871X: rtw_android_priv_cmd: Android private cmd "SETSUSPENDMODE 1" on wlan0
[ 117.962712@1] RTL871X: Unknown PRIVATE command SETSUSPENDMODE 1 - ignored
[ 119.948194@1] PM: suspend entry 2015-01-01 00:02:01.751071888 UTC
[ 119.948642@1] PM: Syncing filesystems ... done.
[ 119.957541@1] Freezing user space processes ... (elapsed 0.317 seconds) done.
[ 120.275676@1] Freezing remaining freezable tasks ... (elapsed 0.004 seconds) done.
[ 120.285863@0] cpufreq: cpufreq_suspend: Failed to stop governor for policy: ffffffc020cc6c00
[ 120.289074@0] cpufreq: cpufreq_suspend: Failed to stop governor for policy: ffffffc020cc6c00
[ 120.297494@0] cpufreq: cpufreq_suspend: Failed to stop governor for policy: ffffffc020cc6c00
[ 120.347286@0] RTL871X: suspend start
[ 120.347457@0] RTL871X: ==> rtw_suspend_common (kworker/u8:2:2740)
[ 120.351505@0] RTL871X: LeaveAllPowerSaveModeDirect.....
[ 120.356739@0] RTL871X: LeaveAllPowerSaveModeDirect: Driver Already Leave LPS
[ 120.363746@2] RTL871X: rtw_cmd_thread(wlan0) stop_req:1, break
[ 120.369649@0] RTL871X: ==> rtw_suspend_normal(wlan0) entry....
[ 120.375246@0] RTL871X: ==> rtw_suspend_free_assoc_resource(wlan0) entry....
[ 120.382591@0] RTL871X: rtw_suspend_free_assoc_resource Sharif-WiFi(78:8a:20:dd:ff:56), length:11 assoc_ssid.length:11
[ 120.396710@2] RTL871X: SetHwReg8188E(wlan0): [HW_VAR_MACID_WAKEUP] macid=0, org reg_0x48c=0x00000000
[ 120.404645@2] RTL871X: ### Clean STA_(0) info ###
[ 120.406584@2] RTL871X: free disconnecting network
[ 120.411008@2] RTL871X: rtw_cfg80211_unlink_bss(): cfg80211_unlink Sharif-WiFi!! () RTL871X: <== rtw_suspend_free_assoc_resource(wlan0) exit....
[ 120.423732@2] RTL871X: ==> rtw_suspend_free_assoc_resource(p2p0) entry....
[ 120.430898@2] RTL871X: <== rtw_suspend_free_assoc_resource(p2p0) exit....
[ 120.437774@2] RTL871X: CheckIPSStatus(): Read 0x100=0xff 0x86=0x00
[ 120.443569@2] RTL871X: ===> rtw_dev_unload
[ 120.447839@2] RTL871X: exit rtl8188es_xmit_thread
[ 120.452954@2] RTL871X: CheckIPSStatus(): Read 0x100=0xff 0x86=0x00
[ 120.458984@2] RTL871X: rtw_dev_unload: driver not in IPS
[ 120.463498@2] RTL871X: =>rtl8188es_hal_deinit
[ 120.468041@2] RTL871X: =>hal_poweroff_8188es
[ 120.477071@2] RTL871X: SetHwReg8188E: bMacPwrCtrlOn=0
[ 120.480311@2] RTL871X: SetHwReg8188E: bMacPwrCtrlOn=0
[ 120.482028@2] RTL871X: <=hal_poweroff_8188es
[ 120.486249@2] RTL871X: <=rtl8188es_hal_deinit
[ 120.490804@2] RTL871X: <=== rtw_dev_unload
[ 120.494621@2] RTL871X: ===> rtw_dev_unload
[ 120.499466@2] RTL871X: exit rtl8188es_xmit_thread
[ 120.503681@2] RTL871X: CheckIPSStatus(): Read 0x100=0x00 0x86=0x00
[ 120.509725@2] RTL871X: rtw_dev_unload: driver not in IPS
[ 120.514715@2] RTL871X: <=== rtw_dev_unload
[ 120.520232@2] RTL871X: <== rtw_suspend_normal(wlan0) exit....
[ 120.524493@2] RTL871X: rtw suspend success in 170 ms
[ 120.529751@2] RTL871X: <=== rtw_suspend_common return 0.............. in 180ms
[ 120.536724@2] RTL871X: cmd: sdio:0001:1: suspend: PM flag = 0x1
[ 120.542484@2] RTL871X: cmd: suspend with MMC_PM_KEEP_POWER
[ 120.590073@1] aml_snd_card: enter aml_suspend_pre
[ 120.600954@3] aml_T9015_audio_suspend!
[ 120.601186@3] aml_snd_card: enter aml_suspend_post
[ 120.604371@3] meson_uart c11084c0.serial: pull up rts
[ 120.609982@0] amvecm: suspend module
[ 120.612614@0] vdin_drv_suspend ok.
[ 120.615868@0] vdin_drv_suspend ok.
[ 120.620759@0] sysled: module suspend ok
[ 120.623239@0] meson-remote c8100580.rc: remote suspend
[ 120.628994@0] PM: suspend of devices complete after 343.218 msecs
[ 120.634106@0] gxbb_pm: enter meson_pm_prepare!
[ 120.643514@0] di: di_suspend
[ 120.644020@0] PM: late suspend of devices complete after 5.402 msecs
[ 120.654565@0] PM: noirq suspend of devices complete after 6.587 msecs
[ 120.655444@0] Disabling non-boot CPUs ...
[ 120.666930@0] CPU1: shutdown
[ 120.678667@0] CPU2: shutdown
[ 120.689446@0] CPU3: shutdown
[ 120.694752@0] gxbb_pm: enter meson_pm_suspend!
[ 120.694752@0] gxbb_pm: late_suspend: call handlers
[ 120.694752@0] gxbb_pm: late_suspend: sync
bl30 get wakeup sources!
process command 00000006
bl30 enter suspend!
cpu clk suspend rate 100000000
suspend_counter: 1
Enter ddr suspend
first time suspend
ddr suspend time: 1887us
store restore gp0 pll
process command 00000001
CEC cfg:0x002f
set vddee to 0x035cmv
08915d0000000000cec reset
kern log_addr:0x04
rx stat:00, tx stat:00
rx stat:00, tx stat:01
ping_cec_ll_tx:TX_ERROR
Set cec log_addr:0x04, ADDR0:14

I am very suspicious about this line:

[ 120.285863@0] cpufreq: cpufreq_suspend: Failed to stop governor for policy: ffffffc020cc6c00

Would anyone explain this?

Thanks.