yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] linelock:
Also the glass back is a good heat conductor so I think that contributes to feeling it more over a plastic backed phone.
[Nexus 4 Original Android Development] Lownita:
Is anyone else experiencing wifi drops with harsh kernel? When my phone is sleeping for a longer period of time, the wifi bar is grey when I turn on the phone and just then I get my mails etc. So wifi dropped! Wifi sleep policy is set to never, so what is causing this? :confused::confused:
[Nexus 4 Original Android Development] meangreenie:
There's not much you can do about the heat, under clock the GPU, change the battery throttle temps in thermals.inf a bit. Only leaves hardware modding heat sinks etc.

Under clocking the CPU is kind of pointless since thermald does that automatically any way.
[Nexus 4 Original Android Development] Nova163:
Most likely your router doesn't support wifi power-save-mode or it's not enabled. You can try enabling wifi power-save-mode in the router, or disable Wi-FI optimisation in the advanced wifi settings on the phone. Wifi will use a little more battery, but it shouldn't drop anymore.
[Nexus 4 Original Android Development] Lownita:
Awesome, will test, thanks!
[Nexus 4 Original Android Development] odeccacccp:
ok, thats what I mean. How do you interpret the results, which of the test you run?
[Nexus 4 Original Android Development] meangreenie:
^@wifi drop^ Or deliberately set wifi to turn off when sleeping and leave 2g only on. When phone receives notifications it wakes and turns wifi back on... <- good workaround suggested by someone else in this thread. The problem exists on all kernels afaik, and hopefully the fabled 4.2.2 will fix it.

btw anyone want to try my new colour setup..

255,255,255

208/210/212 114 100 255 4 14 9 200 60 1 (gamma as close to 2.2 as i could be bothered with, apart from grey)

i'm undecided wether i like this one best so far.
[Nexus 4 Original Android Development] Lownita:
Ah so it is a common problem? Since I tried turning off wifi optimization as suggested and even set band to 2.4 GHz manually. BUT still wifi drops! I flashed franco kernel to check if it is still persistend. But from what you wrote, I think it will be D:
[Nexus 4 Original Android Development] meangreenie:
yeh, it been driving me nutz since day 1 lol
[Nexus 4 Original Android Development] undercover:
I take credit for that suggestion :p

Was about to post it again but you beat me to it.

---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------

It comes with HSIC fix. They use usb bus or something, that's why there is such a wakelock. Anyway, I just went to stock kernel with custom uv and gamma addons (by Harsh) for now.
[Nexus 4 Original Android Development] Nova163:
Give it a chance for a few reboots/wifi turn-on/offs. I've suffered from it for a while, but it disappaered after messing around with it for a while.

You can also try going to the security settings on your router and reapply them. Also a factory reset on the router fixed it for me at some point. It doesn't make sense, but works sometimes.
[Nexus 4 Original Android Development] flxdms:
Wifi is fine over here. In fact, I receive my emails on my phone before receiving them on my computer.
[Nexus 4 Original Android Development] flxdms:
Before anyone asks, here's visceralpsyche new warmer setup.

#!/system/bin/sh

# RGB colours
echo "175 155 145" > /sys/devices/platform/kcal_ctrl.0/kcal

# Gamma settings
# -------------------$$$$$$------------------
# Based on
# g_white 20
# g_mids 100
# g_black 255
# g_contrast 0
# g_brightness 3
# g_saturation 7
# g_greys 0
# --------------Setting gamma presets--------

echo "208 20 100 255 0 0 3 7 0 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "210 20 100 255 0 0 3 7 0 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "212 20 100 255 0 0 3 7 0 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_b

# -----------------end-----------------------
[Nexus 4 Original Android Development] PsyMoses:
Anyone tried it on 4.2.2 ?
[Nexus 4 Original Android Development] mundixx:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Yes no issues here

Sent from my AOSPA Nexus 4
[Nexus 4 Original Android Development] nokkenas:
I found it too yellowish. After installing this, my white becomes a faint yellow. I'm reverting back to previous visceralpsyche's calibration.
[Nexus 4 Original Android Development] Nova163:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Harsh, am I right that when kernel version says 3.4.29 I'm on your kernel and not on stock?

I'm trying to build a ROM (for personal use) with your kernel precompiled. I think I got it right, but just want to be sure.
[Nexus 4 Original Android Development] endursa:
yep 3.4.29 should be harsh's kernel, stock always is 3.4.0 (4.1.2 and 4.2.2)
[Nexus 4 Original Android Development] rodries:
Hi Harsh

