yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] rinigus:
Just to give the feedback: during last 3 days I had no problems with the CPU sleep, i.e. phone stuck in non-sleep mode. These days I had Cal/CardDAV automatic sync disabled and I synced this account once or twice manually during this time. At the same time, Google account sync was active. So, it seems, that in my case the problems were caused by syncing with CalDAV or CardDAV.

As it is, I have reasonable battery life on my N4: uses probably ~60% during 24 hours of normal use [hard to define that]. So, while I charge it daily, I can use it easily as a daily driver. As far as I remember, in Android 6, situation was a bit better, but still I mostly had to charge it daily.
[Nexus 4 Android Development] Kubino:
I have only Jolla account + one mail account (with manual sync). But still have some wakelocks and CPU usage 25% over night (airplane mode).
[Nexus 4 Android Development] rinigus:
Kubino: Actually, it looks fine! As you could see, CPU is mainly sleeping. As far as I understand, its only the time its awake, that's when 25% is used, ie its 25% not from Wall Clock. So, taking into account that your CPU is ~95% asleep, we get 25*(1 - 0.95) = 1.25% of CPU usage [but I'm not sure its relevant].

I would expect that battery consumption is rather low at that period. How much battery charge do you loose during the period when CPU was well asleep?
[Nexus 4 Android Development] Kubino:
Over night I loose 10%, on Android it was 1-2%.
[Nexus 4 Android Development] rinigus:
OK, 10% its roughly the same as I get when I am not hit by the hardware bug with wireless charger.

1-2% on Android is very good. Is it using the latest ROMs, Android 6? On Android 6 there is something called doze which is probably needed to make it possible. Whether SFOS has something similar, I don't know. I have seen some settings in mcetool that might do something similar, but I don't know.

For me 10% over night is OK, since earlier I had much worse. :)
[Nexus 4 Android Development] Kubino:
1-2% on Android it was CM 12.1, Purity Android 5 and before on 4.4.x. For me 10% is a lot for device in airplane mode doing nothing. Since gamma 5 I have only Sailfish OS with sfdroid on my N4. I wonder how Ubuntu Touch has baterry consumption but it has less apps which I use.

Today I installed "GUI for Mcetool" from openrepos and turn on the power saving mode so I will see if it would help or not.
[Nexus 4 Android Development] rinigus:
I see, the target is much more ambitious! Try also to disable proximity sensor. This can be done by mcetool as well (don't know about GUI). Let us know how it worked.
[Nexus 4 Android Development] Kubino:
So it's same, 11% because the 25% usage CPU but what it's strange that I was put phone to airplane mode about 1 hour before I go to bed and CPU usage was minimal. Then in bed I used it for few minutes and then go CPU usage to 25% .
[Nexus 4 Android Development] rinigus:
I see. I actually had larger battery consumption when I enabled some power saving mode in MCE (sleep was interrupted for longer time). In your test, was proximity disabled?

Power consumption issues are now debugged by MotoG developers. They had to use newer MCE and, without Wifi, they were able to achieve

http://imgur.com/a/ag2fV

motoG does have a much better battery life in Android than N4, but maybe we should look into it as well. NB, CPU usage was much lower in motoG. I may try in few days to compile newer MCE and see if that would help. Any other ideas?
[Nexus 4 Android Development] radbme:
Maybe I need a MotoG!
[Nexus 4 Android Development] rinigus:
maybe :) . its surely a good phone, just RAM is 1GB and screen is smaller.

Do you still have issues with the battery?
[Nexus 4 Android Development] radbme:
I like the n4 a lot. I collect phones for fun but if I bought a new one my wife might hurt me! Anyway, the battery is ok for me right now. It was kind of strange. I had one day last week where it lasted somewhere around 9 hours of mixed use. Then the next day it lasted about 5 hours of the same usage. So it's hit or miss. Such a cool OS. If the Jolla worked on at least 3G in the US I'd just get one.
[Nexus 4 Android Development] bolek1337:
I released a new gamma6 image, and an OTA from gamma5 to gamma6. Please follow https://wiki.merproject.org/wiki/Adaptations/libhybris/Install_SailfishOS_for_mako OTA section by heart. If you're installing gamma6 as a clean image, same instructions as previously apply.

Changelog:

- New Sailfish OS release 2.0.1.11 - see https://together.jolla.com/question/126892/release-notes-201taalojarvi-released/ for the SailfishOS changes. Skip the android parts as they refer to Alien Dalvik, which is not in ported devices (in Nexus4)

