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)

petrica 2016-12-11 23:59

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

Originally Posted by deprecated (Post 1520392)
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!


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.

claustn 2016-12-12 07:50

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

mautz 2016-12-13 10:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sorry for the delay...here is kernel v9.

Code:

Changelog:
- Updated wifi drivers
- Added partialresume API
- Added Powersuspend

So, nothing new to play around with this time.
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.

petrica 2016-12-13 13:49

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

Originally Posted by mautz (Post 1520488)

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.

Thanks for this (and all the work on kernel, of course!). Maybe your work should have a dedicated thread; would be easier for everyone to follow the development.

minimec 2016-12-13 20:36

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
chown root:root /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile

Enable swap @boot: Add the following line to /etc/fstab
Code:

/swapfile none swap sw 0 0
Update: I might have linked the wrong kernel file first. To be sure, I linked a new kernel zip file.

deprecated 2016-12-13 20:37

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

Originally Posted by mautz (Post 1520488)
Sorry for the delay...here is kernel v9.

Code:

Changelog:
- Updated wifi drivers
- Added partialresume API
- Added Powersuspend

So, nothing new to play around with this time.
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.

Excellent work, @mautz. I look forward to your future work with the partialresume API. I hadn't considered a dedicated thread for your kernel previously, as this has kind of been the consolidated stop for all things N5 SFOS (as well as BlueLee's thread). Searching through the threads for the best settings can surely become daunting for newcomers and those that haven't been following/testing every kernel revision and worked their own notes. So, maybe that wouldn't be such a bad idea.

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.

deprecated 2016-12-13 20:40

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

Originally Posted by minimec (Post 1520518)
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
chown root:root /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile

Enable swap @boot: Add the following line to /etc/fstab
Code:

/swapfile none swap sw 0 0

Oh wow, @minimec. That's fantastic! I was just about to ask whether it was compiled at 100Hz timer still. The swap bit is something I hadn't even considered. Great work!

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.

minimec 2016-12-13 21:22

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

Originally Posted by deprecated (Post 1520520)
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.

I use this toolchain... https://github.com/Christopher83/arm...ihf-linaro_4.9

F0x123 2016-12-14 11:01

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!

minimec 2016-12-14 11:44

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

Originally Posted by F0x123 (Post 1520540)
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.

That is in fact a known problem. You need to flash an older version of TWRP (see first post of this thread).

Quote:

Originally Posted by RealJohnGalt (Post 1509185)
  • If you're using multirom, ensure that you're running an older version of recovery that supports the "Flash Zip" capability for Sailfish. This build is recommended: http://d-h.st/BzdC



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

vBulletin® Version 3.8.8