I've seen you haver merged with linux 3.4.30

Can you add this little patch before posting the next release of your kernel?

https://android.googlesource.com/kernel/msm/+/android-msm-mako-3.4-jb-mr1-kgsl^!/#F0

It's the only one missed from original sources.
[Nexus 4 Original Android Development] Pumpino:
Where did you get 3.4.30 from? The latest Harsh is 3.4.29.
[Nexus 4 Original Android Development] :
I'm getting over 3hrs screen on time with 53% battery left, I'm shocked, I recently returned to stock but I'm on Domination ROM now, I'm assuming it was undercover who suggested going back to stock again would improve battery life, he was damn right
[Nexus 4 Original Android Development] Nova163:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Harsh merged it into his code, but didn't release it yet. I guess we'll see a release soon enough :)
[Nexus 4 Original Android Development] estallings15:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Github, fool. Pay attention ;)
[Nexus 4 Original Android Development] flxdms:
You are right. I find them a little bit too warm. I can't get used to them (and trust me, I've tried). I liked the previous version as well, but I think I like halfbreed even more.
[Nexus 4 Original Android Development] Higgsy:
I've tried them all and always keep going back to halfbreed.
[Nexus 4 Original Android Development] Lownita:
Guys regarding the wifi drop: I tried out trinity, was the same. Then I flashed franco, there it seems to be gone?! Could someone confirm this?
[Nexus 4 Original Android Development] odeccacccp:
yes works same.

but 4.2.2 stock is useless:) I restored, waiting for custom one to come out. (using SlimBean)

---------- Post added at 09:07 AM ---------- Previous post was at 09:06 AM ----------

I don;t have WiFi drops at all, on any.
[Nexus 4 Original Android Development] Nova163:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

I've seen this recommendation before, but I don't get how or why it would work.

I flashed the OTA update after I got my phone, then flashed CM and Harsh kernel. Would it benefit me if I went back to stock and flash CM back? And would I need to re lock bootloader etc too?
[Nexus 4 Original Android Development] nokkenas:
Yeah I find them unbearable. I can't stand the yellowish tint that it gave me. I gave the first calibration one more try with 40-50% brightness. I was afraid that it will increase battery consumption initially, but it's becomes so beautiful that I forget about battery lol. I'm going to try moles' halfbreed tomorrow.

Edit:

Anyway, I heard no custom kernel works with 4.2.2 yet because 4.2.2 has no kernel source code, is that true?
[Nexus 4 Original Android Development] undercover:
http://pastebin.com/8Aiev7gf

Data kicked in after a while, so not sure if error is there. Let me know if not, I'll redo it.

Thanks for your help guys.

Sent from the fridge. Make: LG Model: N4
[Nexus 4 Original Android Development] eep2378:
Exactly. The only difference is carrier. Could there be something related to the carrier kernel combo that makes data go wacky?

Sent from the Nodes of Ranvier
[Nexus 4 Original Android Development] traster:
at my stock rom 4.2.1 rooted deodexed

with this kernel after 24h i have 3g data drop and the touchscreen dosent work any more.

Reboot help. (hold the power button 30sec)
[Nexus 4 Original Android Development] undercover:
No, don't think so. My carrier is having problems atm in my are, but it's not that. I did test other kernels. Also roll back 2 builds and it works fine. Sometimes doesn't get along with that particular kernel on last 2 builds. Interestingly, it's when toggles have been introduced. I'd blame them, but again, other kernels work fine.

Sent from the fridge. Make: LG Model: N4
[Nexus 4 Original Android Development] eep2378:
Log?

Sent from the Nodes of Ranvier
[Nexus 4 Original Android Development] faux123:
yeap, you really do have data issues :D

D/GSM ( 963): [GsmDCT] setupData: No ready GsmDataConnection found!
[Nexus 4 Original Android Development] undercover:
Expand please.

