Reply
Thread Tools
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#471
Sailfish 2.0.5.6. OTA will be hopefully available after release, but for OTA i need the camera working.

I already talked t nh1402, he'll help getting sfdroid running on cm13 base, but same as above, camera first.
 

The Following 7 Users Say Thank You to mautz For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#472
Originally Posted by mautz View Post
Looking good

Sensors are all workong like on cm12.1. Z-Axis and compass are laggy like on 12.1 but working now. CPU usage hasn't changed, see screenshot below.

http://up.picr.de/28104484jt.jpg
That's really low CPU usage. I wonder if the phone is entering CPU sleep? I have seen so low usage only when the sleep is zero(ish).
 

The Following 5 Users Say Thank You to rinigus For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#473
Most of the times it is in c3 state.
 

The Following 6 Users Say Thank You to mautz For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#474
C3 is good, but its still awake as far as I understand the states.

What about "CPU sleep %"? When all is good, that should be 90%+ while your phone is in your pocket. For me, its 95% with idle states taking in total less than 1% (i.e. phone is either asleep or doing something while awake to get into the sleep ASAP). Its different hardware + kernel, though.
 

The Following 6 Users Say Thank You to rinigus For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#475
Is there any other way to check the suspend time, in Systemdatascope this never showed anything, it does not work on 12.1port either, or it really never gets to sleep.

/sys/kernel/debugsuspend_stats shows 0, but its the same on 12.1.

Last edited by mautz; 2017-01-23 at 17:31.
 

The Following 4 Users Say Thank You to mautz For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#476
Originally Posted by mautz View Post
Is there any other way to check the suspend time, in Systemdatascope this never showed anything, it does not work on 12.1port either, or it really never gets to sleep.

/sys/kernel/debugsuspend_stats shows 0, but its the same on 12.1.
Yes, you could use mce-tools package provided mcetool:

mcetool --get-suspend-stats
uptime: 522012.239
suspend_time: 406547.645


The collectd plugin reporting CPU sleep is very simple (merged into upstream at https://github.com/collectd/collectd...src/cpusleep.c ) and is based on following two kernel clocks, as mcetool.

I presume that you would get suspend_time = 0 in mcetool output. If not, then run mcetool several times and see how the times are increasing. By following the increase in times, you could easily calculate CPU sleep percentage. Just let the phone "rest" for a bit (10 minutes) between measurements. Please, if it turns out that SystemDataScope/collectd reports sleep wrongly, let me know - github issue at SystemDataScope repo would probably be simplest (or via this thread, I'll follow it).

Usually, absence of CPU sleep means that some wakelock is not released. Maybe dmesg has something to say?
 

The Following 6 Users Say Thank You to rinigus For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#477
Not looking good:

mcetool --get-suspend-stats
uptime: 3253.005
suspend_time: 0.000

The wakelocks who keep the device from getting into sleep mode are from msm_serial_hs_dma. Seems to be bluetooth related. Strange thing is that i don't use bluetooth.

EDIT: After disabling all bluetooth services, the device does enter suspend mode.

Maybe someone can try this also on cm12.1?

Last edited by mautz; 2017-01-23 at 21:24.
 

The Following 5 Users Say Thank You to mautz For This Useful Post:
Posts: 387 | Thanked: 707 times | Joined on May 2015 @ Italy
#478
If you say me how to disable bluetooth services i'll try!
btw, i'm satisfied with the battery usage with cm12 and your kernel. But if with cm13 is better i will give a try!
 

The Following 4 Users Say Thank You to claustn For This Useful Post:
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#479
Originally Posted by mautz View Post
EDIT: After disabling all bluetooth services, the device does enter suspend mode.
Maybe someone can try this also on cm12.1?
Originally Posted by claustn View Post
If you say me how to disable bluetooth services i'll try!
btw, i'm satisfied with the battery usage with cm12 and your kernel. But if with cm13 is better i will give a try!

Also confirmed for cm12.1 with Sailfish 2.0.5.6!
Code:
devel-su
systemctl stop bluetooth
systemctl stop hciattach
Result...
Code:
[nemo@pris ~]$ mcetool --get-suspend-stats
uptime:       2554.585 
suspend_time: 1997.125
 

The Following 5 Users Say Thank You to minimec For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#480
Thanks minimec.

@rinigus

With bluetooth disabled, suspend works as it should, but the power consumption in idle does not improve.

Btw, it is also shown in systemdatascope now.
 

The Following 5 Users Say Thank You to mautz For This Useful Post:
Reply

Tags
hammerhead, nexus5, sailfishos, sfdroid


 
Forum Jump


All times are GMT. The time now is 19:10.