yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] twowheeler:
First time on this kernel and im loving it so far. It really is something different to what all the other kernels do, and battery seems to be very good so far. (undervolted lower freqs with 125000, higher with 125000, disabled the boost. nominal device).

I am really trying to learn to change all the settings to make it the best for me, this thread teaches me a lot on that!

And it's really cool that you are so active in this thread, answering the questions.

I have a question though:

In the semaphore app there's an option to clear init.d. What effect should this have? I know a lot of the things that are activated with scripts come from init.d (at least, that what happened on my old X10).

In the meantime im trying to find out what all the threasholds do.
[Nexus 4 Original Android Development] sfrique:
[MENTION=3750240]stratosk[/MENTION]

Can you add an max_online to your hotplug driver?

I mean, if i want to save some battery i would set the max online core to 2 or 3.

I know i could play with up_threshold but i guess having a max online option would be better.

Would it be to difficult to implement?

I am no programmer but i guess it won't be that dificult!

Thanks great kernel, in my old galaxy S ( B) i only used your kernel, it was so much better than stock. I know just flashed your kernel!
[Nexus 4 Original Android Development] stratosk:
I really don't know if this is a bug and if I can fix it. :)

Thanks for your comments! :)

Clear init.d option deletes all files in /system/etc/init.d directory.

As you said this directory is used for custom init scripts (in SGS it was used a lot also).

Sometimes maybe is useful to clear init scripts.

Please let me know about possible questions about thresholds.

Thanks!

Yes, it could be easy to implement this. I also thought to do it and you said I had the same idea.

If someone wanted less online CPUs he/she could use greater up_threshold.

But, I agree that will not harm to have it as tunable in hotplug driver.
[Nexus 4 Original Android Development] sfrique:
But with up_threshold i am unable to lock when it get 2 cpus online. And or lose capabilites from a multi-core processor.

Example:

If i set up_threshold to 95, it would only put online another cpu if the load go up to 95. And this keep going to all 4 processor are online. but if i only want to use 2 CPUs at tops, but get the second cpu online with a load 65.

So it would put the second cpu online with 65 of load, but won't put another cpu.

Just saying, i don't know if makes a diference, but would definly be easier to configure!

Thanks!
[Nexus 4 Original Android Development] snorfu:
About hsic...e.g. in harsh kernel some hsic patches were included and fixed this drain...

Gesendet von meinem Nexus 4 mit Tapatalk 4 Beta
[Nexus 4 Original Android Development] thracemerin:
Not needed or directly compatible with 4.3.
[Nexus 4 Original Android Development] ridikolous:
Anyone flashed this with pa ROM yet?
[Nexus 4 Original Android Development] zephiK:
it should work.
[Nexus 4 Original Android Development] sfrique:
Another question, the touch_load is a percent of the current CPU clock right?

If I have it under clocked the load is relative to that speed right?

I use set CPU to under clock with default launcher!

Thanks
[Nexus 4 Original Android Development] duduzinho15:
Thank you for this wonderful kernel :D
[Nexus 4 Original Android Development] stratosk:
Not exactly.

Governor calculates the time that CPU was busy and idle during the last sampling period.

Load of 75 means that the CPU was busy 75% of the sampling period (25% was idle).

This load is translated to frequency. With my latest changes to ondemand (also expected to be included in linux 3.12) the target frequency will be calculated proportional to load. The formula is:

Frequency target = C * load, where C = CPU max supported frequency.

So, a load of 75 will be lead the CPU to 75/100 * 1512MHz = 1134MHz.

If you have your device underclocked the above calculation will be the same, but the governor will fit the calculated frequency into the policy you have defined. If you have set max frequency 1026MHz, the target frequency will be 1026MHz in the above example.
[Nexus 4 Original Android Development] cryingrock:
Semaphore manager works very well with 1.5.2j;)

Sent from my Nexus 4
[Nexus 4 Original Android Development] Armin_van_buuren:
It supports CM10.2?
[Nexus 4 Original Android Development] Luigi_2:
J version, yes :o
[Nexus 4 Original Android Development] ciprianruse88:
[MENTION=3750240]stratosk[/MENTION]

I saw you live in Greece and I know that the wheater is very hot out there similar to Romania(where I live) and I am wondering if you are using thermal throttle on or off cuz I am a little sceptical on letting it off due to all the heat...?

Sent from Inferno
[Nexus 4 Original Android Development] stratosk:
I have thermald always on.

Why should I turn it off?

Yes, you should be skeptical, if you want your device healthy. :)
[Nexus 4 Original Android Development] ciprianruse88:
Yes but I saw that with thermal on the max frequenci won't stick and it always dropps even if my device cpu isn't going over 50 C°

