yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] kenshinta:
This sounds like what I hope this is the one thing that helps with my lag from sleep/suspend. I've reported on this before HERE. Swapped around franco and semaphore up to v1 of semapahore and that lag is still there though perhaps less repeatable.

Note that suggestions of reset kernels between changes really didnt help at all. Especially since I dont CWM flash but fastboot flash only the kernel image on a stock rom.
[Nexus 4 Original Android Development] ceejay83:
Think I like the older governor settings more. I'll take performance over battery :)
[Nexus 4 Original Android Development] stratosk:
I also prefer performance over battery.

I feel my phone snappier and more smooth with new changes.

Anyway, we will see what is the best.
[Nexus 4 Original Android Development] PRGUY85:
Sorry if I missed this but over on Faux and Franco kernel, they posted implementation of something they call Google kernel freezer patches. Are these in 1.1 as well?
[Nexus 4 Original Android Development] PRGUY85:
Well I feel dumb now. Thanks!
[Nexus 4 Original Android Development] philidor:
Have you dirty reflashed your ROM? With CM 10.1 flash the ROM (with CWM) without wipe and after flash kernel (this will restore all the modified / absent lib in Franco kernel)

Inviato dal mio GT-P3100 con Tapatalk 2
[Nexus 4 Original Android Development] forcedairinduction:
Hmm. I'm only managing to get around 21k in antutu with carbon and semaphore???

Not sure why so low
[Nexus 4 Original Android Development] Scallywag1:
Who cares? They don't really tell you accurate readings. Does it feel fast? Does it load fast? That's what matters.

And thanks for the great work and kernel. This has been so great on my phone from battery to performance to temp.

Great work
[Nexus 4 Original Android Development] Tylog:
Absolutely sign. I never understand this Antutu talking. I never use so a program like this, I can feel myself when my phone is smooth and when not.

Tapatalk
[Nexus 4 Original Android Development] forcedairinduction:
E=Scallywag1;41893218]Who cares? They don't really tell you accurate readings. Does it feel fast? Does it load fast? That's what matters.

And thanks for the great work and kernel. This has been so great on my phone from battery to performance to temp.

Great work[/QUOTE]

I generally use benchmarks in addition to how the ROM/kernel feels to me. I like to have an idea about comparative speeds when swapping from roms/kernels. I only mentioned the antutu results as I noticed some guy had posted his results and they were much higher than mine.

Generally huge differences in results could mean I've mussed something in the setup which is impeeding my performance : )
[Nexus 4 Original Android Development] -iNSiGhT-:
In "/sys/devices/virtual/misc/gamma_control" folder, you'll find the three gamma files (gamma_r, gamma_g and gamma_b)

;)

Paranoid mako
[Nexus 4 Original Android Development] siddjazz:
I know this isn't indicative of anything. But the battery on the 1.0.0 version has been phenomenal!

Donation coming your way my good man.
[Nexus 4 Original Android Development] TPOOM:
This must be and is a stupid question, but you say in the op to flash them in cwm. Does it mean the zips are not compatible with TeamWin ? I'm just too much of a coward to try :/ without asking or mayhe just a bit ocd. Thanks for a simple anwser !

Thanks! I hope this kernel will sustain my 8hour heavy duty usage of 3G and constant media streaming. Will give results after a few days of stressing!
[Nexus 4 Original Android Development] Slymobi:
Its fine to flash with twrp too. Don't panic ;)
[Nexus 4 Original Android Development] stratosk:
Thanks so much! I really appreciate your help! :)

BTW, did to try the new 1.1.0? I would like a feedback about the changes in ondemand. Thanks!
[Nexus 4 Original Android Development] eep2378:
Any particular reason the default scheduler is now noop?
[Nexus 4 Original Android Development] stratosk:
Because it's the most simple one and many consider it the most suitable for solid state storage.
[Nexus 4 Original Android Development] eep2378:
keeping it simple, I like that :)
[Nexus 4 Original Android Development] illanxr:
Hope this helps. Using last 1.1.0, default on-demand governor. SIO scheduler, -100 mV UV. Looking forward to +6 hours SOT
[Nexus 4 Original Android Development] -iNSiGhT-:
Giving another try...