Problem is icon comes up just fine, switches from G to 3g and H as connection changes. But it stays grey (no connection to google servers) and no data app works. Icon present, data absent :)
[Nexus 4 Original Android Development] Mahdi786:
Hi, just saw your post and I have the same problems, I'm in the UK on T-Mobile, slow data connection, data cuts off, icon shows h but nothing else. I ran some test on my n4 and my s2 with my sim, they both have slow data speeds then I tested on my wife's s1 with her T-Mobile network and same problem, so I think this problem is from the carrier.
[Nexus 4 Original Android Development] undercover:
I am on Orange, so same network really. CS confirmed there is a problem. Thing is, unless this is some amazing coincidence that data from carrier is normal when i flash different kernel, it works just fine on other kernels. It also works fine on wife's s3 also on Orange.
[Nexus 4 Original Android Development] Harsh:
Logs would be good. And do you have sweep2wake enabled? Many reported touchscreen issues after sweep2wake, so its disabled by default in newer builds. I mean are you on older build of kernel?

I dont think its your carrier. It should be kernel as all builds before those wakelock fix works fine for you. Got some changes, compiling new build right now for you to test.
[Nexus 4 Original Android Development] undercover:
Charging :D

Did you see anything useful in the logs?
[Nexus 4 Original Android Development] Harsh:
It seem like its not able to load apn properly, and hence showing data not active. Probably disconnecting it, same as it happens in many smartphones when we are dialing or when phone is ringing, but here without dial or ring.

It does seem due to those fixes we implemented in usb for wakelocks, as modem is connected to usb in this chip.
[Nexus 4 Original Android Development] Harsh:
Here is new build just to test for those having data loss issues.

Changelog not provided its experimental build for ppl having data loss.

http://d-h.st/kat
[Nexus 4 Original Android Development] undercover:
No go. Just flashed matrix to test, no data too. Now flashing previous RBJ build to test if it's rom related. If problem persists, then it's a bloody carrier and it means that i just wasted your time :(
[Nexus 4 Original Android Development] zhuozhi211:
Have the same issue on Buil 02Jan. More apparent when switching from WIFI to 3G, or when coming from good reception area to worse reception area.

The icon show G/3G/H but stays gray with no data. Kicks back after a while, but may be long wait.
[Nexus 4 Original Android Development] undercover:
What's your network?

Just tested with different builds of roms and kernels, no data. Looks like operator is confirmed.

I apologise for wasting your time Harsh. Thank you very much for taking time to look into it.

Sent from the fridge. Make: LG Model: N4
[Nexus 4 Original Android Development] Harsh:
No problem. It's fine, I strongly believe smartphone should always have internet. So was helping to keep your smartphone smart. In the process I implemented tons and tons of codeaurora patches :D... Some helpful some just small, and many I don't understand but add it so it does not break in cherry-picking. Don't like conflicts

Sent from my Nexus 4
[Nexus 4 Original Android Development] jarjar124:
you should do a little cherry-picking at a time next time so you might know what it conflicting. who knows, it might not be the kernel like undercover says. i am glad your doing all you can to fix the issue.
[Nexus 4 Original Android Development] dwang:
what kernels have u tried. Most of the major ones (franco, faux, cm10.1) have all the the ehci hsic patches merged so they all seem to have the same mobile data issues.

motley exp10 doesn't have all of the hsic patches merged in and is one of the few kernels that isn't giving me mobile data drops.
[Nexus 4 Original Android Development] Harsh:
I dont mess around with fully working branch, just created new branch for wakelocks, so I know what was cherry-picked :good:

Also created new branch for IPA, always in github. Just published it before few seconds, github is now at latest commit.

Latest kernel for now is datatest build http://d-h.st/kat

Can you both try above datatest kernel?
[Nexus 4 Original Android Development] dwang:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Hmm wake locks aren't fixed with the stock 4.2.2 kernel and updated radio. This with WiFi off.
[Nexus 4 Original Android Development] rskyline:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Same here I'll switch back to cm when I'm at home. Stock is same as 4.2.1 for me.

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] Nova163:
I've been messing around a bit with building CM nightlies with built in Harsh kernel, half breed gamma settings by molesarecoming 'hardcoded' and stock bootanimation (the Nexus X). Would anyone be interested in using those, assuming the original devs agree? It's nothing special, but I figured since I'm building them anyway I might as well share them in case anyone likes not having to flash 101 zips every rom install.
[Nexus 4 Original Android Development] Harsh:
sure man share it, sharing is always process of learning. ppl suggest and you learn. 1st step forward.

And ppl here is teaser :D
[Nexus 4 Original Android Development] Nova163:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

thanks, and on a related note:

:p
[Nexus 4 Original Android Development] Higgsy:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