Sent from Inferno
[Nexus 4 Original Android Development] trillo69:
Because what matters first is the battery temperature. It will start to throttling when battery reaches 36°C.

You can check (and tweak) that in the file thermald.conf in /system/etc but you must be very sure of what you are doing.
[Nexus 4 Original Android Development] ciprianruse88:
Aaa...yes. Didn't thought of checking thermal.conf ...I am used to faux or franco custom thermal :).Thanx a lot !

Sent from Inferno
[Nexus 4 Original Android Development] stratosk:
Semaphore doesn't touch the default stock thermal protection.
[Nexus 4 Original Android Development] a g bell:
Modded thermal config should anyone want to be throttle free may fry your device if you don't know what battery temp is :) l have used this for awhile without getting over 39c but do seriously UV with semaphore:)

Keeping in mind that 45 -50c is dangerous for battery life

Where as CPU Fry's much higher 80c:)

http://db.tt/KPEtS8eh
[Nexus 4 Original Android Development] Skkip:
Hi stratosk,

I would like to make a few suggestions regarding your hotplug driver, but first thank you for your great work.

The first thing that would be nice to have would be a max online cpu switch. From what I've seen in your implementation it would be easy to implement.

The second thing is a slightliy different way in onlining and offlining cores. It would help performance if you would offline the core with the lowest utilization in down_one :) About onlining cpus it would be nice to have another threshold in load_timer above which the delay for a recheck would be lowered. I.e. if we got 80% average utilization this would enable to recheck a bit faster. i did something like this in my adaptation of nexus 7 hotplug driver (see balance_factor in https://github.com/SkipXS/android_k...8a4a1a15723a/arch/arm/mach-tegra/cpu-tegra3.c) to help with high load upon app starts.

Thanks in advance for considering this

Skip
[Nexus 4 Original Android Development] Phobiazz:
GJ man ;)

Couple of lock screen freeze, and in Antutu max cpu freq was 1342MHz. Trickster mod do the trick with lock freq. Don't know why is not going to 1512MHz, but it's solved manualy. :)

---------- Post added at 07:58 PM ---------- Previous post was at 07:46 PM ----------

Forgot to mention, jarjar jss AOSP. :)
[Nexus 4 Original Android Development] duduzinho15:
Nice combination with rasbean :D
[Nexus 4 Original Android Development] stratosk:
Hi,

Thanks for your comments and your suggestions.

About the max online CPUs. I've already coded and most probably it will be included in next version.

About your 2nd suggestion. I'm not sure because I made exactly the opposite. I put delay after the driver brings online a cpu. So, if the average load is still above up_threshold the next cpu will not go online until the end of delay.

I never ever said a good comment about Semaphore performance.

But IMHO, the performance of Semaphore 1.5.x in Android 4.3 is what I always wanted in my phone (OK, I don't own many devices, just SGS and N4. In SGS I was trying to take every drop of phone's juice to make it smoother). But now in N4, I'm pretty satisfied.

In fact, I think that maybe I overdone it a little bit with touch tunables (increase of freq to 1134). But I really like the feeling.

Thanks anyway for your suggestions! :)

EDIT: Please forgive me that I expressed my opinion about Semaphore. :)
[Nexus 4 Original Android Development] Slymobi:
stratos I think its great that you have shared your thoughts and that you feel you have hit a sweet spot in development. I suppose there is only so much tweaking needed and eventually we should see a "final" so if you think your at that stage then I and many others would not begrudge you of a break my friend :)

If I have helped you....... Thank yourself for asking the question :)
[Nexus 4 Original Android Development] Phobiazz:
No question about, for now the best one, lock screen freeze is present with all aosp non stock roms. The balance of smoothnes, batt juice and performance of this kernel is just perfect. Sweet pot!!!
[Nexus 4 Original Android Development] stratosk:
Thanks so much for your comments.

Hardware and software (in our case) are made by humans. And always there is place to further improve them and make something better.

I just wanted to declare that the current combination of ondemand touch tunables and hotplug driver (for battery saving) is pretty good, IMHO.

Of course, I have to say that stock kernel in 4.3 feels much better that 4.2.

Anyway, I will continue the effort to improve (hopefully) things. :)
[Nexus 4 Original Android Development] Imppy:
I wonder if you guys can help me understand the led calibration values in the semaphore app? What each number stand for ?
[Nexus 4 Original Android Development] nithin1992:
Feels great, thank you!

Found the answer, sorry
[Nexus 4 Original Android Development] Dawn Breed:
Hey Stratosk,

great kernel! Liked your kernels already on the Sgs1.