I set the uV in another way. Instead of keeping boost on and uV by my values, I disabled boost and uV by 25mV less...

let's see if I still have reboot...

Paranoid mako
[Nexus 4 Original Android Development] ctfrommn:
I actually benchmarked them all one day and no-op was the fastest with this kernel.
[Nexus 4 Original Android Development] DesmoDavid:
Ehi man, awesome and smooth kernel, well done! :D
[Nexus 4 Original Android Development] manjee:
Hi stratosk,

1.1.0 is your best kernel so far IMO. I experienced a slight battery life increase compared to previous versions. I tweaked ondemand like follows : View attachment 1997515

I also UVed (see screenies).

Stability is very good. I only miss Franco's sound enhancements but I stick with semaphore as I trust you to make our N4 shine :)

A fellow user of semaphore since GB days.
[Nexus 4 Original Android Development] TheeWolf:
hi,

can you please go to settings - about phone - status are tell me what your signal strength is (with numbers, I mean dbm and asi)? Thanks!
[Nexus 4 Original Android Development] LaboDJ:
Hi Stratosk!

I'm building up private tests kernels cherrypicking code from franco kernel, your kernel and so on...

I wonder how to merge upstream linux changes from 3.4.0 to 3.4.47, is there a fast way to do this?

Let me know, and thanks for your hard work, I follow you from i9000 days :good:
[Nexus 4 Original Android Development] emanuele1986:
yes i've undervolt.
[Nexus 4 Original Android Development] -iNSiGhT-:
RRRRrrrrrrr!! I just had a reboot... (phone was locked)

I really can't understand why... My uV is lower than the one I used with Harsh...

I set all values with this script and verifying files give me the good values...

Is there someone using Pa and Semaphore with uVing?

Here's the script, just in case :

#!/system/bin/sh

# RGB colours
echo "245 244 240" > /sys/devices/platform/kcal_ctrl.0/kcal

# Gamma settings

echo "57 21 118 0 31 9 72 48 2" > /sys/devices/virtual/misc/gamma_control/gamma_r
echo "57 21 118 0 31 9 72 48 2" > /sys/devices/virtual/misc/gamma_control/gamma_g
echo "57 21 118 0 31 9 72 48 2" > /sys/devices/virtual/misc/gamma_control/gamma_b

#UnderVolting

echo n > /sys/module/acpuclock_krait/parameters/boost
echo 1026000 > /sys/module/acpuclock_krait/parameters/higher_khz_thres
echo 100000 > /sys/module/acpuclock_krait/parameters/lower_uV
echo 137500 > /sys/module/acpuclock_krait/parameters/higher_uV

#TouchWake

echo 1 > /sys/devices/virtual/misc/touchwake/enabled
echo 5000 > /sys/devices/virtual/misc/touchwake/delay

#Vibrator

echo 85 > /sys/class/timed_output/vibrator/amp

# -----------------end-----------------------

Paranoid mako
[Nexus 4 Original Android Development] Remoteconcern:
A log would be useful - try posting last_kmsg. However, it's almost certainly due to undervolt. I am not sure what harsh kernel is like, but semaphore keeps phone at different frequencies for longer, so maybe one of those frequencies is unstable at the voltage but wasn't used much with harsh. Upping the voltage by 50mv won't change battery usage at all and will probably remove all instability.
[Nexus 4 Original Android Development] stratosk:
Try with small values uV. If it's stable then increase uV.

Every kernel uses different governors and tweaks that use different amount of time in each CPU frequency step.
[Nexus 4 Original Android Development] stratosk:
Hi,

Unfortunately, there is no fast way.

There is only the hard way.

Merging changes from 3.4.47 to Google's 3.4.0 requires to resolve lot of conflicts and many tries.

