yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] stratosk:
New version 0.2.0

- android: logger: fixes from 3.9 kernel

- android: lowmemorykiller: updates from 3.9

- android: binder, timed_output: minor fixes from 3.9

- block: Added SIO scheduler (and cleaned some code)

- cpufreq: ondemand: early demand feature (more info here)

enable it:

echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/early_demand

You may also control the threshold:

echo XX > /sys/devices/system/cpu/cpufreq/ondemand/grad_up_threshold (default 50)

- cpufreq: ondemand: fixes that have beed applied in Linux 3.9

- cpufreq: included conservative governor

- cpufreq: conservative: fixes that have been applied in Linux 3.9

- removed some debug options from configuration

- Compiled with gcc 4.7
[Nexus 4 Original Android Development] stratosk:
BTW, I found that you may face issues using Semaphore Manager app.

It's not compatible yet with N4, so please don't use it until I fix it.
[Nexus 4 Original Android Development] stratosk:
Please don't use kernel's led triggers and ROMs notifications and the same time.

If you want, you may disable led triggers from Semaphore Manager app.
[Nexus 4 Original Android Development] endrekok:
Okay, thank you! By the way this is the best kernel for Nexus 4. I love your hard work with this kernel. This is just awesome!
[Nexus 4 Original Android Development] jelle2503:
Red and blue combined makes green, so I guess both those leds have lit up.

Verstuurd van mijn Nexus 4 met Tapatalk
[Nexus 4 Original Android Development] Slymobi:
Are you sure !! I don't remember red and blue making green when I was a kid mixing colours Lol. ;):D

Edit: I hold my hands up. I'm wrong.

It seems red and blue Cyan does make green when lights are mixed. Paints would give you purple.

My bad lol

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
Red and blue make purple. :)

There is a separate green led.
[Nexus 4 Original Android Development] Slymobi:
Hi stratos.

I'm not sure if this is kernel or ROM (slimbean) related.

From ROM performance settings I set max CPU @ 1350 and it sticks on reboot but after some time I can go back to performance settings and the max value has changed. I just checked and it had lowered to 1296 !!! It doesn't even have that value to choose in the table of choices ?

Hope I've explained correct. Could this be something kernel related or rom ?

Thanks.

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
Hi,

Semaphore kernel and Semaphore Manager app don't touch min/max CPU values. (Only, in the exceptional case that during boot the msm_thermal driver caps the max freq because of overheating. Then it's disabled).

But Semaphore uses (tries to use) mpdecision and thermald.

Those daemons may affect max CPU values.
[Nexus 4 Original Android Development] bobo1337:
This happend to me too.on xylon and slim...but when i flash franco it was at 1512...so i think its kernel
[Nexus 4 Original Android Development] ctfrommn:
Thats because Franco doesnt use mpdecision in his kernels. The lower Max frequency you are seeing is the kernels attempt to lower the core temp. When it cools off, go back and check again. It will be back to 1512 or whatever max you set. This is normal behavior for ALL mpdecision kernels. If you disable thermal throttling (not sure if possible on Semaphore) that will also change this behavior.
[Nexus 4 Original Android Development] choipadu:
Great kernel but I noticed the camera loads a little slow when using face unlock. Everything else is very smooth.
[Nexus 4 Original Android Development] Slymobi:
Thanks, i had a feeling this is what you would reply and is very helpful and i can now confirm its not your kernel stratos. I get this happening too on stock slim kernel.

Thanks for you reply and really sorry for even thinking this would be semaphore ;)

Nope defo not kernel as such.

Now this seems spot on and correct. Once cooled it returned back to normal. I was on navigation mostly today travelling and phone was getting toasty even with UV lol pesky maps is a pain in the ass but necessary for me.

I think this is what stratos said in his reply too just a little different.

Anyway thanks guys I can relax again now I know its normal.

Sent from my Nexus 4
[Nexus 4 Original Android Development] Bluewall:
Well, what's the temp when the LED starts to go red ? :) Is there anyway to modify this ?
[Nexus 4 Original Android Development] stratosk:
52°C. No, you can't modify this threshold.
[Nexus 4 Original Android Development] Bluewall:
Thanks for the quick answer, as usual, you sir are a scholar and a gentleman.

52° is perfect for me :)
[Nexus 4 Original Android Development] ctfrommn:
Stratos,

Have you looked at all the "freezer" commits being merged by IR, Franco,Faux, and others? They apparently aid in the speed/efficiency with which a devices handles deep sleeping. They appear very effective. I am testing the newest IR and it is a noticeable difference. It looks like Colin Cross is the author and they are fairly new.
[Nexus 4 Original Android Development] stratosk:
No I read about these, but I didn't looked them.