If your building from harsh's sources with halfbreed hardcoded I'll take that. It will save me the init.d script etc. Start a new thread though I reckon-easier to follow.
[Nexus 4 Original Android Development] Nova163:
Right now I'm building a ROM with kernel and halfbreed configuration included, but I can easily build only the kernel with halfbreed configuration (without the entire ROM). Will take a few days though, until I have the time.
[Nexus 4 Original Android Development] Michealtbh:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Not sure if you've seen, but 4.2.2 kernel source is out https://android.googlesource.com/kernel/msm/+/android-msm-mako-3.4-jb-mr1.1
[Nexus 4 Original Android Development] eep2378:
Umm.........pretty sure he knows(see screenshot above) :D
[Nexus 4 Original Android Development] estallings15:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

This guy. Sheesh

Smh..
[Nexus 4 Original Android Development] wizshaw:
Back on page 126, a guy posted some low uv settings to be included in the initial script... well how do I do that?

I tried to update it to basic notepad and saved it, then made a zip file.. but it wont take in recovery.

How do I get these settings into the script and finally into the zip?

Thanks.

:)
[Nexus 4 Original Android Development] Notorious544d:
I want to mention something. All the scripts posted for visceral's amazing calibration DOES NOT work! This is because there's been a mix up between the white and grey values. This is evident by 'grey skin,' if anybody has noticed that. I've tried this myself by flashing Franco's kernel, applying the colours, testing it using display tester and comparing it to the scripts posted on this thread on Harsh's kernel.

To solve this, you simply have to swap the 2nd and 9th value. As I know that everybody is lazy, I will do it for you :p

Visceral's TRUE v1 calibration:

echo 175 175 175 > /sys/devices/platform/kcal_ctrl.0/kcal

echo 208 [COLOR="red"]0[/COLOR] 100 255 0 0 0 200 [COLOR="Red"]20[/COLOR] 2 > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo 210 [COLOR="red"]0[/COLOR] 100 255 0 0 0 200 [COLOR="red"]20[/COLOR] 2 > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo 212 [COLOR="red"]0[/COLOR] 100 255 0 0 0 200 [COLOR="red"]20[/COLOR] 2 > /sys/devices/platform/mipi_lgit.1537/kgamma_b

Note: it is recommended to set your brightness to 50% using these settings.

Now you will see how the screen looks 'brighter' since the grey gamma has been fixed whilst still conserving the pop in RGB. It does look absolutely brilliant.

Enjoy!
[Nexus 4 Original Android Development] ckret:
thanks, looks waaaaaaaaaaaaaaaaaaaaaaaaay better now
[Nexus 4 Original Android Development] flxdms:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

I'll update my zip files accordingly once I get access to a computer. I'll post them here. I'm pretty sure that my g_whites and g_grays values were correct, though. Grays should be 0 and whites should be set to 20 according to this post : http://xdaforums.com/showpost.php?p=37917796&postcount=12471

Harsh uses this layout

static char p_gamma_r_setting[10] = {0xD0, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys, 0x01};

static char p_gamma_g_setting[10] = {0xD2, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys, 0x01};

static char p_gamma_b_setting[10] = {0xD4, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys, 0x01};

I'm not sure what went wrong, though. I'll upload the original colours from visceralpsyche and your colours as well.
[Nexus 4 Original Android Development] Pumpino:
3.4.31 has just been released. :)
[Nexus 4 Original Android Development] Notorious544d:
I think moles made a mistake, and so got the grey's and whites the wrong way round. Franco updated his kernel to the correct values, and since Harsh hasn't, then we have to switch it back round for it to work as desired.
[Nexus 4 Original Android Development] ckret:
static char p_gamma_r_setting[10] = {0xD0, g_greys, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_white, 0x02};
769
+static char n_gamma_r_setting[10] = {0xD1, g_greys, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_white, 0x02};
770
+static char p_gamma_g_setting[10] = {0xD2, g_greys, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_white, 0x02};
771
+static char n_gamma_g_setting[10] = {0xD3, g_greys, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_white, 0x02};
772
+static char p_gamma_b_setting[10] = {0xD4, g_greys, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_white, 0x02};
773
+static char n_gamma_b_setting[10] = {0xD5, g_greys, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_white, 0x02};

thats how franco does it

so white and grey has to be switched
[Nexus 4 Original Android Development] flxdms:
Here are the fixed flashable zips.

