yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] dragos281993:
On every custom kernel DT2W doesn't work the moment you boot up the phone. It works like that. You turn the phone on, it finishes booting up and the kernel manager has to apply the settings set by you. You even get a toast notification that let's you know that the stuff has been applied. Then you have to turn the screen off the on again and everything should work fine.

If for you everything completely freezes or whatever, that means it's something on your part, like for example kernel manager settings that contain presets from another custom kernel. Now Google stores the apps' data and even reinstalling the kernel manager would bring the presets back too. So go to Settings, Apps and search for the kernel manager you're using, tap on storage, delete data and cache, reboot your phone, then set again the tweaks that you want. Check "apply on reboot", reboot the phone and see how things are, but again, keep in mind that the first time you boot up the device, it will take a few seconds to apply those settings and only after turning the screen off the on again, you'll have every functionality back, like DT2W.
[Nexus 4 Android Development] _HaZaRD_:
Ok, thanks.

But what about the battery life?
[Nexus 4 Android Development] dragos281993:
Battery life has been different from a user to another. What I suggest you do is flash the freshly released "hellscore kernel". It's absolutely fantastic, at least for me. You can get it from here: https://basketbuild.com/devs/hellsgod/Nexus 4

The last 2 pages of the thread contain some feedback from me and other users. Go take a look for yourself.

http://xdaforums.com/nexus-4/general/qa-kernel-hells-core-kitkat-b45-stable-t2495373/page1154

On the same page you'll find that one of my comments describes what you need to do to move safetly and easily from a custom kernel to another (comment #11535 )
[Nexus 4 Android Development] _HaZaRD_:
Ok I'll take a look. Thanks.
[Nexus 4 Android Development] fr3quency:
Daemn. New hellscore version kernel and I still haven't bothered with the N4 since 18/01/16. xD (I blame hacking the 3DS - arm9loaderhax ftw)

Sent from my Nexus 4
[Nexus 4 Android Development] sis71:
Hello

I use Chroma be a while. Everything is super. However, I would like DT2W, so I need a different kernel. What is recommended and how do I do best an update.
[Nexus 4 Android Development] dragos281993:
At the moment, "hellscore kernel" which has just been updated, offers incredibly great performance and battery life.

Open the link below and at the top of the page you'll find hellsgod's post with the newest build. Try to read the rest of the comments (they're not so many, don't worry), cause there's some good info about multiple things.

http://xdaforums.com/nexus-4/general/qa-kernel-hells-core-kitkat-b45-stable-t2495373/page1154
[Nexus 4 Android Development] sis71:
only boot into twrp an install the zip ?

acc. this http://xdaforums.com/nexus-4/general/nexus-4-guide-unlock-bootloader-root-t2266654 ?
[Nexus 4 Android Development] arjundas86:
If you don't have any custom kernels installed on top of Chroma right now, then yes, you can just flash the HellsCore kernel (zip) in TWRP. Doesn't hurt to wipe cache and dalvik. I usually do this, some say it's not necessary. You can try without it if you want.
[Nexus 4 Android Development] clickwir:
Have Chroma 2/16/2016 build. Having trouble connecting to companies WiFi. They are using Cisco AP's and controller with 802.1x EAP authentication. It's hanging at "Obtaining IP Address". Other WiFi networks are working fine at other locations like home, coffee shops, friends, etc.

Company network engineer said it looks like there's a failure in the DHCP process. They are expecting a packet from my phone but it's not sending or it's not sending correctly. They also said it looks like it's trying to request IPv6 but not IPv4, but they don't currently use IPv6.

Everyone elses phones connect ok. Of course since I'm running a custom ROM they blame that.

I'll look at trying to get the latest Chroma version installed, but I don't know when I'll have time to do that. Anything else I can try or pass along to the network admins?
[Nexus 4 Android Development] KcLKcL:
Sorry for an out of topic question but I don't know where else to ask:

Is carrier label customization working on Nexus devices? I don't have my Nexus anymore to try the latest build.