- Bluetooth devices now can access contacts (PBAP), so it's possible to sync them to your car
[Nexus 4 Android Development] Rls4ever12:
So what is the trick for getting data. Just the apn?
[Nexus 4 Android Development] Kubino:
From my experience it doesn't matter if proximity is enabled or disabled. It seems that every second sleep is CPU usage 25%. Maybe the problem is process Booster (silica qt 5) as mentioned here.
[Nexus 4 Android Development] rinigus:
OK, interesting that proximity sensor has no implications. I'll have to test it again - I did it last time maybe a month or more ago.

The post in TMO that you mention tells that the phone gets warm. There is no info on whether the phone is getting into the sleep mode and, taking into account that it warms up, I guess it doesn't. There is a thread in together.jolla.com on battery consumption by tablet and I wrote down my understanding of the processes there https://together.jolla.com/question...lla-tablet-owners-about-battery-and-cpu-usage . Some relevant bits are pasted below:

---

I would expect that the tablet has a rather large CPU sleep %. Now, as far as I understand, CPU utilization reported the % at the time when tablet is non-suspended, i.e /proc/stat statistics is related to non-sleep time. So, I assume that when your tablet is mostly sleeping and waking up once in a while, it runs housekeeping processes and then goes to sleep as well. This would correlate with high CPU sleep and high CPU utilization %. To get some idea of CPU utilization against the wall clock, try to multiply ( 100 - CPU_sleep_% ) / 100% * CPU_utilization_% .

---

Now, interesting question would whats an average time of sleep and average time of staying awake during that period of time. In general, we do have that info, I would just need to plot it in SysMon. If the time of staying awake is very short, 25% CPU would not be a problem.

However, I agree with you that battery utilization in idle is too much and it would be good to look into it further. I'll try myself to keep the phone in airplane mode during a night and see what would I get for battery consumption.
[Nexus 4 Android Development] ubston:
I tried that, and now I can send mms but not receive them. I'm so close! This is a critical issue for me (although, I put more blame on my carrier - cricket - than sailfish). I just wish I could see all of the APN settings, in order to verify that I have everything correct.

The missing fields are:

MCC: 310

MNC: 150

Authentication type: Not Set

APN type: default,mms,fota,hipri,supl
[Nexus 4 Android Development] radbme:
I'll check settings again tonight. Cricket rides att and I have GoPhone service. I used to have straight talk att service and had the same issue you do.
[Nexus 4 Android Development] ubston:
Thanks! I'm thinking about switching to metropcs (uses t-mobile network). I've heard their mms is more reliable.
[Nexus 4 Android Development] radbme:
Here ya go. There are also two other things to try. Two apps from the Jolla store. Mms logger and Advanced mms settings. Good luck.
[Nexus 4 Android Development] Gnome:
Having an itch to flash this, hmmm f**k that I'm trying it out. :D
[Nexus 4 Android Development] xWolf13:
Holy sh*t. Haven't seen you in a while on here! Miss your kernel!

Been running the latest for the last few days on my MultiROM setup. So far so good. Only thing keeping me from switching is the lack of android support (which I know is not possible at the moment) without the use of the sfdroid. Other than that, I'm in love with the UI! Thanks for the support!
[Nexus 4 Android Development] Rls4ever12:
How long will reboot take after putting in the Ota update via terminal? I am on multirom by the way.
[Nexus 4 Android Development] radbme:
Just finished the gamma 6 Ota. Everything seemed to work correctly. This is the second time I've done this. Last time was the update to gamma 5. So I checked 'about' and it still says 2.0.0.10. Did the os revision number just not make the update? How else can I check that the update finished correctly?
[Nexus 4 Android Development] Kubino:
After ota update to gamma 6 you should have in about page 2.0.1.11.
[Nexus 4 Android Development] radbme:
Well shoot. I copied and pasted everything from the wiki as written. What'd I forget?

