Bay trail, not work suspend on new kernels 4.14+ if wifi is enabled

145 views
Skip to first unread message

Kitsune

unread,
Apr 18, 2018, 3:10:20 PM4/18/18
to Android-x86
If use kernel 4.14rc7 all is ok, but if use 4.14+ problem with suspend, if i'm enable wifi (broadcom, use bcmfmac driver) and press power button, i see black screen, low backlight, and tablet freezes. And can't efit from sleep. If wifi disabled, suspend/sleep work correctly, how fix this? Problem on all kernels 4.14, 4.15, 4.16, 4.17rc1.
I'm use this fix suspend patches

spin877

unread,
Apr 20, 2018, 4:04:28 PM4/20/18
to Android-x86
I also found this problem on a tablet bay trail
I bypassed 
with the  app Script Manager-Smanager creating a widget to the sleep.sh script



creating this script:


#!/system/bin/sh
svc wifi disable
sleep 1
rmmod r8723bs
sleep 1
su -c  echo 1 > /sys/power/pm_trace  &  echo  mem > /sys/power/state 
sleep 2
modprobe r8723bs
sleep 2
svc wifi enable



maybe you r8723bs module and superfluous to you


P.S.
another solution would be to modify the hex /sys/power/state string line in the libsuspend.so file.
but as you can see, they are barbaric "solutions" not at all elegant.

/libsuspend/autosuspend_wakeup_count.c

-#define SYS_POWER_STATE "/sys/power/state"
+#define SYS_POWER_STATE "/sys/power/state__________"
 

youling 257

unread,
Apr 20, 2018, 9:46:57 PM4/20/18
to Android-x86
ours 8723bs needn't rmmod,suspend no problem.
but wlan0 wakeup,no network,have to reconnect wifi.
the eth0 wake up,network working,needn't reconnect.

在 2018年4月21日星期六 UTC+8上午4:04:28,spin877写道:

youling 257

unread,
Apr 20, 2018, 9:57:35 PM4/20/18
to Android-x86
you said which problem ? hub 1-0:1.0: Unbalanced pm_runtime_enable! usb usb1-port1: Unbalanced pm_runtime_enable,this problem ?
with “rtc: cmos” patch,the 8723bs bay trail devices suspend no problem on Ubuntu/debian,but Androidx86 must use “x86/platform, acpi” patch to make suspend and volume keys both work.

revert “rtc: cmos”,no the unbalanced problem on Androidx86,this must because Androidx86 rtc.

在 2018年4月21日星期六 UTC+8上午4:04:28,spin877写道:
I also found this problem on a tablet bay trail

Kitsune

unread,
Apr 21, 2018, 2:35:55 AM4/21/18
to Android-x86
Second solution work? It disable sleep or what? Sleep will be work or no? I'm want that sleep work

пятница, 20 апреля 2018 г., 23:04:28 UTC+3 пользователь spin877 написал:
Reply all
Reply to author
Forward
0 new messages