PINE64
Is there any way to tell CRUST to leave the wifi alone? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: UBPorts on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=125)
+---- Thread: Is there any way to tell CRUST to leave the wifi alone? (/showthread.php?tid=11184)



Is there any way to tell CRUST to leave the wifi alone? - Athansor - 08-28-2020

It would be wonderful if CRUST could be configured to leave both the cellular data and wifi networks alone if they are being used by an app when turning off the screen. Otherwise, that terrific podcast you're listening to about penguins just goes pfft! when your screen dims.

Does anyone have any hacks, scripts, bash files or magic which will allow this to happen until the devs get around to it? If you post one that works, I'll tell you everything you wanted to know about penguins.


RE: Is there any way to tell CRUST to leave the wifi alone? - bcnaz - 08-28-2020

Perhaps turn up the time on 'delay to suspend' ? ( on Mobian you can turn the delay up to 100 minutes )


RE: Is there any way to tell CRUST to leave the wifi alone? - YepYepperson - 08-29-2020

I don't think that's possible with Crust. It's a whole separate chip on the board that handles stopping the CPU and most other components when it takes over. The hardware clock is basically all that keeps running, other than the Crust chip itself.

I think a possible solution might be to have a "sleep" option that just shuts the screen off, and then maybe scales the CPU frequency way down.


RE: Is there any way to tell CRUST to leave the wifi alone? - smaeul - 09-02-2020

(08-28-2020, 04:02 PM)Athansor Wrote: It would be wonderful if CRUST could be configured to leave both the cellular data and wifi networks alone if they are being used by an app when turning off the screen. Otherwise, that terrific podcast you're listening to about penguins just goes pfft! when your screen dims.

Crust doesn't have any configuration options, and it already leaves the modem and wifi alone. Linux is what turns your wifi (and audio) off, long before it hands control over to Crust. The way you can tell Linux to not go to sleep is by using wakelocks (the same as used on Android), though I don't think the non-Android userspace support for wakelocks is very mature. If systemd-logind is what is telling Linux to go to sleep after a timeout, it has its own sleep inhibitor system:

https://www.freedesktop.org/wiki/Software/systemd/inhibit/
https://www.freedesktop.org/software/systemd/man/systemd-inhibit.html


RE: Is there any way to tell CRUST to leave the wifi alone? - vandys - 09-21-2020

I tried to use that CLI, and if I understand what it was telling me, Unity8 is already doing power management.

For those of us with XMPP communications, this is really bad, since it sounds like all processing except the special case of the modem chip are being turned off as soon as the screen darkens. Forbidding non-SMS texting (as well as listening to tunes in your earbuds!) seems pretty draconian.


RE: Is there any way to tell CRUST to leave the wifi alone? - wibble - 09-25-2020

They aren't forbidden, they just need to use the appropriate lock. Ideally the app will do this so that the lock is only taken when necessary - while actually playing media for example - otherwise with a wrapper such as systemd-inhibit. This of course has implications for battery life. I don't know if the hardware supports specific wake triggers for network traffic - say wake on incoming packet on port 22 - which could allow greater power saving.