Revert "Workaround for reliable incoming calls waking up from CRUST", no longer needed with eg25-manager and caused ModemManager restart issues

This reverts commit bcf4f5c249.
master
Maarten van Gompel 4 years ago
parent 262418637f
commit d2d06ef65a
  1. 4
      programs/sxmo_screenlock.c

@ -407,13 +407,11 @@ syncstate()
//---- program blocks here due to sleep ----- //
// Just woke up again
fprintf(stderr, "Screenlock woke up\n");
fprintf(stderr, "Resetting usb connection to the modem\n");
writefile("/sys/bus/usb/drivers/usb/unbind", "3-1");
writefile("/sys/bus/usb/drivers/usb/bind", "3-1");
fprintf(stderr, "Lower scan interval for quicker reconnection to wireless network\n");
writefile("/sys/module/8723cs/parameters/rtw_scan_interval_thr", "1200"); //ms
//^-- this will be undone again by a networkmanager hook after connection has been established
// or by a delayed script if no connection can be established after a while (to conserve battery)
fprintf(stderr, "Woke up\n");
if (waketime > 0) {
rtcresult = checkrtcwake();
} else {

Loading…
Cancel
Save