Of course if you manage to update to latest version then it's easier to maintain it.

You may do this in your git repo (better to a test branch):

git remote add linux-stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

git fetch linux-stable

git merge v3.4.47

At this point, you will get the conflicts I mentioned.
[Nexus 4 Original Android Development] LaboDJ:
many thanks... I'll try!
[Nexus 4 Original Android Development] Slymobi:
Im using pa with UV at this moment with no issues.
[Nexus 4 Original Android Development] -iNSiGhT-:
Thanks, I'll try with a less aggressive uV.

Didn't mind uV could be different from a kernel to an other...

Paranoid mako

---------- Post added at 02:22 PM ---------- Previous post was at 02:19 PM ----------

OK, I'm currently trying 125000 for lower and 150000uV for higher (12500uV less). Will go down if still reboot.

Paranoid mako
[Nexus 4 Original Android Development] alekos-ep91:
Hi

I have the following problem with the semaphore app.

I have allowed the app to get superuser rights successfully.
[Nexus 4 Original Android Development] Sanael:
You probably haven't busybox. Install it from the market.
[Nexus 4 Original Android Development] alekos-ep91:
Yes...thats was the problem

I installed busybox and everything ok now

Thank you!!!
[Nexus 4 Original Android Development] playya:
You forgot to click thanks for your fellow user that helped you. It's ok I will get it for you
[Nexus 4 Original Android Development] alekos-ep91:
Aahhh sorry...i forgot it

I just did it:D
[Nexus 4 Original Android Development] DesmoDavid:
Awesome man, this is an AWESOME kernel. Now I'm using it with the lastest PA... 2h40 of screen on and I have 52% of battery. Testing it under wifi connection with tapatalk/browser/whatapp. I repeat, AWESOME!
[Nexus 4 Original Android Development] MichaelVeringo:
What sort of which craft is this? What are your settings? I only get 3 hours of screen on time with a full battery.
[Nexus 4 Original Android Development] a g bell:
Hi,ln trickster app there is a way to change GPU governor from on demand to performance is there away to do this in terminal ? I just want to use semaphore manager not both:D
[Nexus 4 Original Android Development] DesmoDavid:
I don't know, only change I made is the color setting. All default. Now I'm on 46%, 3h of screen and circa 14h of operating time. =)

From Nexus⁴ with Tapatalk 4 ßeta
[Nexus 4 Original Android Development] pitjago74:
With this kernel my best score...18hours battery and 6h SOT:D:D:D

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] stratosk:
No, you can't do this using Semaphore Manager.

Performance is a special governor, that keeps the CPU to max freq all the time.

I don't recommend performance for normal usage.
[Nexus 4 Original Android Development] a g bell:
OK thanks,you know l mean GPU governor only right ?not whole cpu :confused:
[Nexus 4 Original Android Development] stratosk:
I'm sorry, I saw the 'G' as 'C'.

But the answer would be the same. GPU is a special CPU. We should keep it in low freqs when we don't use it.
[Nexus 4 Original Android Development] aaron.bufc:
Latest kernel running very well for me so far. Using your recommended setting for sampling rate and threshold, noticing better performance.
[Nexus 4 Original Android Development] ventu08:
you don't happen to have any problems during the awakening from the lock?

I have big slowdowns as if the terminal would struggle to wake up, changing the settings with the app slightly improve things but the problem remains
[Nexus 4 Original Android Development] antih3ro:
Same problem here.
[Nexus 4 Original Android Development] stratosk:
What is your ROM? Previous kernel?

If you have a clean installation, please post kmsg and logcat.
[Nexus 4 Original Android Development] capoooro:
Try to dirty reflash ROM and gapp and kernel.

pizza mandolino pasta
[Nexus 4 Original Android Development] ventu08:
I have the carbon and before I had franco kernel

---------- Post added at 01:49 PM ---------- Previous post was at 01:41 PM ----------