Right now I am maintaining my own build of Chroma for Android One, and I couldn't get Carrier Label customization settings to appear, it's all blank. I wonder if carrier label customization is RIL-specific? As Android One is a Mediatek device.
[Nexus 4 Android Development] arjundas86:
I'm able to set normal and custom carrier label on lock screen and status bar. Always have been able to with Chroma, same with latest version.
[Nexus 4 Android Development] Razorfoot:
Hey dragos

Currently I'm using Taurus R41 and it is powerful too. No lag at all and at the end of day (I unplug from charger at 7am and arrive bome at 10pm) I get like 50% left.

Not even my gf's MotoG2 reaches that much. Insane. :D
[Nexus 4 Android Development] Giovaneveterano:
That's insane! How much SOT can you achieve with that kernel?

3G or WiFi most of the time?

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Android Development] Razorfoot:
Well I confess it's not much, because I use it mostly for messaging (my main app is Telegram instead of Whatsapp - batt hungry -) and general browsing / email, I could say it's more of work tasks than entertainment. But I do not connect to wifi at all.

I don't know the average SOT, maybe 2~3 hours? I will check that out on monday and post here.

At weekends when I'm constantly connected to wifi I charge just once. Not hard using it, but the standby time is really amazing and I don't get it on low charge level at sunday night.

I'm using wheatley CPU gov with francos hotplug control. I did some tweaks over the time to reach this point.

Doze influenced it too.
[Nexus 4 Android Development] 5m4r7ph0n36uru:
This sounds amazing. Would be extremely thankful if you could post what you tweaked. I'd try Taurus on this ROM as well, as you're review in using it with Wheatley governor just sounds great.
[Nexus 4 Android Development] zaclimon:
Could you send a logcat when your connecting, perhaps we can see what's going on.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] Quolli:
Is anyone else having some trouble with ambient display? After receiving a notification it lights up as it should, but then it the screen pulses another 2 - 3 times which hasn't happened before. I thought it was an issue with LightFlow but I've disabled it. Also it appears that Ambient Display is turning on in my pocket, is there an option somewhere that I should be checking to prevent it from turning on in my pocket?
[Nexus 4 Android Development] Razorfoot:
Hey man, not a problem. Here are a few tweaks i did:

Using the latest version of Busybox (40) and Synapse (0.44) at the moment, as the kernel (R41 + UKM 3.9.1) and the ROM (03/13/16) too. I also have installed the Adreno Drivers for Android MM, using the Force GPU rendering at dev options.

Data Sync ON

GPS / Bluetooth always OFF

CPU:

CPU min freq - 192MHz

CPU max freq - 1512MHz

Power efficient Workqueues enabled

Arch power enabled

Hotplug:

CPU gov - Wheatley (no further tweaks)

Mako hotplug control ENABLED

Freq unplug limit - 1026mhz

High load count - 30

Load threshold - 90%

Max load - 30

Min time cpu online - 1

Timer - 1

Auto SMP DISABLED

Thermal:

Temp threshold - 55°c (i care more about my phone not getting hot than its performance, since it already has a powerful hardware and here in Rio is way too hot sometimes)

CPU Volt:

No modifications

IO:

Read ahead - 768 kb

Scheduler - noop

General IO tunables: all disabled

RQ affinity - enabled

NR requests - 512

GPU:

Min freq - 128Mhz

Max freq - 400Mhz (it could go up to 487Mhz)

Gov - ondemand

Laziness - 2

Ramp Thresh - 8000

Memory:

Dirty bg ratio - 5%

Dirty ratio - 2%

Drop caches - enabled

Laptop mode - enabled

Swapiness - 30%

VFS Pressure - 100%

DT2W - disabled

Misc:

TCP congestion - westwood

Fsync - enabled

ADV:

All Krait C-States enabled

Kernel samepage mergin - disabled

Gentle fair sleepers - disabled

Build prop:

Allow purging of assets - enabled

Everything else is default, i've made no changes. I'm totally open to suggestions and improvements for this current set of tweaks. I havent explored all the options and certainly there are ways to tight it up!

This is the current status of my weekend's battery usage (90% of the time on WiFi):

I connected it to USB port for a while to retrieve some pictures

I will say again that im not using Whatsapp much and i have also forbid its access to my location (this was a great improvement in battery life too). Telegram seems to wake the device a lot less than Whatsapp, even being much more used. Check this out (note: in the last 3:30h i received only 1 contact message and 13 messages from the same muted group in Whatsapp):