Thanks anyway, I will check it
[Nexus 4 Original Android Development] pyr0sphere:
When I set the colour settings through the Semaphore app, they seemed to revert back to stock after a reboot. Just wanted to ask if this was normal. I didn't notice a "set to boot" option
[Nexus 4 Original Android Development] sirxdroid:
Do you happen to have another app such as Trickster that might set different colors on boot?
[Nexus 4 Original Android Development] ursubpar:
My color settings usually don't get into effect until I turn the screen off then on after booting. Otherwise, they're at stock settings at boot.
[Nexus 4 Original Android Development] a1981m:
Phone is pretty much unusable for approximatly 30 seconds after every not so long sleep or pairing/unparing to a bluetooth device.

Bad settings?
[Nexus 4 Original Android Development] Slymobi:
Mmmmm no problems here. I use Bluetooth daily with no pairing issues at all.

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
Something in your configuration.

Please send a logcat and kmsg when this will happen again.
[Nexus 4 Original Android Development] capoooro:
Do you think is normal that in standard configuration the CPU jump from the minimum to the middle and to the maximum frequency and not use all the others?

For the rest is a superbe kernel. It runs without any problem.
[Nexus 4 Original Android Development] stratosk:
Yes, it's normal behaviour with ondemand governor.

Actually, I was working whole last week for exactly this 'issue'. To investigate if something may be improved there.
[Nexus 4 Original Android Development] Remoteconcern:
Whenever I try to install this kernel, I get android to boot up and then it immediately reboots. I have flashed a reset kernel and then semaphore, and deleted all init.d scripts.

I am on a stock ROM, and I removed the Light Flow app to see if it was that interfering with Semphore's LED management but it isn't.

Here is the last kmsg.
[Nexus 4 Original Android Development] Remoteconcern:
OK I found the culprit, an app called experience pro. Removing it stops the rebooting.

Does anyone have the sysfs pathway for the gamma controls? I prefer to use init.d scripts.

Great kernel, thanks!
[Nexus 4 Original Android Development] eep2378:
Here: http://www.semaphore.gr/changelog/n4-version

Look at the changelog for 0.5.5 release all the pathways are there for gamma adjustment. :)

Sent from the Nodes of Ranvier
[Nexus 4 Original Android Development] stratosk:
Thanks for letting me know. I guess it changes something in your /system:

[ 22.600732] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit

I wish I could have more debug info enabled to check what is the cause of the crash.

Maybe I can check it.
[Nexus 4 Original Android Development] Remoteconcern:
Thanks for the link to the gamma.

If you compiled a test kernel with debugging enabled I would be happy to test. I use the app to enable volume rocker music control on stock ROM. thanks :)

EDIT:

I enabled logger and then took another log, through installing semaphore then the app. I get a kernel panic. I think Ezekeel, the developer may need to fix this. Sorry to bother you Stratos. I have attached the log anyway.
[Nexus 4 Original Android Development] stratosk:
App may cause this, but kernel should prevent faults from applications.
[Nexus 4 Original Android Development] adamski123:
Just installed this kernel, and I've tried to use the app and its saying I don't have root when I have superuser installed and I have allowed root access... Any ideas? Thanks.
[Nexus 4 Original Android Development] stratosk:
Please install busybox
[Nexus 4 Original Android Development] adamski123:
That worked. Cheers bro. :)
[Nexus 4 Original Android Development] Jeremy:
Did you come from Franco? If so, flash rom first then flash semaphore
[Nexus 4 Original Android Development] a1981m:
I tried to produce kmsg through your semaphore app but the phone just died on me. I had to hard reset it..something that I didnt had to do for the last 6 months.
[Nexus 4 Original Android Development] stratosk:
What's your ROM?

Did you change anything else except from the kernel?

Other kernels change stuff in ROM. Did you restore before flash Semaphore?
[Nexus 4 Original Android Development] pitjago74:
PA colors In this kernel??with values Halfbreed??thanks

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] eep2378:
Colors are stock default but you can adjust gamma with his app. There are plenty of settings to try, halfbreed included, all over this forum.

Sent from the Nodes of Ranvier
[Nexus 4 Original Android Development] Remoteconcern:
Enter 64 68 118 0 25 4 66 32 1 for each red green and blue. That's halfbreed.
[Nexus 4 Original Android Development] pitjago74:
Thank you very much:D:D:D

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] a g bell:
Hi there seems to be a problem for me with LEDs control in semaphore manger l set all to none yet thermald still comes on :confused:

please ignore not kernel related sorry :banghead:
[Nexus 4 Original Android Development] a1981m:
I am using xenonhd rom, i didnt change anything else, i came from trinity four kernel.

What kind of restore should i have done?
[Nexus 4 Original Android Development] ctfrommn:
I would dirty flash your Rom and reflash the kernel.
[Nexus 4 Original Android Development] sirxdroid:
+1 Easy rule to remember: Always dirty re-flash your ROM before switching to a new kernel.
[Nexus 4 Original Android Development] TheeWolf:
Or flash reset kernel.
[Nexus 4 Original Android Development] a1981m:
Will try it soon, thanks.

Should I restart between the rom and kernel flashes?

Or its okay to do both flashes in a raw
[Nexus 4 Original Android Development] ctfrommn:
You can flash all at once.
[Nexus 4 Original Android Development] lsv-1:
Is there any implementation on this kernel to reduce the msm_hsic_host wakelock and also to improve the touch sensivity?

Thank you.
[Nexus 4 Original Android Development] JmPTaz09:
It's got the super smooth and awesome patches included. ;). Give it a whirl.
[Nexus 4 Original Android Development] lsv-1:
Thank you and what about the freezer.c improvements from Google's Kernel engineer Colin Cross? :D

I am still hesitant on what kernel should I install, I just made a clean install of stock 4.2.2.
[Nexus 4 Original Android Development] sirxdroid:
Take a nandroid backup. Flash a custom kernel, play with it for a day or so, keep notes. Then restore your nandroid so you start with the same setup. Flash another custom kernel, play with it for a day or so, keep notes. Rinse and repeat ... The only way that I know of to find out what you like, it doesn't work too well if you go with what others say, you gotta try them all.
[Nexus 4 Original Android Development] Slymobi:
Agreed. And then you end up here again as final :p

Sent from my Nexus 4
[Nexus 4 Original Android Development] JmPTaz09:
That's what happened to me :eek:

---------- Post added at 04:44 PM ---------- Previous post was at 04:41 PM ----------

Strat said yesterday that he will take a look at this freezer stuff. If it's legit I'm sure he'll build it into his kernel at some point.

As others suggested, just take them for a test drive. It's fairly simple/easy/painless to test out kernels. I've flashed several in one day on many occasions. They're mostly all good; I like this one as it's close to stock and keeps that smoothness with some proper optimizations and UV, etc. :beer:
[Nexus 4 Original Android Development] sirxdroid:
It's hard to find a kernel that sucks on the N4 just because the device is very nice and the stock kernel used as the base is very good to begin with.

Another close to stock kernel worth trying is the new one from PA by Franco, but you'll have to download the entire ParanoidAndroid ROM and extract the boot.img
[Nexus 4 Original Android Development] bobo1337:
On Antuntu with franco on PA i get 13000 and with semaphore i get 19000 so....Semaphore is the BEST! :D
[Nexus 4 Original Android Development] sirxdroid:
I never benchmarked and I doubt I will ever care about benchmarks on phones. The best benchmark for me is my finger, the way it feels to me. I think some people are getting over 20K on a different kernel :D

Did you tune both kernels the same way? I think the default ondemand settings on Semaphore are more aggressive than stock. There may be other settings too such as I/O scheduler, read ahead buffer, etc.

In no way I'm saying one or the other is a better kernel, just make sure you are comparing apples to apples before declaring a "winner". Kernels can have different out of the box settings to serve various purposes: performance, smoothness, battery life, etc.

I like all N4 kernels, some more than others, but not because of benchmarks. We're lucky to have great devs working on the N4 and to have so many choices - as overwhelming as that may be at times.
[Nexus 4 Original Android Development] bobo1337:
Yes i tune both and sem is winner :D And yes our devs are really awesome!
[Nexus 4 Original Android Development] warpaper:
What's dirty reflash means?
[Nexus 4 Original Android Development] sirxdroid:
You simply flash your ROM without wiping anything else. The opposite of a clean flash or full wipe.
[Nexus 4 Original Android Development] JmPTaz09:
Well said. I have never benchmarked my N4, but I sure have tested a lot of kernels and roms with my thumb. :thumbup:

Right now I'm on Kalo 1.3 ROM with semaphore. It benches pretty well with my thumb ;)
[Nexus 4 Original Android Development] a1981m:
Hi, after a long good night sleep I turned on the phone and it was blazing fast right from the start!

