![]() |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
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. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
@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. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Now regarding BT wakelock: don't know much about it. Maybe someone else can help, IRC? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
@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 :p I report back. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
A bunch of Nexus 5 related commits here: https://git.kernel.org/cgit/linux/ke...p&q=hammerhead
So does it mean it's possible now to run Linux 4.9 on it with Freedreno? Did anyone try? I'm getting a second device soon to experiment. So if anyone has instructions how to do it - I can help testing. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Just got my new Nexus 5. Looking forward for some Freedreno tests with upstream kernel :)
|
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:
Some of that stutf could be in those upstream patches already, some might not. It's probably good to make some table, describing what's missing. I doubt they'll release anything, but same thing was with Adreno blobs. They were reverse engineered however. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Could anyone please test this kernel and the bt on off 'scripts'? I don't have any BT devices here at the moment.
I enabled the BT sleep in the kernel, but it doesn't work correctly at the moment, the wakelocks are still there. So, as a quick and also dirty hack, please create bt-on.sh which should contain the follwing line: Code:
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 Code:
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 To use these scripts as user add Code:
chmod 666 /proc/bluetooth/sleep/lpm The bt-off command should disable bluetooth and the wakelocks allowing the Nexus to enter suspend state. bt-on starts bluetooth(and the wakelocks). So bt-off should be executed after boot or put it in your rc.local or any script which gets executed after boot. Would be nice if someone could report back if this works. Suspend time can be checked with 'mcetool --get-suspend-stats' or SystemDataScope. Kernel can be downloaded here. Another method that works without flashing a kernel: If you don't need bluetooth you could also disable bt completely with following command: Code:
devel-su systemctl stop hciattach |
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:
Then the blobs could be tested: https://developers.google.com/androi...ers#hammerhead |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I might have an idea for a systemd service including a desktop launcher. Give me some time to work it out over the weekend... |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
A toogle would be nice. Take a look at schturmanns BT toogle on openrepos, this could easily be modified to reflect our needs. After turning bt on could you please 'echo 1 > /proc/bluetooth/sleep/lpm' and test if it is still working? |
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:
I would suspect that its network-related sync (email, calendar, ...), but you never know for sure. Try to disable the network and see if CPU sleep % would get larger. In the end, its trial and error. I don't think that I have optimized my setup to get these numbers, so it should be possible |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Thanks for the suggestions, I'll stay on topic next time :D |
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
Founds this: https://stackoverflow.com/questions/...er-for-bcm4339
Key part: Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Regarding the bluetooth wakelock we face with the Nexus5, I can offer you a solution now, that will allow you to use bluetooth the way you used it until now and profit from Bluetooth LowPowerMode, without any interaction form your part.
After some input of the community on irc (#sailfishos-porters), and some discussion with 'mautz', I wrote a script, that should work quiet nicely with all Sailfishos ports, CM11,CM12, or future releases. The script is a workaround for an existing kernel bug, that also some android users face. So the hope is, that we might not need that workaround some day in the future. Please do some testing and tell me if it works for you. Update As stated by mautz, I forgot to mention that you need the latest kernel with 'bluetooth sleep' enabled. The script can be downloaded here... <- New Version Don't forget to... Code:
chmod +x bt-sleep-monitor.sh #title : bt-sleep-monitor.sh #description : Bluetooth 'LowPowerMode' monitor for SailfishOS ports that face a bluetooth wakelock bug. #author : minimec #date : 20170206 #version : 0.3 (2nd release/code cleaned/with logfile for testing) #usage : ./bash bt-sleep-monitor.sh & (first login to a root console with 'devel-su') #kill script : devel-su killall bt-sleep-monitor.sh dbus-monitor #follow log : tail -f /dev/shm/bt-sleep-monitor.log #notes : Best use as systemd service #================================================= ============================= #How it works... : LowPowerMode is disabled in two cases: # - by enabling the bluetooth adapter, in case it is 'disabled'. # - by powering on the display, in case the adapter is 'enabled'. # The script switches between these modes automatically. # After an 'action' is triggered you have 120sec. (default value) to connect a device. # In case a device is connected, the script listens for 'disconnect' and will enable LPM again afterwards. #================================================= ============================= |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
For minmecs script to work, you need my kernel with bt sleep enabled.
Update cm13 port. Thanks to abranson camera is now working, video recording not yet. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have some questions to the Nexus 5 folk:
I added a rom with multirom to try aliendalvik (it works) it is the 2.0.4.13 version. I would like to apply a backup done in the 2.0.1.1 version but there is only the options "from memory card" and "from cloud services". How can i do it? Second, in this version the screen unlock combined with the proximity sensor (the double tap) is disappeared, could I get it back? Third, as already said in another thread, we can't install keyboard predictions from terminal (jolla xt9), how can I get it since I have the files somewhere in the other Sailfish rom? Thanks |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Other method would be to copy your home folder of the old rom to your new rom. For the unlock you need to add mer-tools repo and instal mce-tools. Code:
ssu ar mer-tools |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
jolla-xt9 found ;)
Thank you for the commands, i didn't know they were related with the unlock! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
p.s. Ideally you have setup a second for instance sailfishos rom using multirom for this purposes, from a terminal of this second rom you do Code:
devel-su |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Do you mean from computer or terminal on the phone? Sorry I'm still learning to use the terminal properly.
The solution of @mautz to do an online backup isn't doable, in the older version of Sailfish there isn't this possibility, or I can't see it. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Update CM13 port:
So, after a month of running my cm13 port, i think its time to relese it in the next days. I'll compile a release build and test it a few days, to be sure that everything is working. Working so far: - everything except video recording abranson and dstm from #sailfish-portes are working hard to solve this problem...thank you guys! Since i'm trying to figure out how to build stuff on OBS, OTA is not working at the moment. Release version will be 2.0.5.6 since many apps are not ported to QT5.6. Stay tuned and thanks to all the awesome people from #sailfishos-porters who helped me!! I'll talk to nh1402 to see if i can help to get a working sfdroid for cm13. Another thank you goes out to minimec for writing his bt-sleep-monitor script which is a dirty, but nicely done workaround to give us suspend mode back. Custom kernels are also coming. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
OTA support is crucial. If everything is ready please open a new thread where you can update the first and most important post as the owner of the thread. The community can contribute to it and we can setup an up to date wiki. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have a little problem with the 2.0.4.13, it doesn't let me choose the mobile network type (I use only.2G), I can't see the option in settings.
The strange thing is that sometimes I see ot, then it disappears. I disabled the double touch because it freezes the phone several times, never happened with the older Sailfish build. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Code:
dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0 org.ofono.RadioSettings.SetProperty string:TechnologyPreference variant:string:lte |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
The command works, but doesn't save the preference and after a reboot is back on 3G.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Code:
devel-su chown -R radio:radio /var/lib/ofono |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
The problem is still there, after switching airplane mode on/off it returns back to 3G and the network selection in settings disappear
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Update CM13 port:
Port will now be on 2.1.0.9. OTA should work, just tried it OTA from 2.0.5.6 to 2.1.0.9. Device booted but UI did not show up, this could be related to the switch to QT5.6 which needs rebuild of some packages. Has anyone solved the bt call issue on their phone? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
i fixed my 3000 mah G2 battery which was damaged. I made this mod ~5 months ago. I changed battery board on G2 battery swaped it from Nexus 5 and it seems nexus 5s battery board damaged after using the phone for 1 week. Then i had it laying around until i realised what was a problem. I soldered back G2s battery board on G2 battery and solderd 3 cables to the nexus 5 battery connector and it worked. I installed android 7.1.1 and it gave me 5:50 hour SOT on 30 hour run. It's amazing for nexus 5. Wifi was active always and i used phone very well. My original battery is already ****ed up and it barely gave me 2 hour SOT, but now i have got nearly triple of that :)
I am interested how much SOT will SFOS give me without google junk services and stuff like that. Sadly i do not know any app that monitors SOT on SFOS. I know about screen monitor but it does not work. Also its time resets on every reboot. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
So, if you know how can I determine from system files (/proc, ...) for how long the screen was switched on, I'll be happy to expose the stats on it via collectd and SystemDataScope. Other major missing stats is GPS state, so suggestions on that are welcome as well :) Alternative is to write the services collecting SOT and GPS states and merge them to Mer's stateFS system, for example. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Anyone who tried an OTA upgrade to 2.1.* yet? I got error messages like
Code:
Error: pattern:jolla-configuration-hammerhead-0.0.1+master.20161124122721.13.g11e27c2-10.12.2.jolla.noarch requires pattern:jolla-hw-adaptation-hammerhead, but this requirement cannot be provided |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
If you look at RealJohnGalts repository, you can see that also two other packages are broken at the moment.
https://api.merproject.org/project/s...ing:hammerhead |
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
Hi,
New SailfishOS user here! Yesterday I managed to install SFOS to my Nexus 5 with multirom and it's working beautifully! Thanks to you guys for your hard work! Is there any usable navigation software available? I'm missing also working Telegram client, I tried Jollagram but I can't login with that.. Thanks in advance! Sami |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Hi!
You could use Sailfish Maps if you have access to an original Jolla device or try out PoorMaps. Another way would be to install AlienDalvik and use the Android app of your choice. For AlienDalvik running on cm12.1 take a look at this thread, there is an installable RPM in there somewhere. http://talk.maemo.org/showthread.php?t=98800 |
All times are GMT. The time now is 08:13. |
vBulletin® Version 3.8.8