The Following 2 Users Say Thank You to juiceme For This Useful Post: | ||
|
2013-12-28
, 22:27
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#22
|
The Following User Says Thank You to javispedro For This Useful Post: | ||
|
2013-12-28
, 23:06
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#23
|
The problem with that is that wake locks are deleted when the process that created them dies. In the above command line, a subshell (or /bin/echo) is the one creating the wakelock and thus the lock dies as soon as echo dies, which is immediate.Code:This supposedly could help (from irc when asking if screen on could be faked): echo asdf > /sys/power/wake_lock
The Following 2 Users Say Thank You to juiceme For This Useful Post: | ||
|
2013-12-29
, 00:02
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#24
|
The Following User Says Thank You to javispedro For This Useful Post: | ||
|
2013-12-29
, 01:19
|
Posts: 702 |
Thanked: 2,059 times |
Joined on Feb 2011
@ UK
|
#25
|
|
2013-12-29
, 19:47
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#26
|
|
2013-12-29
, 21:09
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#27
|
echo asdf > /sys/power/wake_lock
With just ssh in top does indeed pause for me. I'd not noticed this before.
The Following 15 Users Say Thank You to javispedro For This Useful Post: | ||
|
2013-12-29
, 21:22
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#28
|
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.
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...
|
2013-12-29
, 22:05
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#29
|
Never said it doesn't, just thought I'd mention it as had to run and my question on IRC had no other answers at this point.
|
2013-12-30
, 00:39
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#30
|
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.