maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

mautz 2016-12-08 20:06

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I think our battery life problem is not sensors related...

Just wanted to share a screenshot of my battery usage today(screenshot shows last 12hours)

http://up.picr.de/27661752ux.jpg

At the moment i'm playing around with the different sfos boosters.
Ah, and i saw that sfos is running an osupdate check timer, which we don't need. It should be save to mask the the osupdate.timer and get some extra seconds of battery life ;)

New kernel is coming soon, i'll just want to test it a few days before releasing it.

claustn 2016-12-09 17:05

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
in sfdroid the command pkill zygote for the connection issue works, but I have to do it every time I open it. Is there way to make it fixed?

deprecated 2016-12-10 19:22

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
How's the testing coming, @mautz? :D

deprecated 2016-12-10 21:28

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1520314)
in sfdroid the command pkill zygote for the connection issue works, but I have to do it every time I open it. Is there way to make it fixed?

You could script it, sh script or the like. Change the “Exec” directive in the .desktop shortcut for sfdroid in /usr/share/applications to something like:
Exec=fingerterm -e "/path/to/script.sh"

sh script includes original Exec directive from the .desktop followed by pkill zygote


Forgive the lack of detail, but I don't use sfdroid. I'd be glad to help in more detail if you paste me the contents of the sfdroid .desktop shortcut in /usr/share/applications

claustn 2016-12-11 10:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
that's the content:
Code:

[Desktop Entry]
Exec=invoker --type=generic -s /usr/bin/sfdroid.sh
Icon=/usr/share/icons/hicolor/96x96/apps/sfdroid.png
Name=sfdroid
Type=Application
Version=1.0

and of /usr/bin/sfdroid.sh :

Code:

#!/bin/sh

/usr/bin/sg graphics "/usr/bin/sfdroid $@"


petrica 2016-12-11 12:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Well, on a fresh 2.0.4.13 with V8 kernel, conservative governor, lowered min_freq to 200, wifi on, no apps running, device not even touched, battery consumption in 24h was 40%. Is that good or bad? Previously I updated from 2.0.4.13 to 2.0.5.6 (which BTW is running very good and is my favorite) but the battery was draining way faster.

Also no SFDroid.

deprecated 2016-12-11 17:03

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by petrica (Post 1520363)
Well, on a fresh 2.0.4.13 with V8 kernel, conservative governor, lowered min_freq to 200, wifi on, no apps running, device not even touched, battery consumption in 24h was 40%. Is that good or bad? Previously I updated from 2.0.4.13 to 2.0.5.6 (which BTW is running very good and is my favorite) but the battery was draining way faster.

Also no SFDroid.

That sounds a bit high. That's close to what I get with the stock kernel and voltages. Have you undervolted at all? That will be your single biggest gain. Also, I'd stick to a lower limit of 249MHz, as any lower will have diminishing returns and actual losses. I actually have a fair amount less consumption on my 2.0.5.6 setup as opposed to 2.0.4.1x

Did you use the 2.0.1.11 install image following CM12.1, then the sensorsfix3.zip flash then OTA'ed to 2.0.4.1x and beyond? What I'd do is install the updated 2.0.4.13 image, as the hardware adaptation is slightly newer and seems to have improved battery life after OTA'ing to 2.0.5.6. I've settled on that method of getting the latest SFOS after much trial and error, and this method works for me every time - with the exception of the known dbus bug which is easy to get around. Let me know if you need any help!

deprecated 2016-12-11 17:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1520354)
that's the content:
Code:

[Desktop Entry]
Exec=invoker --type=generic -s /usr/bin/sfdroid.sh
Icon=/usr/share/icons/hicolor/96x96/apps/sfdroid.png
Name=sfdroid
Type=Application
Version=1.0

and of /usr/bin/sfdroid.sh :

Code:

#!/bin/sh

/usr/bin/sg graphics "/usr/bin/sfdroid $@"


You could likely add "pkill zygote" to a new line in that sfdroid.sh script, as follows:

Code:

#!/bin/sh

/usr/bin/sg graphics "/usr/bin/sfdroid $@"
/usr/bin/pkill zygote

Let me know if that doesn't work.

claustn 2016-12-11 20:06

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520393)
You could likely add "pkill zygote" to a new line in that sfdroid.sh script, as follows:

Code:

#!/bin/sh

/usr/bin/sg graphics "/usr/bin/sfdroid $@"
/usr/bin/pkill zygote

Let me know if that doesn't work.

It doesn't work :confused:
Nothing is changed, it seems that the command is not executed.

deprecated 2016-12-11 20:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1520402)
It doesn't work :confused:
Nothing is changed, it seems that the command is not executed.

I'll make a test partition with sfdroid to see if I can find a way to automate that nicely. I'll update as soon as I have a solution for you. :)


All times are GMT. The time now is 12:11.

vBulletin® Version 3.8.8