M1cha / android_device_xiaomi_aries

Xiaomi MI2
24 stars 25 forks source link

WiFi lose signal while screen locked #76

Open lance6716 opened 9 years ago

lance6716 commented 9 years ago

Someone have the problem too according to xiaomi.eu forum. http://xiaomi.eu/community/threads/discussion-cm12-for-aries-by-m1cha.26162/page-30

I've noticed when I unlocked the photo WiFi will reconnect, and the battery usage shows WLAN turned off at about 15 min after the screen-off

M1cha commented 9 years ago

does this still happen?

lance6716 commented 9 years ago

version 5.5.5 cm12.1 20150730. not sure. might happens if there is no background IM apps(QQ or Wechat for me Chinese user), i'll check it asap.

lance6716 commented 9 years ago

exist.

lance6716 commented 9 years ago

Happened again when there is a background IM app. Perhaps my WiFi is poor.

Roysten commented 9 years ago

Can confirm, happens to me as well. Possible workaround (by Frankenstu): http://forum.cyanogenmod.org/topic/107023-cm12121-wifi-connectivity-issuesdrops-workaround-included/#entry523766.

Go to Settings / Wi-Fi / Advanced

Go to "Keep Wi-Fi on during sleep"

Select "Never"

Now Go back in and re-select "Always"
Roysten commented 9 years ago

@M1cha I get the following errors in dmesg:

<4>[39941.591033] Suspending console(s) (use no_console_suspend to debug)
<6>[39941.599700] msm_fb_ext_suspend: Turning off HPD circuitry
<3>[39941.613311] wlan: [21668:E :HDD] hdd_is_apps_power_collapse_allowed: do not allow APPS power collapse-pmcState = 6 scanRspPending = 0 inMiddleOfRoaming = 1
<3>[39941.613341] wlan: [21668:E :HDD] wlan_suspend: Fail wlan suspend: not in IMPS/BMPS
<3>[39941.613372] wlan: [21668:F :HDD] hddDevSuspendHdlr: Not able to suspend wlan
<3>[39941.613402] dpm_run_callback(): platform_pm_suspend+0x0/0x54 returns -1
<3>[39941.613433] PM: Device wcnss_wlan.0 failed to suspend: error -1
<3>[39941.613463] PM: Some devices failed to suspend

Not sure if these errors are related to this problem. I do notice a bigger battery drain when the display is turned off compared to Kitkat. Could this be caused by the wlan failing to suspend?