One thing: In case I would like to switch back to the JWR66V stock kernel? Is there a flashable Zip somewhere around? My search was not succesfull until now.

Cheers!

Sent from my Nexus 4
[Nexus 4 Original Android Development] szucsgf:
Dirty flashing your ROM will reflash the ROM's default kernel, if that's helpful.

Stratosk, this is my first time seriously using your kernel and I must say BRAVO. I'm running 1.52j with jarjar124's build of Android 4.3. Smoothest feeling 4.3 kernel I've used so far, highest Antutu score I've ever gotten with 1512 Max freq, and excellent battery life. I haven't done a proper battery life test yet, but on my first run I had 3 hours OST with 37% battery remaining before I charged. Ondemand, Max CPU=1512, Deadline, RAB=1024, all else default, with Lux auto brightness. Thank you for the excellent kernel.
[Nexus 4 Original Android Development] stratosk:
Please read the change log http://www.semaphore.gr/changelog/n4-version

0.5.5 version. It includes a basic explanation
[Nexus 4 Original Android Development] szucsgf:
Just found this.

http://xdaforums.com/showthread.php?t=2381128

[KERNEL][4.3][JWR66V and JSS15J] Stock flashable 4.3 Kernel
[Nexus 4 Original Android Development] twowheeler:
The threshold for the online CPU's, how does that work? It's normally set to 25 (on 1.4.1, cause I'm still on 4.2.2). Am I correct if this means that the cpu will activate the next core if the its 25% active in a certain time?

For me the threshold is just a number, I am trying to understand what it actually means. I should do some more research, so I don't mind if you don't have the time to answer this ;)

Is it save to control the clock speeds with trickster and the rest with the semaphore app?
[Nexus 4 Original Android Development] sfrique:
Thanks, now I understand!!

I might just use set CPU to a few apps.
[Nexus 4 Original Android Development] Dawn Breed:
Thanks! That is was I needed. Would have dirty flashed to restore kernel, but at the moment i am on facory image and have no zip of it.

Sent from my Nexus 4
[Nexus 4 Original Android Development] Dawn Breed:
Just wondering about Antutu scored with 1.5.2. +factory image of 4.3.

Everything runs smooth which is the most important...but I am curious.

I am using ondemand+row. No further changes.

Was expecting a bit higher results.

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
Most probably, CPU hit thermal threshold, and the driver lowered min_scaling_frequency.
[Nexus 4 Original Android Development] Dawn Breed:
Thanks! Like said before, was just curious about it. Kernel runs fine!

Sent from my Nexus 4
[Nexus 4 Original Android Development] KingBeike:
Thanks stratosk for your amazing kernel :) great as your Kernel on my i9000 :)

I am currently on vacation on Rhodos and now my phone has also this amazing greece magic touch :thumbup: and your kernel helps me with a cool and long lasting phone on the Beach :)
[Nexus 4 Original Android Development] stratosk:
Thanks, my friend!

Enjoy your vacation in Rhodos! :)
[Nexus 4 Original Android Development] eep2378:
For those confused about gamma. Halfbreed colors look great with this kernel. Using semaphore manger enter the following values for all 3 sections, Red, Green, Blue under gamma control:

32 68 118 1 25 4 66 64 1

Sent from my Nexus 4
[Nexus 4 Original Android Development] matesc:
Hey Stratos! Do you remember from SGS that feature where you can disable HSPA or HSPDA+ or similar but still stay on 3G for fast internet connection but lower battery usage? Would it be possible to port it somehow to N4?

I am asking because this devices has a heavy battery usage without WiFi and switching to 2G is not an option for me, because its too slow for my needs. Anyway my mobile bandwidth is limited to 4Mbit/s ..

Thanks in advance for the answer! :D
[Nexus 4 Original Android Development] stratosk:
Hi!

As far as I know this is not kernel related. :)
[Nexus 4 Original Android Development] pl4cid:
Hey strato,

I just found you here in the Nexus 4 Forum, as you know I was a big fan of the I9000 kernel :)