edit: added a fixed warmer gamma preset.
[Nexus 4 Original Android Development] flxdms:
I see. No wonder they looked a little bit off. I'll edit the warmer settings.
[Nexus 4 Original Android Development] nycelitemaster:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Anyone using kernel on 4.2.2??

Sent from my Nexus 4
[Nexus 4 Original Android Development] drdrewdown:
yuuuup
[Nexus 4 Original Android Development] Notorious544d:
I think it should work as I've seen people with that combo on other kernel threads, but don't blame new if your phone explodes.
[Nexus 4 Original Android Development] nycelitemaster:
is there stock kernel for 4.2.2 just incase harsh kernel get unstable on 4.2.2 i can revert back?

---------- Post added at 07:44 PM ---------- Previous post was at 07:38 PM ----------

crap, boot.img will not work!! we need new ramdisk compiled w/ kernel. Maybe harsh in his free time can compile for some of us. Thanks in advance.

edit: stock img link, i extracted out of 4.2.2, someone unlucky who tried my stunt lol!! click hereStock Kernel for 4.2.2
[Nexus 4 Original Android Development] kennyp987:
DOOD!

https://android.googlesource.com/platform/manifest/+/android-4.2.2_r1/default.xml
[Nexus 4 Original Android Development] mundixx:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Hey Harsh.. Are you gonna hardcode visceral's calibration or moles' halfbreed in the next update? :D

Sent from my AOSPA Nexus 4
[Nexus 4 Original Android Development] ftarules:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

I would favor Halfbreed rather than Visceral due to he's for higher brightness for visceral settings.
[Nexus 4 Original Android Development] whittikins:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Maybe I'm crazy, but switching what I had made the colors look awful for gray and black backgrounds. Like a cloud over it. I switched them back and it's much better.

However, I prefer moles dark contrasty anyways so I'm going back to it. Maybe they are wrong about the first number being gray instead of white. Increasing that number definitely makes the screen whiter.
[Nexus 4 Original Android Development] zhuozhi211:
on 4.2.2 stock with Harsh kernel... phone 've not exploded yet, nor 've I notice any incompatibility; well there may be but not noticeable at least.
[Nexus 4 Original Android Development] ruzkay:
AW: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Harsh kernel ftw never had red light issues like the others. Excited for 4.2.2 version :D

Good work so far, take your time.
[Nexus 4 Original Android Development] bleuf1sh:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

truth

mako | 4.2.2 factory stock
[Nexus 4 Original Android Development] :
Same here hope Harsh hard codes the half breed colors on upcoming kernel, if not I'll still be using it so keeping my fingers crossed
[Nexus 4 Original Android Development] Lownita:
The first one looks amazing! The second one is way too warm for me.

edit: What do you guys think about colours_visceralpsyche_fixed_by_Notorious544d.zip with RGB 245/240/255 ? Better or worse? I can't decide hmm :D
[Nexus 4 Original Android Development] allgsmnetwork:
this kernel have oc cpu or gpu?

tnx
[Nexus 4 Original Android Development] ckret:
nope

and i cant imagine why you need that
[Nexus 4 Original Android Development] Harsh:
Yes 4.2.2 got new ramdisk and also newer graphics driver. My sources are synced with new source, so next version would be all latest.

I would just keep it as it is, init.d is simple and now everyone knows about it.

Current kernel works for sure, but newer graphics driver would improve a bit on 4.2.2 :D
[Nexus 4 Original Android Development] -iNSiGhT-:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

So we're waiting for your new 4.2.2 kernel... ^_^

Paranoid Nexus4
[Nexus 4 Original Android Development] wizshaw:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Can't wait for it harsh... I'm checking this thread like every hour!
[Nexus 4 Original Android Development] endursa:
AW: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

I guess I have to setup an Ubuntu vm to sync and build the kernel myself after all :D damn impatience ;)
[Nexus 4 Original Android Development] Harsh:
Well this is faster than making whole new setup of Ubuntu :D

here is link to Feb-16 build

Changelog:

New update to 4.2.2 google sources

Linux 3.4.31

Google update brings video drivers improvements
[Nexus 4 Original Android Development] evo2dn:
Re: [KERNEL][UV][Linux 3.4.29] Harsh Kernel build Feb-05

Does this still include S2W?
[Nexus 4 Original Android Development] Harsh:
yes, but disabled by default. And sweep2wake only works on bottom part as per my own choice (navigation button size)