![]() |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
If have a second SFOS to test SF updates and check if the patches i use are working, and i test the kernelsbefore i install them on my main SFOS installation. By the way a new kernel is on the way with updated wifi drivers and some power managment improvements, i hope to release it this evening. Regarding the powersave when the phone is suspended, if the phone is in idle state the tick rate does not matter that much, since kernel 3.4 is nearly running tickless when idle. Sadly full tickless mode was introduced in kernel 3.10 and i haven't found a working 3.10 version for the N5. EDIT: Seems francos kernel for the N5 is tickles...looks like i've got some work to do :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Concerning the battery drain, when the screen is on, maybe we are lacking hardware accleration of the GPU? Scrollingthrough the apps menu can bring the CPU usage up to 100%.
Edit: I checked the CPU usage in Android 6 it is about 30-40% lower. This is way better, but this alone can't be the cause for the huge difference in battery life...if this is true. Has anyone used the Nexus5 with Android 5.1 before switching to SFOS and can confirm that there is such a huge difference? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I can confirm the huge difference. I used my N5 on Copperhead, which was 5.1.1 Lollipop, and it lasted literally 3-4 days without Google Play services. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Power drain is consistent regardless of which radios I disable or enable, so I'm not sure the radios are actually being turned off. If I turn off WiFi, Bluetooth, etc., it still draws an identical amount. This seems a little strange to me. Maybe the root here is the radio management? Pure speculation, of course. Doesn't hurt to get it out there though! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I speculated on syncthing, removed it and voila battery life is better as the phone sticks to 3G since a day though i have set it to 4G in the settings:-) In the past sensors have caused major issues on battery life, i have about 1.5%-2.0% here for both sensor processes with sfos 2.0.5. Can someone drop his numbers and sfos version here, especially lower sfos versions would be interesting. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Hi,
it's the same numbers for me, but they haven't changed during the updates(i'm now on 2..0.5.6). Disabling unneded sensors doesn't lower the CPU usage much. High usage only occurs when the sensors process crashes, which happens sometimes. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
i'm using sailfish 2.0.1.1 , if you tell me what test to do i will do it ;)
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
3 Attachment(s)
Have been following this thread with great interest - even without N5. However, I think we have similar problems on other devices.
I'd like to confirm the significantly larger drain in SFOS when compared to Android. At least, that was about a year ago on Nexus 4. As far as I remember, on Android, I could get about 2x longer on a single charge than in SFOS these days (SFOS did improve over a year on N4, at the beginning, the difference was even larger). So, the battery life difference is, in my experience on N4, similar to what as been suggested by some of you on N5. Whether the difference is due to radios not switching off is hard to say. At least, as reported by rfkill interface at /sys/class/rfkill, the Linux kernel thinks the bluetooth and WiFi are as I expect them to be on N4 (and on OnePlus X). I have never seen any discrepency on the radio state when following rfkill interface by collectd. Whether Linux kernel gets fooled, that's another question. Finally, when reporting CPU usage on sensors, I guess it would be great to specify how you measure it. If you use top then you are measuring against CPU time. Alternative is to measure against the wall time taking into account time which device was sleeping. An example logs for 24h of CPU sleep and sensor related sensorfwd and sensors.qcom processes are attached. These were recorded on OnePlus X, 2.0.2 and, as you could see, sensors account to 0.15% of wall time. Taking average sleep of 85% over that period, we get 1% of CPU time for sensors on this device. While different hardware, I hope that these observations are of use for you as well. |
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. |
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?
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
How's the testing coming, @mautz? :D
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
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 |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
that's the content:
Code:
[Desktop Entry] Code:
#!/bin/sh |
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. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
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! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Code:
#!/bin/sh |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Nothing is changed, it seems that the command is not executed. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
The test was done on 2.4.13 Image and 2.0.5.6 I mentioned was OTA updated from same. Unfortunately it's pretty hard for me to know what parameters to use in kernel since the information is spread over tens of posts and not very well explained (not complaining, just saying) or convincing enough. Right now I'm testing 2.0.5.6 with the code from post 225, see how it goes. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I retried after a reboot, if I open sfdroid, I close and reopen it, it works!
re-thank you :D edit: i talked too early, now sfdroid doesn't start anymore, with the original .sh file and with the modified 2nd edit: now sfdroid works, dont't know why |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Sorry for the delay...here is kernel v9.
Code:
Changelog: Powersuspend is the new suspend mechanism which will be used instead of earlysuspend in the future. So not many kernel functions use this at the moment. I'm going to update as many as possible in the future. Partialresume should give some lower powerconsumption when using wifi, because more things are handled by the kernel now. Download here Source is available here. I'm going to write a little textfile, which includes the complete changelog of all released kernels and the values which can be customized in sysfs for people who don't want to search the whole thread. Just give me a few days, since i have a lot of other work to do lately. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I first want to thank mautz for the new kernel.
I realized that the new v9 kernel ('Kernel Tick Clock') is again at 300hz, while I am a strong defender of 100hz (at least right now). Being able to compile my own kernel now, I decided to give you a link to my version of the v9 kernel. There are only two minor modifications... My kernel runs at '100hz' and 'swap' is also enabled. That will allow you to create a swapfile and use it as swap partition. The reason for this is simple: I want to avoid lipstick crashes, when running out of physical memory. Sfdroid users might benefit from this solution. You can download the kernel here. Mautz kernel sources here... Create swapfile: (source: https://www.cyberciti.biz/faq/linux-...ap-file-howto/ ) Code:
dd if=/dev/zero of=/swapfile bs=1024 count=524288 Code:
/swapfile none swap sw 0 0 |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I'll start working on a table of tested settings and outcomes. Trying to decided what factors to prioritize. UX smoothness and idle voltage draw are really the only things I consider. Will update as it progresses. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Also, I'm going to put together my toolchain. May pick your brain a little later on your setup. I tried a couple linaro 4.9.4 installs and kept getting compile errors. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Hello,
I am new in this Sailfish flashing stuff and I try to get sfdroid to work on my nexus 5. Finally a managed to install CM13 as a base ROM and then latest Multirom v33. On top of that CM 12.1 latest stable snapshot (20150901) with SFOS 2.0.4.13. Now I try to install sfdroid as described in this thread. Unfortunately "Flash Zip" in TWRP Multirom Recovery does not work. The button does nothing. "unable to locate page (multirom_flash_select)" is the error message I get. How can I fix that? Otherwise I won't be able to flash the sfdroid, gapps and the sensorsfix3 (I still don't know if this sensorsfix is necessary) Could you please give me an advice how to solve this issue and get this button to work again or how I can flash the necessary packages? Thanks! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Shame on me, I did not see that line...sorry.
Thank you, I will try that file now. Is the sensorsfix also still needed with the latest SFOS version? edit: worked! Also the sensorsfix :) One additional question: Quote:
Now I start sfdroid but nothing happens. Window starts minimized and is closed few seconds later. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
@minimec
Sorry, this happens if you don't update the defconfig file...i'll push the updated defconfig file with the 100hz option to the github repository later. Good work on building the kernel yourself :-) EDIT: Updated. @F0x123 You need to restart SFOS after adding nemo to the bt_stack group. Some more thoughts about the battery drain problem, i think it has something to do with the fact that the SFOS port is not completely using all of the android functions to suspend unused hardware or even use all the power saving functions, that are you used when using Android alone. For example, listening to audio uses the CPU instead of the Nexus audio DSP. I think there are some more thinks that are not fully working. Another thing is the CPU usage of many programs. Webcat and Webpirate use much more CPU power when in idle than the stock browser. Many apps don't go to sleep when the phone is suspended. Booster-silica-qt5 wakes the phone up every few seconds and so on... I don't know if this is the same on Jolla1, i haven't checked it until now. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Yes, thank you. One step further. :)
Now CM starts booting but is stuck in a loop. :( |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
You could try Code:
devel-su pkill surfaceflinger |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I used the latest
sailfishos-hammerhead-release-2.0.4.13-beta5-201610241556.zip http://images.devaamo.fi/sfe/hammerhead/beta5/ and cm-12.1-20150901-SNAPSHOT-YOG4PAO237-hammerhead.zip https://download.cyanogenmod.org/?device=hammerhead All other files like sfdroid, sensorsfix3 and twrp recovery I took from this thread. I skipped the gapps package. Killing the process and restarting does not change the results. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
The problem is the SFOS 2.0.4.13 image, which prevents SFDroid from starting. You need to reinstall using the image 2.0.1.11 image of the first post. You can upgrade to the latest SFOS version afterwards.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
ok, thanks. Can I just flash 2.0.1.11 over the existing SFOS or do I have to do a clean reinstall?
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I would do a clean reinstall.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Hey, sfdroid is running :) Thank you very much for your support!
Is there any how to for sfdroid. I am looking for answer for issues like: How can I start an android app directly from SFOS? Can I use paid apps from google play? Can I use whatsapp and get push notifications? And also how can I update SFOS to the latest version? System update tells me the version is the latest, which is not true... |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
All times are GMT. The time now is 15:57. |
vBulletin® Version 3.8.8