The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-01-24
, 10:41
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#482
|
The Following 4 Users Say Thank You to mautz For This Useful Post: | ||
|
2017-01-24
, 10:59
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#483
|
@rinigus
No modifications to kernel at the moment, since im running my cm13 port.
I completely disabled bluetooth an hour ago: Stats so far are:
CPU sleep % Max 97 Last 95
Duration average is 109
I'll let it run through the night to give more stats.
But the problem is that i don't know how to fix the bluetooth wakelock issue in cm12.1 and cm13 ports at the moment.
The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||
|
2017-01-26
, 21:05
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#484
|
The Following 5 Users Say Thank You to mautz For This Useful Post: | ||
|
2017-01-27
, 02:17
|
Posts: 1,298 |
Thanked: 2,277 times |
Joined on May 2011
|
#485
|
The Following 2 Users Say Thank You to shmerl For This Useful Post: | ||
|
2017-01-27
, 19:26
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#487
|
The Following User Says Thank You to mautz For This Useful Post: | ||
|
2017-01-27
, 20:57
|
Posts: 1,298 |
Thanked: 2,277 times |
Joined on May 2011
|
#488
|
Mhh, what about all the other drivers? I don't think that Qualcomm and Broadcom will release updated drivers for new kernel versions.
The Following User Says Thank You to shmerl For This Useful Post: | ||
|
2017-01-27
, 21:15
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#489
|
echo 0 > /proc/bluetooth/sleep/lpm && dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:false && echo 1 > /proc/bluetooth/sleep/lpm
chmod 666 /proc/bluetooth/sleep/lpm
devel-su systemctl stop hciattach
The Following 3 Users Say Thank You to mautz For This Useful Post: | ||
|
2017-01-27
, 21:21
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#490
|
@rinigus
Battery usage is a bit lower when suspend is working.
I also found the cause for the wakelocks, the bt config is missing in /proc
/proc/bluetooth/sleep/lpm for example, but i don't know why they are not created atm.
EDIT: This happens because CONFIG_BT_MSM_SLEEP is not enabled in the kernel, since this could cause trouble with bluez. I'll try it anyway I report back.
The Following 3 Users Say Thank You to rinigus For This Useful Post: | ||
Tags |
hammerhead, nexus5, sailfishos, sfdroid |
|
To my understanding, there are tradeoffs with CPU sleep which are related to larger number of operations that device has to do when entering/exiting sleep.
So, let's see how long does one sleep cycle lasts. For that, under CPU sleep graph in SystemDataScope, you have a stats on "Duration of single suspend" and "Suspend overview". For now, we can just check the duration. On OPX, I have 60-150 s during a night and 0-40 s during a relatively active period of use. For reference, the CPU sleep % goes and stays at 97% during most of the time in a night.
How large CPU sleep % do you get when you let the device rest?
How long is an average duration of a single suspend?
Note that 150s is probably induced by collectd itself, since I have to wakeup the device to measure the stats. So far, I haven't seen any major impact on battery life when using such relatively rare wakeups.