UPDATE: sigh...didn't change RELEASE...duh.
[Nexus 4 Android Development] Rls4ever12:
How do I do a fresh Install in multi rom I deleted it and Uninstalled multirom when I reflash dev options are still enabled which after I did the Ota no network now
[Nexus 4 Android Development] ubston:
Thanks! Didn't have any luck with those, though. Then I switched carriers, still no dice. Strange, man.
[Nexus 4 Android Development] grabber5.0:
Me either. I think radbme is charmed.[emoji14]
[Nexus 4 Android Development] radbme:
Hey ATT GoPhone just added another gb of data to their $45 plan. Plus they have rollover and I've had ZERO mms issues and I use a LOT of mobile platforms.
[Nexus 4 Android Development] ubston:
Word, thanks. With working MMS, are you able to send/receive group texts? I haven't tried that yet, but I assume you need mms for it to work.
[Nexus 4 Android Development] radbme:
Unless sailfish has a special setting for merging group messages into one threaded sms message then yes you'll need working mms for group messaging. That said I don't know that I've tried it. I'm not sure if sailfish even does group messaging at all. I'll try it out when I get a chance.
[Nexus 4 Android Development] Kubino:
I was thinking about the issue CPU usage 25% every second sleep so I have battery consumption in airplane mode over night 10% or 0-1% (depends if CPU usage is 25% or minimal). I use Sailcron and made cron job which every 20 minute kill the process "booster [silica-qt5]" and over night I get CPU usage 5% and 4-5% battery so it's some compromise...
[Nexus 4 Android Development] radbme:
Would you mind sharing your cron job? I've never made one before and could use a beginners' tutorial.

Also I tested the group mms thing. It created a group message but the replied didn't go to it and single texts were also created. The end recipient it's running Android but he didn't get a group message. So I'm thinking that sailfish doesn't auto create mms messages for multiple recipients of the same text. You can see the top two messages as single texts and the third message is the group message I started.
[Nexus 4 Android Development] Rls4ever12:
Is root possible in SFdroid?
[Nexus 4 Android Development] nh1402:
It should be if you flash it like any other Android ROM, although there are mixed results. It worked for me on the nexus 5.

Also it sounds like there are issues with the nexus 4 with the CM11 base. Not the same issues as the nexus 5. But if someone tries rebasing again but to cm12.1 it might work better. It worked for the nexus 5. Also once I'm done with it sfdroid cm12.1 will be bigger and better than the cm11 version.
[Nexus 4 Android Development] Rls4ever12:
Any hope for cm 13 and thanks by the way
[Nexus 4 Android Development] nh1402:
Once hybris is finished for cm13 then I'll port sfdroid to that, another thing we're thinking about is extracting sfdroid away from the base so it's device independent that way we can use whatever version of Android we want.
[Nexus 4 Android Development] Kubino:
It is easy with Sailcron :). In this two screenshots is configuration of my cron job. Check in settings in Sailcron that daemon is running and autostart enabled.

btw. in the command "bash -l -c ...." it is small L not big i.
[Nexus 4 Android Development] radbme:
Thanks. Does this help overall battery life or only when in airplane mode?
[Nexus 4 Android Development] radbme:
Got kinda sleepy in here...
[Nexus 4 Android Development] Kubino:
I did OTA upgrade to 2.0.2.45 (the Early adopter build) yesterday evening :). It seems running faster. Over night today in airplane mode minimal baterry consumption without my cronjob but it could be a coincidence.
[Nexus 4 Android Development] matusala:
Can anyone help me?

I had Cyanogenmod 13 installed. Then i installed Multirom manager. Downloaded Cyanogenmod 10.1.3 and Sailfish OS gamma 6. Flashed both from Multirom TWRP. On first boot of Sailfish OS it got stuck at Google logo also LED lights. What Should i do?

edit:

i found out the problem was CM version. With gamma sailfish os you must use CM 11 zip.

Double tap 2 wake does not work :( and when playing youtube videos in default browser tapping once does not show manu. I must tap 3-4 times video menu to show up and maximize or minimize video window or pause video

Big Thank you who made this amazing OS work on Nexus 4.
[Nexus 4 Android Development] Kubino:
double tap 2 wake does not work but there is Glance screen. But after install mce-tools is better use these commands instead of just the command "mcetool --set-low-power-mode=enabled".
[Nexus 4 Android Development] matusala:
How did you install developer update? Please explain.
[Nexus 4 Android Development] Kubino:
I just follow the instruction about OTA update here and change the RELEASE number to 2.0.2.45 ;).
[Nexus 4 Android Development] matusala:
I tried that but it gives me error: "Error: nothing provides pattern:jolla-sailfish-applications needed by pattern:jolla-configuration-mako-0.0.7-10.8.4.jolla.noarch" can you help me with this?
[Nexus 4 Android Development] bolek1337:
Disclaimer: 2.0.2.45 is currently a release candidate, it has a couple of known bugs. Integration with Nexus4 adaptation was not tested, neither the OTA. Whoever is doing that, is doing it on his/her own risk, though it's true for all non-native ports.