I hope it helps!
[Nexus 4 Android Development] 5m4r7ph0n36uru:
Thanks mate. Will take this settings as a start and try a little bit for myself :good:
[Nexus 4 Android Development] Sacob:
I've turned airplane mode on and turned off my phone, now it doesn't recognize the inserted sim card. i don't have have any hardware issues since ubuntu can use the sim card.

can anyone help me? thanks!
[Nexus 4 Android Development] Razorfoot:
No problem!

If you find ways to improve this configuration please let me know, so we can optimize it together ((:

Hey Sacob,

When I reboot with airplane mode activated it doesn't recognize the SIM card either, but after I turn it off the SIM is recognized normally.

Was the SIM card removed? When putting it back in, haven't you placed it upside down?
[Nexus 4 Android Development] Sacob:
what do you mean with "turn it off the SIM"? I remove it and inserted it with my phone turn on and did the same with it turned off. still nothing. I've already wiped dalvik and cache with no better results.

now i'm going to dirty flash the rom but i don't like that solutions because even if that works that's not the first time i had this problem with the sim recognition and i would like a simpler and better solution.
[Nexus 4 Android Development] zeeBomb:
Hoooly shzt ima try your settings, seriously how can I bookmark great posts like these on XDA? Aweeesome. Thanks man.
[Nexus 4 Android Development] Azerty16:
I am the only one who have bug with the google clock ? I already had bug with the Cyanogenmod 13 and that's why i switched to Chroma and i still have bug, the alarm doesn't play the music, instead it sound like a weird "clank" noise
[Nexus 4 Android Development] AlexBelikov:
I'm not saying that it's ROM, just want to share my observations...

I'm on Chroma March build, clean flashed and with Hells Core kernel + battery profile (2 cores are up, 2 added on demand).

My battery drains very quickly. Now I have only 30% left (6 h since unplugged) with only 20 minutes of SOT. System battery info says "Z Camera" drains the most, + it says it's using GPS for 6 hours. The GPS is off. The system location setting is "Battery saving" all the day today. However, GSam battery monitor shows that "AliExpress app" drained most of the battery. I'll attach screenshots shortly.

Currently I disabled location permission for ZCamera completely and turned off geo-tagging. Please advice what else can I do. Thanks!
[Nexus 4 Android Development] eltoro_pas:
Installed all this and I run Synapse (0.44) and get the message "NO UCI support detected" meaning that either the kernel or ROM doesn't support it.

Can you help?
[Nexus 4 Android Development] dragos281993:
Search for UKM on xda. It's a zip file, so flash it in recovery. After that, reboot your phone and try launching Synapse again.
[Nexus 4 Android Development] zeeBomb:
My personal opinion, I've stopped using hells kernel even though its literally my favorite kernel on the nexus 4, if I was you I would go for Taurus kernel or Quanta V13...you (probably) will not regret and turn back!
[Nexus 4 Android Development] dragos281993:
Taurus r42 in testing. It's gonna have a new set of additional features and the latest optimizations. I'm testing it right now. It's gonna be released in the near future. So stay tuned. There's a new thread for Taurus kernel in the Android development section if you want to subscribe.
[Nexus 4 Android Development] zeeBomb:
Oh sweet. Originally had the R37/38? Version and now I'm temporarily using quanta. Will be nice to get back on the Taurus train again!
[Nexus 4 Android Development] Xavi.:
Anybody else has random apps FC after a clean install? It has happened to me with the two last builds, both with complete wipes.
[Nexus 4 Android Development] clickwir:
Anything in particular you need from there? There's lots of info in there I don't want to post.
[Nexus 4 Android Development] Echelonex:
Dude go into settings and turn off the airplane mode off, don't use quick setting shortcut or power button shortcut they bugged on me like that also.
[Nexus 4 Android Development] Razorfoot:
Exactly, thanks dragos.

Sorry I forgot to mention this detail, I will add it in the post.

You also can find a link to UKM in the kernel page as well.
[Nexus 4 Android Development] Sacob:
the airplane mode option is disabled in power menu indeed. but in status bar i've got the airplane mode icon and a no sim inserted too. does this happens with you too?

thanks for your suggestion. I will try it next time ;)
[Nexus 4 Android Development] eltoro_pas:
Done !

Thanks.
[Nexus 4 Android Development] AlexBelikov:
I think the root cause is a bug in Z Camera app. See screenshots. It used "GPS" for all the time since it's unplugged in the morning. But GPS is disabled and location method is "battery saving". I didn't signed in into work WiFi network. I though it will be better to be on 3g all the day instead of switching between different WIFI networks in the building. Looks like with Wifi enabled but not connected Z Camera goes crazy.

So now with Wifi connected the bettery file is much better! Chroma + Hells Core rocks!
[Nexus 4 Android Development] Echelonex:
Yes, yes, the airplane mode is actually turned on all the time even tho power menu tells you its turned off, you have to go into settings directly and you will see its still turned on. xD This problem gave me such headache too...
[Nexus 4 Android Development] Andr006:
Quanta... V10! V13 isn't really battery friendly, however V14 is up and should be better

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] zaclimon:
Mostly the connection related stuff. I personally can't really check into this but it could have been interesting to debug.
[Nexus 4 Android Development] Razorfoot:
Guys, anyone having this issue too? It started after the last update.