you forgot the gnocca.....pizza mandolino pasta and GNOCCA
[Nexus 4 Original Android Development] TPOOM:
Hi!

I have a slight issue when updating gamma values, with nothing happening, I tried to disable and enable debug/ rebooted several times woth no changes.

Anyhoo I am coming from PA 3.56 22may with no previous kernel or rom changes from stock.

Anything other then that Im very pleased after two days of stressing! 6+ hours of streaming with about an hour or so OST. Quite remarkable !

Will update when home.
[Nexus 4 Original Android Development] capoooro:
Definitely dirty reflash ROM. Franco uses another ramdisk. So lags come from that.

In order ROM japps and semaphore. ;)

pizza mandolino pasta
[Nexus 4 Original Android Development] eep2378:
[MENTION=3750240]stratosk[/MENTION], I just have to say how much I'm enjoying this kernel. Fast, fluid, great battery life, and just the right amount of features. Touch wake is great, especially when reading something of length you can simply tap screen and continue :). This kernel has everything I need and I just wanted to say thank you for sharing your hard work :)
[Nexus 4 Original Android Development] DesmoDavid:
Daily 3g test: 1h30 screen on and 69% of remain battery. :) Don't forget "figa" ahahah

From Nexus⁴ with Tapatalk 4 ßeta
[Nexus 4 Original Android Development] -iNSiGhT-:
We don't have the same battery... :(

Paranoid mako
[Nexus 4 Original Android Development] stratosk:
Hi,

Please try to turn off/on the screen using the power button after you apply your settings.

I'm very glad you like it! :)

Thanks for your nice words and for your feedback!
[Nexus 4 Original Android Development] qtekker:
Stratosk, I have a request. USB charging takes ages before the battery is full. It would be nice if you could implement USB fast charging. It's not a big deal if you skip this feature, because I know you don't have much free time.
[Nexus 4 Original Android Development] trillo69:
I think usb fast charge hack doesn't work in Nexus 4. All kernels I've tried that supposedly have that feature, charge at same speed with or without it enabled.
[Nexus 4 Original Android Development] qtekker:
Have you tried franco kernel? It worked for me.
[Nexus 4 Original Android Development] stratosk:
I will check it, my friend.
[Nexus 4 Original Android Development] .dan:
red led comes on when using google maps navigation and also when watching netflix.. is this normal?
[Nexus 4 Original Android Development] stratosk:
It means that your CPU goes over 52 degrees.

It's normal when your CPU has much load for some hour.

If it's annoying you may disable the red LED from Semaphore Manager.
[Nexus 4 Original Android Development] .dan:
thanks, i should have been more clear. is it normal for the CPU to go over 52 degrees using those services in the short amount of time (15 minutes)? I never noticed it in the past since i never had any visual cue.

also, i uninstalled the app since i remember you mentioned that the app has outdated default settings for the kernel. with version 1.1.0, i believe you changed some on demand settings. if i install the app, will it go to the kernel default, or the app default?
[Nexus 4 Original Android Development] ctfrommn:
Yes, especially if you arent undervolting. 52c is nothing to worry about.
[Nexus 4 Original Android Development] Odiumvex:
Using your app what are the values I change in color to say make it look like PA Halfbreed? Or PA Bright calibration?
[Nexus 4 Original Android Development] stratosk:
Your CPU temp may easily raise to 62-63 if few seconds with all cores online.

So, 52 it's not something that you have to worry about.

No, need to uninstall app. Just change sampling rate to 30000 and up threshold to 95, if you want to align with kernel defaults.
[Nexus 4 Original Android Development] stratosk:
I'm sorry, I have no idea. :)
[Nexus 4 Original Android Development] JmPTaz09:
Ah, didn't realize the app was changing anything. Just changed to 30000 sampling rate and 95 up thresh. Early demand was also off so I turned that on. Should I leave the gradient up thresh at 50? I assume io is busy should be left on also? Thanks, always like to run it as the dev recommends :beer:

p.s. got stellar performance and battery yesterday on this kernel version 1.1.0 paired with Purity rom; quite a nice combo!
[Nexus 4 Original Android Development] stratosk:
Maybe you can turn off early demand due to new changes to ondemand
[Nexus 4 Original Android Development] jelle2503:
someone posted an excel file with numbers for PA halfbreed gamma settings in this thread.

would be nice if they can be included as profiles in Semaphore app, dear stratosk. It will help user. :good:
[Nexus 4 Original Android Development] trillo69:
Yes, on M2 and 142, and I'm pretty sure it charges at same speed with option enabled and disabled. It depends more on the usb cable you are using (if it's from an ac charger it charges faster).
[Nexus 4 Original Android Development] -iNSiGhT-:
For halfbreed colours :

Set these values to the 3 Gamma :

64 68 118 0 25 4 66 32 1

For brighter ones :

57 21 118 0 31 9 72 48 2

Paranoid mako
[Nexus 4 Original Android Development] illanxr:
-85 dBm 14 asu
[Nexus 4 Original Android Development] apatal:
Noticed this too. Used to always turn on early demand, but tried turning it off yesterday without noticeable decrease in performance. Really loving this kernel now. :)
[Nexus 4 Original Android Development] ctfrommn:
Try interactive too...it's very smooth and even better on battery then Ondemand.
[Nexus 4 Original Android Development] aanonymoushuman:
How good is the battery life on this kernel?
[Nexus 4 Original Android Development] ctfrommn:
Very, at least equivalent to the other good kernels out there. Plus you get mpdecision smoothness to boot.
[Nexus 4 Original Android Development] playya:
Come on man have you bat least read a few post. Thats such a blanket statement, flash and test because from yhe post in here we are all fans.
[Nexus 4 Original Android Development] roddem:
touch wake ?

how to use the touch wake ? i am not able to figure out

please help
[Nexus 4 Original Android Development] stratosk:
Please enable touchwake from Semaphore Manager and also set the desired delay (in msec).

Then when your screen is turned off due to inactivity you can touch the screen to turn it on.

If you use the power button to put the phone to sleep, touchwake is not activated.
[Nexus 4 Original Android Development] roddem:
Was unaware of the power button thing. Thanks a lot :)trying the kernel out starting today.

Advises for best battery would be appreciated ..
[Nexus 4 Original Android Development] LaboDJ:
Hi Stratos!

I see you compile with this toolchain: gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux

that it's not the classic android linaro toolchain.

Why do you use it instead of classic one?

Which compiler do you use? Gcc-4.7 or Gcc-4.7-arm-gnueabihf?

I'm using gcc 4.7.3-2ubuntu4 and g++ 4.7.3-2ubuntu4, I don't understand how to build linaro gcc, anyway... if I try to compile with Gcc-4.7-arm-gnueabihf it give me this error during defconfig:

HOSTCC scripts/basic/fixdep
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: word unexpected (expecting ")")
make[1]: *** [scripts/basic/fixdep] Errore 2
make: *** [scripts_basic] Errore 2

Another question: is counterproductive to use O3 optimization like you do with i9000 kernel?
[Nexus 4 Original Android Development] jophilo:
Hi,

so far so good ;) !

i have a question: can you change CPU PVS to Fast with semaphore manager ? If yes how ? And if no, will it be possible in the next version of your app ?

Thx
[Nexus 4 Original Android Development] ratcav:
The CPU PVS is hardware, it can't be changed.
[Nexus 4 Original Android Development] jophilo:
Yeah, just read again the op and understand that ....shame on me :) !!!

Thx anyways for your answer ratcav :).
[Nexus 4 Original Android Development] ratcav:
No problem, we're here to help each other
[Nexus 4 Original Android Development] DesmoDavid:
Hi stratosk, any project about slide2wake and slide2sleep? :)