Rephrase: 2.0.2.45 is expected to cause problems. I will report a new release once it is tested.
[Nexus 4 Android Development] matusala:
This system is too broken!!! It's nice but:

1) I can't install 2.0.2.45 it says: "Error: nothing provides pattern:jolla-sailfish-applications needed by pattern:jolla-configuration-mako-0.0.7-10.8.4.jolla.noarch"

2) Can't install mce-tools!

3) Can't install patchmanager!

4) Can't even install ausmt because it says there is no /usr/bin/perl (i checked there is no perl in my system)

can't install perl too :( As i said this system is too broken! Fix it and it will be better then android.

I do not know what is with it. Why it can't install these.
[Nexus 4 Android Development] Kubino:
I did it on my risk. Only problem I found by mistake yesterday is randomly connects and disconnects mobile internet, but I don't use it (I use only Wi-fi) so it's ok for me. I didn't tested GPS and Bluetooth. After a week of use 2.0.2.45 I must tell that there is still problem with CPU usage 25% in sleep sometimes.

1) Before I upgrade to 2.0.2.45 I updated 2.0.1.11 because in repo are some updated packages from June. But if you have no experience with Sailfish OS maybe you should stay on 2.0.1.11. The upgrade to 2.0.2.45 I did twice because on first attempt the upgrade process freeze on 93% and after a while the phone rebooted itself. After that I booted in some mix of these two versions (no new features, but in settings - about was 2.0.2.45). Then I did second attempt of upgrade to 2.0.2.45 which was successful (with all new features and improvements).

2, 3, 4) How do you install it? what it writes when you can't install it? For installing patchmanager and other software which isn't in Jolla store I recommend to install Warehouse.
[Nexus 4 Android Development] matusala:
I have already installed warehouse. Maybe i am new to sailfish OS but i am not new to linux. I use it on my work and at home for 4 years.

Did some search on the internet and many people say that update to 2.0.1.11 broke patchmanager. I'll keep serching and if i come to a solution i'll write here.

one thing can you show me your /usr/share/ssu/repos.ini file content? When you executed update commands. That would help me a lot.
[Nexus 4 Android Development] comawhite82:
I have also tried to flash SailFish OS. But somehow it will not work. Just get only to see the G Logo and after 5 min, red light of Dead.

I use:

MultiROM - v33

TWRP - 2015.06.30

Primary - Pure Nexus 6.0.1

Secondary - CM 10.1.3 and Sailfish OS 2.0.1.11 Gamma6

Radio - radio-mako-m9615a-cefwmazm-2.0.1701.07

Bootloader - makoz30f.

What I'm doing wrong?

Thanks for your help!
[Nexus 4 Android Development] rinigus:
you flashed a wrong CM as a base. Use CM11 for gammaX series. See a link to CM on https://wiki.merproject.org/wiki/Adaptations/libhybris/Install_SailfishOS_for_mako

cheers
[Nexus 4 Android Development] matusala:
You need CM11 M12 for gamma 6
[Nexus 4 Android Development] ReneX10:
any movement :confused:
[Nexus 4 Android Development] matusala:
When will be next version available for Nexus 4? After i installed sfdroid + gapps battery life sucks. I can't turn off sfdroid. It runs automatically on startup, also my cpu is always at 25% load. I do not know why this happens.
[Nexus 4 Android Development] rinigus:
cheers! I had the same problem when installed gapps. The problem went away after I reinstalled everything and used sfdroid with fdroid. It looks to me that gapps were a new major consumer and it probably didn't play very well with sitting in SFOS. I didn't look into it further, so keep this as n+=1 observation.
[Nexus 4 Android Development] matusala:
Thanks for your answer but i did not understand what you said abut fdroid. I know what is sfdroid and have installed one on my nexus 4 but i do not know what is fdroid and how can it help me? So if i install fdroid do i need to install gapps too or what?
[Nexus 4 Android Development] rinigus:
Due to the battery issues, I don't use Google services anymore and mainly use apps from https://f-droid.org/ (aka fdroid). Whether gapps are behind battery drain or there was something else behind it in my older setup, I have not investigated properly.
[Nexus 4 Android Development] Kubino:
On YouTube is new video with WIP multiwindow sfdroid and the base looks like CM 12.1.

https://www.youtube.com/watch?v=78N1C2-6t3I
[Nexus 4 Android Development] nh1402:
That's because it is.
[Nexus 4 Android Development] matusala:
Wow cool. I thought about that feature and here it is. I love sailfish comunity.

Where can i watch sailfish development and release dates for nexus 4?
[Nexus 4 Android Development] matusala:
My program for Sailfish OS.