Any workaround?
[Nexus 4 Android Development] damskrey:
http://xdaforums.com/showpost.php?p=65818907&postcount=6315
[Nexus 4 Android Development] Razorfoot:
Thanks man,

It seems I have some work to do :/
[Nexus 4 Android Development] Serskr:
Need help

Can you help me with this? I'm little new with ROMs and need some instructions. I have installed Chroma, what's next?
[Nexus 4 Android Development] eltoro_pas:
Did ALL the settings except installing the Adreno Drivers for Android MM (ie running Chroma, Taurus R41 ETC).

The battery performance has improved when the device is on and in use.

The problem is that the battery drains completely (!!!) when the phone is switched off during the night for approx ~10 hrs.

I switch the phone in the morning on and the battery is completely drained !!!

Any ideas?
[Nexus 4 Android Development] Haik0:
How can in boost the earpiece (the upper speaker for calls) volume a little bit ? Is there any way I can modify a file to achieve that?

Or the only way is to use a custom kernel and tune it with kernel tuner tool ? If so, which kernel with what tuner ?

Thanks !
[Nexus 4 Android Development] arjundas86:
As a beginner, you can simply install Chroma and enjoy the smooth and uncluttered user experience of vanilla Android Marshmallow with some extra convenience features.

Advanced users often choose to flash a custom kernel of their choice on top of the ROM. Kernel is the core of the OS that manages resource allocation to the processes that the OS wants to run (eg., what speed the CPU should run at to handle the current load, how to handle memory allocation, read-write buffers and priorities, interfacing with sensors and pretty much all other hardware, etc.). All ROMs come with their own kernels, but custom kernels have features usually not found on stock kernels, such as DT2W (double tap to wake), USB OTG (on-the-go), advanced sound driver control, and the ability to tweak the kernel's parameters/settings.

Custom kernels often have better governors and default settings that can give you better performance, or better battery life, or allow you to adjust the settings to get the performance-battery trade-off you prefer. The post you're referring to is a detailed list of one user's settings configuration on the Taurus kernel, that provided him with good performance and battery life. You'll have to read up on the Taurus kernel - here is the link for its new revived thread for the Nexus 4. You can also look into other kernels available if you want (the current good ones for our N4 are HellsCore and Quanta).

You will also need to read up on the other things in his post, such as BusyBox, UKM, Synapse, etc., if you want to take advantage of the kernel and his settings.

Hope that helps to point you in the right direction. Welcome to custom Rom-ming, the best part of owning a Nexus device ;). Do the research, and let us know if you have further questions. Enjoy!
[Nexus 4 Android Development] Serskr:
Thanks! :D

---------- Post added at 05:07 PM ---------- Previous post was at 04:31 PM ----------

Hello, i have installed the kernel you've gived. Right one, AOSP R41. but now i launched my phone, and the video driver isn't working, i can connect my phone and see the LED, but the screen is grey.

---------- Post added at 05:14 PM ---------- Previous post was at 05:07 PM ----------