Just downloading 1.4.1 for latest PAC Milestone, glad to see you here my friend! :good:
[Nexus 4 Original Android Development] trillo69:
I think that depend on carriers. I can see my signal goes to 2G (G symbol) after a period with screen off, and it turns instantly to H when I turn on the screen, and that with 3G enabled in settings. Probably it is related to how your carrier manages 'fast dormancy' (there's a very good explanation video in xda news portal).
[Nexus 4 Original Android Development] nithin1992:
I'm trying to install touch control app to wake my device however it doesn't seem to be able to load the modules for the kernel. Any possible fix?
[Nexus 4 Original Android Development] thracemerin:
Touch control doesn't support this kernel.
[Nexus 4 Original Android Development] nithin1992:
It did support the previous 4.2.2 versions I believe. It was basically a request for the feature to be added in the upcoming versions if possible
[Nexus 4 Original Android Development] thracemerin:
Nope, stratosk's touchwake conflicts with touch control and stratosk prefers touchwake, so this kernel has never been supported by TC not will it likely be supported in the future.
[Nexus 4 Original Android Development] senthilrameshjv:
The kernel is running great. Yet to check the battery life and performance in games. Thanks stratos for the work.

Anyone using Lux auto brightness app faces the issues of the brightness not correctly changing in this kernel. I had no such problem in any of the other kernels.
[Nexus 4 Original Android Development] flaviocc:
Hi Stratosk, tks for the kernel.

May ask you something ?

Its possible to implement the Gamma Control to change the settings in this easy way (show the fields) ??

RGB: 255 255 255

Grays: 64

Mids: 68

Blacks: 118

Whites: 32

Contrast: 25

Brightness: 4

Saturation: 66

---------- Post added at 12:54 PM ---------- Previous post was at 12:53 PM ----------

I´m using Lux and didin´t see any issue.

More details about your issue? What´s happens ?
[Nexus 4 Original Android Development] snak3ater:
I haven't checked lux on any other Kernel.Tried it just on semaphore.The issue i found is that the App does not change the brightness sometimes.I have to open lux App & only then it changes the brightness.Even though brightness change is set as dynamic,still it does not change some times.Dont know if it's an App issue or what,,
[Nexus 4 Original Android Development] capoooro:
Never supported semaphore....

pizza mandolino pasta
[Nexus 4 Original Android Development] spupuz:
does this kernel has fast charge for android 4.3?
[Nexus 4 Original Android Development] stratosk:
Hi,

It's possible.

Maybe I will do it when I find some free time. But in my priorities.

No. fast charge is not supported.
[Nexus 4 Original Android Development] flaviocc:
:good:Thank you very much for considering the possibility. :good:
[Nexus 4 Original Android Development] pikachukaki:
I was just playing with the app when I saw the option to show ksmg I found this is there any problem?

ΣΕΝΤ ΦΡΟΜ ΜΥ ΝΕΧΥΣ 4!!ΥΣΙΝΓ ΤΑΠΑΤΑΛΚ ΒΕΤΑ
[Nexus 4 Original Android Development] :
Hey Stratosk, I flashed this version: Semaphore_N4_1.5.2j.zip to slimrom (which is jss) but my Phone overheats, the menu button does not work and I have massive screen tearing. Any idea why?
[Nexus 4 Original Android Development] Drmol:
Corndude: The released alpha of slim doesn't have the new GPU commits even though it's based on JSS, so you still need to use JWR kernels, this has also been stated in their own thread.

Sent from my Nexus 4
[Nexus 4 Original Android Development] :
Lifesaver! Thanks man.
[Nexus 4 Original Android Development] stratosk:
Yes. The problem is the your ROM or an app, or most possibly another kernel changed the executable permissions of /system/bin/thermald binary and it can't be executed.

Please check the permission in terminal emulator or adb shell:

ls -l /system/bin/thermald

it should be:

-rwxr-xr-x root shell 51708 2013-07-11 05:11 thermald

You can do this:

su
mount -o remount,rw /system
chmod 755 /system/bin/thermald
ls -l /system/bin/thermald # Check that the file has the correct permissions
mount -o remount,ro /system
[Nexus 4 Original Android Development] apatal:
F

Hi [MENTION=3750240]stratosk[/MENTION], I really like how the kernel performs with jarjar's aosp build. However, I got a reboot yesterday while messaging on Facebook and sending photos. Here's the last_kmsg. Kindly check if it's the kernel. Thanks. :)
[Nexus 4 Original Android Development] Skkip:
Hey stratosk

I tried your hotplug and have to say that it works great. I tried to limit max CPUs by changing the up threshold and found a little bug: I believe the values of utilisation are not capped by 100. Even if I set threshold to 200 the third an fourth core go online. I guess that's influenced by touch threshold and could possibly be capped...

About offlineing CPUs it would be nice to have a switch for the time. Working on nexus 7 I found that values around 1 sec are a sweet spot and would like to try these on my nexus 4. Values lower than 1 sec would disturb the scheduler resulting in the CPU not being used but waken up. Last thing would be offlining cores based on load or from fourth to first. But that's more a cosmetic change.

Thx in advance

Skip

Gesendet von meinem Nexus 4 mit Tapatalk 4 Beta
[Nexus 4 Original Android Development] twowheeler:
Isn't 100 the max as it is a percentage?
[Nexus 4 Original Android Development] stratosk:
Hi,

As far as I can see, there is no kernel panic:

Last boot reason: hw_reset

Do you undervolt?

Thanks for you comments.

Even if you set up_threshold to 100 (it's the up limit, and in next version will be a check for this), you can't prevent every CPU to go online.

If there is much load (>= 100) the CPUs will go online one by one. Touch threshold is unrelated.

Maybe I could add a tunable for the time.

About your last comment, this is how the algorithm works. It onlines the first CPU in the for loop and again it offlines the first CPU.

All CPUs (except the first one) are the same for the kernel.
[Nexus 4 Original Android Development] stratosk:
Please check if you flashed the correct variant for you ROM.
[Nexus 4 Original Android Development] pikachukaki:
It was permission problem!!

ΣΕΝΤ ΦΡΟΜ ΜΥ ΝΕΧΥΣ 4!!ΥΣΙΝΓ ΤΑΠΑΤΑΛΚ ΒΕΤΑ
[Nexus 4 Original Android Development] yukkio:
I have a question about dynamic hot plug. If I put up threshold at 75, is it good value for battery?

Thanks
[Nexus 4 Original Android Development] stratosk:
Yes, with value of 75, most probably will have better battery life (CPUs will stay offline more time)
[Nexus 4 Original Android Development] pnut22r:
So I don't have to worry about touch boost with this kernel because it's not using mpdecision?
[Nexus 4 Original Android Development] thracemerin:
Correct
[Nexus 4 Original Android Development] apatal:
Just unchecked the boost voltage. Thanks for looking into it. :)
[Nexus 4 Original Android Development] kandarpck:
Absolutely love the battery and performance. <3 Thanks Stratosk :)