When Sailfish os is connected to/disconnected from wifi there is notification where it shows ip address of the phone and username. Also it stays in notification screen.

If someone wants just ask and i'll share it with you :)

take a look at screenshots in attachments

P.S. if you have installed jolla-settings-powersave, it's icon will not be visible. I fixed this by changing icon path in this file --> /usr/share/jolla-settings/entries/powersave.json IT SAID "icon": "image://theme/icon-m-powersave", YOU MUST CHANGE IT TO "icon": "/usr/share/themes/jolla-ambient/meegotouch/icons/icon-m-powersave.png",

Now icon will be visible!
[Nexus 4 Android Development] matusala:
This os does not recognize my native language, aslo there is no keyboard for my native language too.

I speak Georgian.

Please can you insert these fonts in the system and also add Georgian keyboard by default (I made Georgian keyboard today for my native language and i can confirm that it works well in my Nexus 4 Sailfish OS 2.0.1.11.)

Please insert these fonts and keyboard in the system. Thanks in advance :)

so here are 3 fonts to recognize my language and Keyboard too with readme.
[Nexus 4 Android Development] rinigus:
If you wish to distribute your mods, please consider using openrepos.net . I don't think Jolla Store would allow it.
[Nexus 4 Android Development] matusala:
I will, but for my native language support i wish if someone who publishes sailfish os ports to include my native language support with files i provided above. There are many other languages supported by this os.

If it can't be done then i will make rpm for language support too.
[Nexus 4 Android Development] Kubino:
Maybe you can try nominate it on together.jolla.com, maybe in this topic?
[Nexus 4 Android Development] matusala:
My native language Georgian is not listed there.

Anyway, thanks i will post somewhere there.
[Nexus 4 Android Development] Kubino:
How hard would be get working USB OTG (with external power) on Sailfish? on N4 with Android I think must be used custom kernel (but I didn't test it).
[Nexus 4 Android Development] rinigus:
custom kernels are possible, but not trivial. when shopping for kernel, note that you would need to have a kernel that works with provided mpdecision binaries. Otherwise, you would hit the errors on booster services started in Sailfish (have been there). Unfortunately, most of the custom kernels are using internal cpu hotplug control (which is probably better) that makes it problematic to use. Unless, someone would rewrite these boosters.

to try, you need to build sfos image yourself (or at least to the step where generating kernel / boot images rpms) and then play with it.to build images, use an excellent HADK.
[Nexus 4 Android Development] Crysis2:
hi!

how you made keyboard for your own language?

can you help me?
[Nexus 4 Android Development] matusala:
Yes i can help. Text me PM for what language do you want keyboard.
[Nexus 4 Android Development] matusala:
I do not know what happens but i left nexus 4 charged 100% and it has lost ~20% overnight.

Wifi, bluetooth, GPS OFF! I had not installed sfdroid so no android support. I had not minimized any app everything was off!

and these are the only apps i have installed (in attachment)

If you look at the attachment picture you see there is no 25% cpu usage bug (although it has sometimes this bug) and still there is some kind of battery drain because ~20% overnight is too damn high.

system monitor took measurements every 2 minutes.
[Nexus 4 Android Development] rinigus:
You have to follow CPU sleep, not its usage. So, please tell what was the sleep % during a these hours. I would not consider 25% CPU usage a bug, but a way its supposed to be if your phone is getting sleep. Ideally, it should wake up for a little while, do all what's needed as fast as it can, and then go to sleep. Since CPU usage is usually reported against computer awake time, low CPU usage, as you have on your graphs, tells that, most probably, your Nexus is not sleeping properly.

Which version of SFOS do you have? Maybe its some buteo bug that prevents sleep. You could follow wakelocks and see which one is stuck.

cheers
[Nexus 4 Android Development] matusala:
I have 2.0.1.11 it's latest version. Did not want to install beta.

command "journalctl | grep mce":

Jolla mce[568]: modules/cpu-keepalive.c: cka_session_finish(): long session lasted 218456 ms; id=821/undefined name=:1.19 pid=921 cmd=/usr/bin/pulseaudio --start -n --file=/e

Jolla mce[568]: modules/display.c: mdy_datapipe_packagekit_locked_cb(): packagekit_locked = 1

Jolla mce[568]: modules/display.c: mdy_datapipe_packagekit_locked_cb(): packagekit_locked = 0

command "mcetool --get-suspend-stats":

uptime: 184190.815

suspend_time: 145064.812