Also, screen is turning off on it's own purprose, but device isn't locking.
[Nexus 4 Android Development] arjundas86:
Did you flash any other kernel after installing Chroma, and before flashing Taurus? And were you running fine on Chroma before flashing Taurus? Flashing a custom kernel on top of another custom kernel can potentially cause issues. Best bet is always flashing custom kernel on top of stock kernel of whatever Rom you have.

Maybe try a cache/dalvik wipe from recovery.

If not, try dirty flashing (i.e., don't wipe data or system partitions) latest Chroma again, then confirm that things are working, then flash Taurus again if you want, and wipe cache/dalvik.

As for device not locking on screen off, did you set a screen lock? i.e., Check the following:

Settings > Security > Screen Lock - is it set to None? Change it to something else.

Also check: Settings > Security > Automatically lock. Is there a delay there for locking after screen off?

Do you have any smart locks enabled (from the same Security page)?
[Nexus 4 Android Development] Serskr:
I don't have any zip or backup now, for some reason. My phone is turning on, but screen is turning off and don't working, also, if i press lock button it just makes screen grey. Damn.
[Nexus 4 Android Development] arjundas86:
Oh crap, always make a backup in recovery before flashing things.

Or are you saying that you did make a backup but it's gone, then maybe you wiped the sdcard (i.e., internal storage) partition. Wiping sdcard partition is never required.

If you are worried about losing data, try dirty flashing the Rom. That is, just flash the chroma zip from recovery, wipe cache and dalvik, and reboot. See if that fixes things.

If not, next thing I would try is a clean flash - i.e., wipe system, data, cache and dalvik, then flash Chroma and GApps. That should get you a fresh new start with Chroma, and it should work. Set it up the way you like, then if you're feeling brave, you can try flashing the kernel again. Remember to make a backup this time.
[Nexus 4 Android Development] AlexBelikov:
Possible bug report in Contacts.

I have 2 contact enabled accounts - gmail and exchange (providing me email, contacts, calendars, etc from my work domain). I'm running clean flashed latest Chroma. Today I got a call from a new number and I saved it to my contacts (I saw the name appeared in call log after that). At the evening I opened call log and noticed that none of my today's callers are in my contacts including the one which I saved for sure. I tried to remember whom I added recently but I couldn't find any of them. The only 1 I found was added though the web interface at contacts.google.com and synced down to my device just fine.

Then I searched play market and installed Google Contacts. The one which comes with Chroma is com.android.contacts. The one from play is com.google.android.contacts. The new one had 1 more option in setting to set the default account for contacts. It was not set and I set it to my google account. After that saving of contacts started working. Even after I uninstalled the second Contacts app.

So, looks like if there is more than 1 contact enabled account the default Contacts app will not ask which one to use and might not save the contact. But if I somehow set the default contact account it work fine.

Hope it will help.
[Nexus 4 Android Development] mohit2387:
Go to App info of the contacts.

Grant permissions.

Now try to save contacts.

Done.
[Nexus 4 Android Development] AlexBelikov:
All the permissions were granted.
[Nexus 4 Android Development] mohit2387:
Also to Calender as well.

Reboot once. It should work. let me know if it still doesn't
[Nexus 4 Android Development] AlexBelikov:
As I wrote in my first big post - it's fixed.
[Nexus 4 Android Development] Serskr:
Now it's bad. I don't have anything on my phone, i can load into recovery, but i don't have ROMs and backups. I've tried to use adb, but my computer didn't see my phone. Also, phone is charging, but computer can't see it, even in device manager.
[Nexus 4 Android Development] dragos281993:
To see the storage, while in recovery, connect your phone to your computer, then go to "Mount" and tap on "Disable storage" or "Disable MTP" (something like that), and then tap to Enable them again. The moment you tap on Enable storage, the phone will be seen by the computer.

But this problem occurs only when you're using a custom version of twrp. You should install twrp 3.0.0.0 via fastboot and you won't have problems with reading the storage anymore.
[Nexus 4 Android Development] Serskr:
My computer can't see my phone even in fastboot. I've tried different computers and checked the device manager. There's no result. Also, i've changed the usb port in the phone, but it didn't help.