![]() |
Re: Overzealous suspend everything watchdog [workaround included]
Quote:
And lo and behold!, it works just as you describe. If I do not touch anything it will not refresh. If I touch a key, it will refresh. Also, if I ping it from another device, it starts to refresh the top listing. Quote:
|
Re: Overzealous suspend everything watchdog [workaround included]
Quote:
|
Re: Overzealous suspend everything watchdog [workaround included]
Quote:
I tried that command, logged off and logged back on, and now when I launch "top" it does refresh continiously... How is that? |
Re: Overzealous suspend everything watchdog [workaround included]
Quote:
|
Re: Overzealous suspend everything watchdog [workaround included]
With just ssh in top does indeed pause for me. I'd not noticed this before. I presume it's because I usually have an sshfs running too as that's the only semi-nice way I can get to it from my Mac.
|
Re: Overzealous suspend everything watchdog [workaround included]
After 8 hours off charger the SbJ is at 60% with the suspend disabled which is not bad, so I think I'll keep it like this. Definitely better than the Z10.
The only thing I miss is the double-tap to unlock, especially now that the phone wakes up instantly. Before it took a couple of seconds to wake up, to the point that I pressed a second time resulting in the phone responding to both events and waking up for a moment before sleeping again. |
Re: Overzealous suspend everything watchdog [workaround included]
I've been reading the Android kernel source a bit (I'm an Android hater, not a hacker, and would prefer to keep it that way ;) -- besides I feel like puking every time I read some of the hacks).
Seems that user-space wakelocks are not reclaimed when the process dies -- and thus they are prone to being leaked (a dubious decision if you ask me). But then this means that the approach in the first post is a valid way to take a permanent wake lock: Code:
echo asdf > /sys/power/wake_lock I have no idea why it doesn't work for szopin -- maybe we are talking about two different problems here? What's exactly the difference with mcetool "suspend policy"? I am quite sure that with an active wakelock it does not suspend at all. Besides, with the wake_lock, double tap to unblock still works. Quote:
If I had known beforehand that the Jolla device used opportunistic suspending, I probably would never have bought it. I know they probably had no choice.... The good news is that I was using "permanent wake_lock" mode to workaround this and that it had 'acceptable' battery life when compared to the stock (with tohd running) software. The bad new this is that improving the battery life when under "permanent wake_lock" mode might be very well impossible. The kernel is full of hacks (Qualcomm-made no doubt) that just assume the device is going to spent most of its time suspended. There are bazillions of sub-second timers everywhere, in the kernel, the Android side... |
Re: Overzealous suspend everything watchdog [workaround included]
Quote:
Quote:
Quote:
|
Re: Overzealous suspend everything watchdog [workaround included]
Quote:
--------- So, I've found the difference. Seems that Android has a middle state between suspend and normal that is called "early-suspend". "Double tap to unlock" seems to be enabled during early-suspend, and thus will only work when the device is either suspend or "early-suspended". Having a wakelock prevents the device from suspending when the screen is off, but it will not prevent it from going to early-suspend, it seems. So double tap to unlock works and I presume some peripherals are put in a low power mode (dynpm on Android is basically non-existant it seems). Using mcetool --set-suspend-policy=disabled disables BOTH suspending and early-suspend altogether. Therefore, double tap to unlock does not work. However, there is a third method, mcetool --set-suspend-policy=early, which enables early-suspend only. I suspect this third method will be exactly the same as taking a wakelock. |
Re: Overzealous suspend everything watchdog [workaround included]
Tomorrow's question, does the SbJ have better battery life with --set-suspend-policy=early?
So far I'm pretty much happy that it made it for 14 hours with 15% remaining with suspend completely disabled. |
All times are GMT. The time now is 21:03. |
vBulletin® Version 3.8.8