Thanks for the advice, and of course thank you dev - stratosk
[Nexus 4 Original Android Development] :
kernel wonderful, great job! Just wanted to ask one thing: I would add that that standard gama Darkest they have available in the app franco kernel.

Enviado de meu Nexus 4 usando o Tapatalk 2
[Nexus 4 Original Android Development] Slymobi:
Just to elaborate a little. Sirxdroid means to flash the ROM your currently using NOT any other ROM. However a Dirty flash CAN be done on any ROM.

As For benchmarks..... I don't care either for benchmarks but I have achieved 21000+ on semaphore on mokee ROM yet I don't use that rom anymore.

Regards

Sent from my Nexus 4
[Nexus 4 Original Android Development] franyo:
hi,

I'm using the 10.1-cm-cyano nightly 20130523 and would like to try this kernel.

could someone tell me the correct way to install it?

thanks in advance
[Nexus 4 Original Android Development] Slymobi:
My method......is

Download kernel

Boot recovery

Flash kernel

(Optional) I then wipe cache and dalvik

Reboot

Install semaphore app free on play

Tinker with settings

Enjoy

If your coming from another kernel other than your stock ROMs kernel then dirty flash your ROM prior to flashing the semaphore kernel.

Sent from my Nexus 4

---------- Post added at 08:40 AM ---------- Previous post was at 08:37 AM ----------

Today is clean out day ;)

I'm going stock and unrooting/locking my boot loader.

Back to out the box for a day or two. I like to totally clean my phone of everything now and again.

See you all soon.

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
Thanks.

Semaphore Manager app does not support presets.

Please manually enter your gamma values.
[Nexus 4 Original Android Development] :
Ok semaphore. Thanks!

Enviado de meu Nexus 4 usando o Tapatalk 2
[Nexus 4 Original Android Development] syamilsatanick:
You can get 20k easily with franco or trinity. There is something wrong with your setup.
[Nexus 4 Original Android Development] leos0000:
Hey stratosk.thanks alot for new update.so nice work bro :) .**** i been banned on xda 5 days :D
[Nexus 4 Original Android Development] stratosk:
'Thanks' is not for your last sentence. :)
[Nexus 4 Original Android Development] bobo1337:
Everything is default now on franco and 14k...
[Nexus 4 Original Android Development] syamilsatanick:
You need to switch on all 4 cores. Min and max freq at same value. Turn fsync off. You also can turn off thermal throttle for better scores.
[Nexus 4 Original Android Development] leos0000:
On franco 4 core enable got 16780 antutu latest semaphore 22430 antutu
[Nexus 4 Original Android Development] jorrddan:
Hi, last night I flasned Semaphore N4 1.0.0.

I'm using this kernel from v0.7.0.0 and I love it.

Battery live not was awesome and I turning on Under volt function in Semaphore manager. I use 25000 uV undervolting for all frequensies.

I make tests, gaming e.t.c....

Today, I try to use Google play and have restart.

My processor is "Fast" tipe, and I'm using Xenon HD v9 rom.
[Nexus 4 Original Android Development] estallings15:
UV values changed recently. Up your voltage a little for stability. UV'ing always brings a risk of instability. That is why most devs add it after many builds. Too many false instability reports.
[Nexus 4 Original Android Development] ceejay83:
Doesn't help the dev if you don't provide log
[Nexus 4 Original Android Development] jorrddan:
Thank's!

I can try to find the log, but I dont know where is it.

I'm not complaining, I'm just sharing for all to know.
[Nexus 4 Original Android Development] -iNSiGhT-:
I usually use Harsh kernel and uV with an average 137500uV for lower frequencies and 175000uV for higher ones (my fast binned CPU works perfectly with it for months) ...

I was interested by Semaphore (touchwake, thermald...) but I've had a lot of hard reboot with a less aggressive uV (125000uV for lower and 162500uV for higher).

Dunno why...

Paranoid mako
[Nexus 4 Original Android Development] endrekok:
I use 175000 uv in all cpu speed and there is zero problem.

Sent from Nexus 4
[Nexus 4 Original Android Development] JmPTaz09:
I do too; nominal chip.
[Nexus 4 Original Android Development] stratosk:
New version 1.1.0

- Linux kernel 3.4.47

- cpufreq: ondemand: Calculate the next frequency proportional to current load *

- cpufreq: ondemand: Default up_threshold to 95, sampling_rate to 30000

- freezer: updates from linux-next to help suspend/resume operation.

- block: couple of fixes from Code Aurora

* After a lot of investigation, I changed the default behavior of ondemand. Till now, ondemand only increase the frequency to max.