From Nexus⁴ with Tapatalk 4 ßeta
[Nexus 4 Original Android Development] stratosk:
I'm not sure about your error. But it's common that different gcc versions may have compatibility issues

I use the pre-built linaro toolchain for long time. No issues so far.

O3 causes booting issues to me. But I believe the difference is very small.

No, I will not include them. Touchwake is enough.

And slide2wake consumes battery.
[Nexus 4 Original Android Development] Bluewall:
Hey thanks for the update, going to try it asap !

Btw, little question, do you plan patching the kernel to be compatible with the new way on CM to use the broadcast filter ?

They disabled it ROM side and they patched the kernel. Because, if the ROM has disabled broadcast filter but the Kernel isn't patched for it, it will cause huge battery drain on Wifi :p

EDIT : Here's the comit I'm talking about https://github.com/CyanogenMod/lge-kernel-mako/commit/85ba2bc0fc741a663c094ccd84faa3b18d21e292 cheers :)
[Nexus 4 Original Android Development] stratosk:
I will look CM related issues.

But at the moment, I need some time to be familiar with the new device (and the kernel of course) :)

So, please for your patience.

EDIT: noted, thanks
[Nexus 4 Original Android Development] Bluewall:
Don't worry :) Just trying to help if I can and I pointed out this because you may have some users complaining about huge battery drain and it's hard to understand where this come from lol
[Nexus 4 Original Android Development] joomlafreak:
Is the module support enables in version 2.0. I am asking to consider the possibility of using the touch control app with this kernel. Thanks
[Nexus 4 Original Android Development] stratosk:
I'm sorry, not yet. It will be in next version.
[Nexus 4 Original Android Development] cenonmin:
Happy days! You guys are awesome :)
[Nexus 4 Original Android Development] davwman:
Wow. Have been running this for a day now, and totally forgot I was using conservative being that it was running insanely smooth. Here's some screen shots.:beer:
[Nexus 4 Original Android Development] noobiekins:
Could you include codeaurora's interactive governor? https://www.codeaurora.org/gitweb/q...a=commit;h=refs/heads/aosp/android-2.6.35-rc3
[Nexus 4 Original Android Development] stratosk:
Interactive governor is included.
[Nexus 4 Original Android Development] yukkio:
I'll flash when it's done :D That kernel makes my sgs flies :)

BR.
[Nexus 4 Original Android Development] davwman:
I'm assuming its been stated that semaphore no worky with cm10.1(semaphore)?
[Nexus 4 Original Android Development] jarjar124:
Nopee.
[Nexus 4 Original Android Development] davwman:
Ahhh...poopee

I read back and thought someone had it running on cm10.1. Was using rasbean which was insanely smooth with semaphore. But just switched to sentinel to give it a go. Now just need some semaphore!
[Nexus 4 Original Android Development] aaron.bufc:
Also running latest Rasbean with Semaphore, VERY smooth so far. Only been running for 12 hours or so, will see how it treats the battery compared to Trinity.

Will be following this thread very closely.
[Nexus 4 Original Android Development] sk8oldschool74:
Thanx this looks promising how are the colors compared to stock????
[Nexus 4 Original Android Development] stratosk:
They are... stock. :)
[Nexus 4 Original Android Development] odeccacccp:
Will there be fast change implemented at some point?

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------

I am running carbon which is based on cm10.1 and this kernel works fine with it.
[Nexus 4 Original Android Development] stratosk:
Most probably, yes.
[Nexus 4 Original Android Development] QUIETLYloud:
no it's aosp... clearly stated in carbon op
[Nexus 4 Original Android Development] Vlad87do:
After installing Semaphore , I lost root.... maybe bcs of new partition???

I was on montley kernel and currently I am using ReVoltRom (AOKP 5 Based)
[Nexus 4 Original Android Development] ceejay83:
Think I've read people complain that this drains battery
[Nexus 4 Original Android Development] Slymobi:
Nah I think kalo sorted that issue by not editing some file ? Reading the thread I think he explains this.