3 hours SOT with 50% still left. Wow.
[Nexus 4 Original Android Development] stratosk:
It's a little bit weird to have a reboot with only -25mV undervolting, but no other reason seems in the kmsg.

Please let me know if the problem persists
[Nexus 4 Original Android Development] rdeleonp:
Hi.

Nice kernel. Thanks.

One question: Is there a way to keep touch wake enabled indefinitely?

Right now I can only set it for a maximum of 300 seconds.

Or maybe I'm doing something wrong...
[Nexus 4 Original Android Development] stratosk:
Hi,

No, there is no way.

Because then you will have serious battery drain.

Touch wake was designed to hold a wake lock for a limited time and keep the phone awake.

For example if I read something and the screen times out, I can easily 'wake' up the device with a single touch.

It is not designed to wake up your device after long period of sleep.
[Nexus 4 Original Android Development] pitjago74:
Hey look at this values(thanks to Stratosk)...Perfomance and battery life +10 :D

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] kandarpck:
Stock. JWR66V. Minimum cores to 1 and Dynamic Hotplug to 60. UV by -100. That's probably it. Today's cycle also lasted 4.5 hours. :cool:
[Nexus 4 Original Android Development] soumoks:
Undervolting on both lower and upper uv by the same amount?
[Nexus 4 Original Android Development] kandarpck:
Yes, -100mV on both :)
[Nexus 4 Original Android Development] soumoks:
I am new to this kernel,so experimenting with settings,so the question,thanks for the quick response :)
[Nexus 4 Original Android Development] kandarpck:
Undervolting varies with devices. You should keep reducing it by 25mV at a time and check for stability. 'Set on Boot', the values that work for you :)

EDIT: As for why higher and lover UV settings. Lower values can take more UV than higher ones. Not entirely sure.
[Nexus 4 Original Android Development] sfrique:
Are you using 3g or WiFi?

And what is the total on battery?

I only get close to 4h if in WiFi all day long..

Thanks
[Nexus 4 Original Android Development] kandarpck:
1. Played Ingress on my way to College and back = 1 hour on 3G and GPS

2. 2G for 6 hours in College. Occasionally connected to College WiFi.

3. Switching between 3G and WiFi at home.

4. Total battery lasts the day comfortably.
[Nexus 4 Original Android Development] sfrique:
Thanks!!

My day is like 16 hours, sometimes longer... So have to ask to make sure.

On 2g my device is doing OK..

I'm using tasker to switch 2g to 3g depending on screen on/off and open apps
[Nexus 4 Original Android Development] soumoks:
The kernel is fantastic in terms of battery life as well as performance,the only changes I have made so far is 50uv across all frequencies [MENTION=3750240]stratosk[/MENTION] you give the default settings with both battery and performance in equal ratio right? Can I ask what settings should I use to get more battery life, performance can take a slight back seat : p, hope you get what I mean.