Watching the CPU stats, I thought to try a slightly different approach. An increase may be done to any frequency proportional to CPU load and using the same formula we can also decrease CPU freq.

For example, if CPU is in min freq (384MHz) with a load of 50%, CPU will go to 810MHz. With the standard approach the CPU will remain to 384MHz until the load is greater than up_threshold. In this way there is more smooth use of CPU frequencies, and maybe (we will see) better performance.
[Nexus 4 Original Android Development] Tylog:
Sounds like a great update :) thank you again for the next build my friend :)

Tapatalk
[Nexus 4 Original Android Development] ceejay83:
just flashed 1.1.0 but semaphore app is still loading the old ondemand values after resetting to default
[Nexus 4 Original Android Development] Remoteconcern:
Thanks Stratos. I had no problems with performance before, so I'm sure the new version will be great.
[Nexus 4 Original Android Development] stratosk:
Semaphore manager haven't updated yet. It will follow kernel defaults in next version.

At the moment suggested values:

Sampling rate 30000

Up threshold 95
[Nexus 4 Original Android Development] aaron.bufc:
+1

Edit: too late
[Nexus 4 Original Android Development] sirxdroid:
Can you force stop the app, clear its data (or uninstall it), reboot and then start the app again? Shouldn't that just read the values from the kernel? Of course you'll have to set other options again such as uv, etc.
[Nexus 4 Original Android Development] Remoteconcern:
Very soon to comment, but my phone now has spent the least time at 384 out of all steps. This might be bad for battery.
[Nexus 4 Original Android Development] leos0000:
Wow new kernel :) .gonna now flash .u are so cool stratosk.kernels all awesome.thanks a lot my friend :) ;) . cheers bro g
[Nexus 4 Original Android Development] aaron.bufc:
Nope, tried that myself. Its thankfully an easy change to make anyway.
[Nexus 4 Original Android Development] stratosk:
It doesn't work this way. Default values are hard coded in Semaphore Manager app.

This is normal after reboot, with few minutes uptime.
[Nexus 4 Original Android Development] Slymobi:
Stratosk

You just brought me out of unrooted retirement.....

I'm back.gonna flash now. Cheers

Sent from my Nexus 4
[Nexus 4 Original Android Development] Remoteconcern:
Thanks. Will test longer. Sorry, should have waited longer!
[Nexus 4 Original Android Development] stratosk:
No problem! Thanks for your report.

I really need your feedback for such changes
[Nexus 4 Original Android Development] spr33:
The new build seems a lot snappier once the new values have been applied.
[Nexus 4 Original Android Development] ceejay83:
i'm getting the opposite with gaming, slight decrease in fps and more stutters
[Nexus 4 Original Android Development] spr33:
Have you rebooted?
[Nexus 4 Original Android Development] ceejay83:
No, values are applied in real time aren't they? Don't see what a reboot will do
[Nexus 4 Original Android Development] Slymobi:
Stratosk

Quick question. Do you use Io is busy and early demand on or off ?

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
Usually yes. But I don't use early demand in latest version to test the new changes.
[Nexus 4 Original Android Development] a g bell:
Thanks somuch for the update,could you explain the reason for changes to on demand just trying to understand:confused:

Thanks:)
[Nexus 4 Original Android Development] stratosk:
The reason is better performance (I hope)

If you check the CPU stats in default ondemand you may see that min and max freqs are used at 99% of the time. With mpdecision, 1026mhz also is used.

I feel that something may be improved here. We may use other freqs too for better performance and maybe better battery life.
[Nexus 4 Original Android Development] a g bell:
Ah OK thank you :)
[Nexus 4 Original Android Development] ctfrommn:
1.1 running very well. Thanks for adding the freezer commits. :)
[Nexus 4 Original Android Development] Slymobi:
What are freezer commits ?

Sent from my Nexus 4
[Nexus 4 Original Android Development] ctfrommn:
The new commits help the phone enter and exit sleep more efficiently. The end result is better deep sleep and better battery life.
[Nexus 4 Original Android Development] illanxr:
Thank you for your fantastic kernel stratosk.

Using it with latest RasSaber and it is the smoothest and snappiest I've ever used.

When I have my own incomes (I'm just a student right now lol) I will donate to you. Now, I just can be really grateful.

Keep doing such a wonderful job!!
[Nexus 4 Original Android Development] tuilalnvinh:
This kernel is getting better day by day. Thanks for your outstanding job! :thumbup:
[Nexus 4 Original Android Development] :
Could you tell me, where is the configuration file of the gamma? :confused: