yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] whittikins:
What are your thoughts on Qualcomm's MPDECISION in the Nexus 4? I know that it sets 2 cores to 1026mhz minimum for 3-4 seconds when you touch the screen, but surely it is more involved than that. Right?

Many kernels remove mpdecision for a custom hotplug, but SOME actually lose performance or battery (not yours!). I'm not naming any names, but it seems like some devs don't take into account all of the reasons that mpdecision acts the way it does. Instead they say "oh it's stupid and wastes battery".

Why do you think mpdecision sets "min CPU frequency" to 1026 (instead of of bumping the frequency itself to 1026 like many hotplugs do)? Is there even a difference in the 2 methods? I wonder why mpdecision keeps it there for 3-4 seconds instead of just 500ms or 1 second? Is it more battery efficient to change the frequency less often (don't jump up, down, up, down)?

Anyway, I'm just curious what you think about it. Thanks!
[Nexus 4 Original Android Development] stratosk:
As I mentioned in the past, I am not against mpdecision. It works fine and gives a very smooth experience.

I dropped it because I want it some custom options - number of online cores, touch boost frequency and duration and the possibility to have all core online.

You have 2 options to control CPU from userspace (mpdecision works in userspace).

- Modify cpufreq policy (scaling_min, scaling_max)

- Write a userspace governor (and not use ondemand or conservative).

I guess it's easier (and maybe the right) to follow the first approach, if you want only to adjust the min frequency.

So, mpdecision is not CPU governor. It's mostly hotplug userspace driver that also handles cpufreq policy (for touchboost).

I believe that governors should handle touch events and boost frequency optionally.
[Nexus 4 Original Android Development] yukkio:
I prefer your implementation over mpdecision. Currently 1-4 cores and up threshold 70, all super smooth :)

Thanks.

BR.
[Nexus 4 Original Android Development] stonebear:
re screen settings

If you like moles' PA screen settings (halfbreed, brighter, contrasty) then Trickster has them as options for this kernel.
[Nexus 4 Original Android Development] ciprianruse88:
My second day on semaphore and purity rom and I am simply without words! I recommend this kernel to everyone.You will get awesome performance,great battery and super stability :cool::thumbup:
[Nexus 4 Original Android Development] alen1901:
anyone knows terminal command to make min_cpu_cores_online to be 1? currently its set to 2. im using trickster app to modify settings and i dont need 1 more app just to adjust min cpus. thanks.
[Nexus 4 Original Android Development] MuertoKo:
Easier, use semaphore app :) amazing, fast, free tool ^^ if you like it, consider a donation :P

Mine is on my way greek-dev

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] stratosk:
echo 1 > /sys/module/dyn_hotplug/parameters/min_online
[Nexus 4 Original Android Development] Skkip:
[MENTION=3750240]stratosk[/MENTION]:

hey stratosk, first of all thx for ypur great kernel. I really like your changes to ondemand governor and your hotplug approach.

Because of that i ported your governor and utilization function for my nexus 7 kernel :)

It works great but i left out this commit (https://github.com/stratosk/kernel_msm/commit/d8fe10a7273f614aee5397d7d670033d33691475)

because i don't understand your intention here. Did you choose this to have a flatened cpu load? Wouldn't it be better to save the last

avg_load in hotplug and then combine it with the recent avg_load somehow weightened? Otherwise the load taken into account

will decrease and increase very slowly, i guess...

for offlining cores, i would suggest a helper function like this in nexus 7 kernel:

unsigned int tegra_get_slowest_cpu_n(void) {
unsigned int cpu = nr_cpu_ids;
unsigned long rate = ULONG_MAX;
int i;

for_each_online_cpu(i)
if ((i > 0) && (rate > target_cpu_speed[i])) {
cpu = i;
rate = target_cpu_speed[i];
}
return cpu;
}

I'd like to point out that this is only a suggestion to improve your already great kernel

thx in advance skip
[Nexus 4 Original Android Development] manpildo:
So why dont you do it in trickster?
[Nexus 4 Original Android Development] alen1901:
No hotplug control option there in trickster app.
[Nexus 4 Original Android Development] szucsgf:
There is hotplug control in Trickster. Under the "Specific" tab.
[Nexus 4 Original Android Development] alen1901:
I guess you are not using semaphore kernel? Because i dont have that option there.
[Nexus 4 Original Android Development] szucsgf:
I am using Semaphore kernel. Odd.
[Nexus 4 Original Android Development] apatal:
I think you need donation version for you to see it on Trickster. I'm guessing alen is using the free app only? :)
[Nexus 4 Original Android Development] privat75:
Option is here also.

Gesendet von meinem Nexus 4
[Nexus 4 Original Android Development] alen1901:
oh, i didnt update my app for a long time, i think its that. hahah. thanks for reminding me. :P
[Nexus 4 Original Android Development] privat75:
I see it with the free version.

Gesendet von meinem Nexus 4
[Nexus 4 Original Android Development] ciprianruse88:
I have also hotplug control in trickster.
[Nexus 4 Original Android Development] apatal:
The GN0M3 Project + Semaphore 1.6.0
[Nexus 4 Original Android Development] californicated:
Left your kernel some time ago because of tc support. The worst thing I could do!

Flashed recent Semaphore on PSX v5. My phone has never been that fast :o

Big thanks for your work!
[Nexus 4 Original Android Development] ciprianruse88:
Purity rom + semaphore.Still 60% to go :cool:
[Nexus 4 Original Android Development] ceejay83:
why is the hotplug threshold at 25? seems pretty low. i increased it to 70 for some battery savings
[Nexus 4 Original Android Development] kandarpck:
I notice no difference whatsoever. I've tried 25, 50, 75. All seem the same wrt performance and battery :P
[Nexus 4 Original Android Development] clockworkstop:
Is there any way to get the PA halfbreed colors? :) I'm sure it's been answered a thousandfold, but I can't find anything.

Sent from my Nexus 4
[Nexus 4 Original Android Development] snak3ater:
Use Trickster Presets or manually input the Halfbreed settings in Semaphore Manager..

'Trickster Mod'..That path is the easiest one..
[Nexus 4 Original Android Development] clockworkstop:
Of course, but trickster would interfere with semaphore manager. Wouldn't it?

Sent from my Nexus 4
[Nexus 4 Original Android Development] snak3ater:
No it wont interfere..Just don't apply 'set at boot' option in two different Apps..Rest everything is fine..Just apply the color settings using trickster
[Nexus 4 Original Android Development] rnddestro:
Sporadic reboots on jwr default settings.. :(

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] MuertoKo:
Got Chrome Beta installed? Read some reports about it, been using JWR stock rooted and customized as hell (UV, etc...) with no issue, at all since it's inception :P
[Nexus 4 Original Android Development] lalo20:
Ive had 2 ramdom reboots. Iinstalled the kernel yesterday and Im using stock settings.

JWR 1.6 version.
[Nexus 4 Original Android Development] clockworkstop:
Had one random reboot.

Sent from my Nexus 4
[Nexus 4 Original Android Development] MuertoKo:
Guys, to you all, at least acoording to my S3 experience... No logcat/last_kmsg or any log means no reboot happened... If you want to help the dev and the kernel you should post logs, detailed kernel information, version, settings, rom, mods...

Otherwise this posts will be not helpful for him to solve any (posible) issue.
[Nexus 4 Original Android Development] mattkroeder:
What temperature are your CPUs running at? I'm seeing mine run about 50c just browsing web sites. The phone feels warmer than im typically used to. This is at default settings.
[Nexus 4 Original Android Development] whittikins:
Yes, mine too. I was on 1.6.0 and had the thermal LED turned on, and it kept coming on when barely doing anything. Temperature kept rising to 50-55 just browsing reddit and stuff (all text). I think something is off with the latest build, but I don't know for sure. It certainly seems to run warm and keep all 4 cores online most of the time.
[Nexus 4 Original Android Development] stratosk:
Thank you very much! Really appreciated.

Thanks for your comments, my friend!

If you skip this commit, you will get the instant CPU load. The code in commit "averages" the load. I don't want an aggressive hotplug driver.

It's not bad idea to get the CPU with less load. Although if a CPU will go offline, it actually means that the load on all CPUs are low.

My other concern to your approach is that the current CPU freq (target_cpu_speed?) does not reflect the measurement of average load in the previous sampling period of hotplug driver.

I mean that the hotplug driver gets the average load every 0.5sec. Governor could change frequency (according to load) every 0.02sec (default).

Suit yourself. That's why it's tunable.

Before hotplug driver, I release some betas with all core always online. The driver should save you about 20 minutes (in my usage) of battery life every cycle. So, you can't see a big difference with different values of up_threshold.

I have absolutely no reboots.

Please send me last_kmsg.

Chrome is CPU demand app. I also get LED on while browsing.

4 cores may easily go online in normal load. That's my goal. It should offline them when they are pretty inactive.
[Nexus 4 Original Android Development] whittikins:
Very interesting! I didn't realize 4 cores has such little negative impact on battery life. By the way, do you mean 20 minutes of screen time or 20 minutes (total battery cycle)?

Also, in Semaphore app, I did not see a place to change the min and max CPU values. Right after flashing 1.6.0, the max value was 12xx (which I saw in another CPU app). It should be 1512 by default in your kernel, right? Maybe my ROM (Carbon 4.3) affected this?
[Nexus 4 Original Android Development] stratosk:
You are right. I forgot to specify. I mean about 20 minutes less screen on time with my usage. Of course this is not an absolute value. Sometimes I had 15 minutes less sometime a little bit more than 20.

No you can't set min and max freq in Semaphore Manager. It's by default 1512.

It's your ROM, another app or maybe thermald that caps max freq due to heating.
[Nexus 4 Original Android Development] Fenvarien:
Hey Stratosk! Everything is here very stable too, no reboots or hiccups :good:

I heavily used and tested my N4 today, including UV.
[Nexus 4 Original Android Development] ciprianruse88:
My battery simply doesn't want to die with latest semaphore and purity rom :). Changed only voltages,rab to 512 and vibration to 85 :p .Amazing job :thumbup:
[Nexus 4 Original Android Development] pitjago74:
Using Semaphore Manager;)

PA colors:thumbup:

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] SupWiz17:
I found numbers in this thread for halfbreed numbers and don't think they are that bad but I use 32 68 118 1 25 4 66 64 1 for red green and blue.
[Nexus 4 Original Android Development] kundica:
I was having a lot of random reboots on the JSS kernel with default settings. The issue was with any CM nightly past September 3rd, using kernel versions 1.5.7j through 1.6j. I ran those same nighty versions of CM without Semaphore and I didn't have them.

I currently don't have them, but I made a few changes recently. The reboot would happen right after the screen turned off, either turned off manually or by timer(usually as I was putting the phone back into my pocket). I ended up uninstalling Nova Launcher a few days ago and I haven't had one reboot since. At one point I thought it might be Trickster Mod, but it didn't matter.

I'm currently running a fresh nightly build(compiled myself), with Semaphore 1.6j and Trickster without random reboots.
[Nexus 4 Original Android Development] deeppans:
which ROM are you using? I see diff navbar and tapatalp icon. Sorry for off topic.
[Nexus 4 Original Android Development] Dave11:
Hi there being using your kernel for a while now but just had a couple of crashes in a row. I grabbed the last kmsg if it's of any help to you. CM10.2

http://pastebin.com/bpVkSDcL

Just a quick update it seems to only happen when I'm using the modem but not while on Wi-Fi.
[Nexus 4 Original Android Development] ironjon:
Tapatalk icon appears when you upload a pic from Tapatalk (is not a widget in navbar)
[Nexus 4 Original Android Development] yukkio:
Hi,

I have at the top of the kernel wakelocks a "touchwake" entry, Is it normal??

BR.
[Nexus 4 Original Android Development] pitjago74:
Nav bars are In a ROM 4.3 and you can put the screenshot&off if you want one/off.....

http://www.htcmania.com/showthread.php?t=671870 Eclypse ROM (CyanKang based):D

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] stratosk:
What's your touchwake delay?
[Nexus 4 Original Android Development] snak3ater:
Is this Rom not on Xda :confused:

Unable to find its 4.3 version on xda
[Nexus 4 Original Android Development] Nucleotide:
Never mind.
[Nexus 4 Original Android Development] yukkio:
I've the touch wake feature disabled in the semaphore app.

BR.

Edit: nevermind, i see that i checked in trickster mod that feature... my fault, sorry. Anyway, delay is 45000 (default)
[Nexus 4 Original Android Development] stratosk:
So, you had a 45sec wakelock every time you didn't use power button to turn off the phone.
[Nexus 4 Original Android Development] yukkio:
Ah ok, thanks sir :)

BR.
[Nexus 4 Original Android Development] Bonvaz:
Here just to say that I used semaphore for galaxy s years ago..and my phone was just transformed,never felt so fast..today I flashed psx with semaphore...and holy ****,this kernel is still the best..stratosk, THANKS.. I'm really happy to see you here and happy to use your kernel also on mako:)..great work,great dev

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] xatou:
The only problem that I have found is the screen calibration with sema manager. When I set my settings and reboot the phone I have to lock-unlock the phone in order to apply the settings.

Στάλθηκε από το Nexus 4 μου χρησιμοποιώντας Tapatalk 2
[Nexus 4 Original Android Development] apatal:
That's normal behavior for that mod.
[Nexus 4 Original Android Development] hotnikkelz:
Random reboot on 1.6

Here's the kmesg

http://db.tt/V2Dw92VU

Sent from my Nexus 4
[Nexus 4 Original Android Development] Bonvaz:
Guys I can't get bundi22 color on semaphore :(...please help me..I can't understand how to set it

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] nithin1992:
Semaphore Manager->Tweaks->LCD Calibration->Gamma Control. Fill the following values for red,blue,green.. 0 39 119 1 6 0 2 0 1

Copy paste the value above in all three, screen on/off
[Nexus 4 Original Android Development] Bonvaz:
Someone posted similar settings but its to yellowish to my eyes..bundi22 iPhone style is not this :(

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] nithin1992:
Not really. I'm using it and works fine. Here's a screenshot of the settings.
[Nexus 4 Original Android Development] Bonvaz:
Hope it was only my impression..thanks for help!

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] nadiros:
Sorry......
[Nexus 4 Original Android Development] stratosk:
Thanks for the kmsg.

As far as I can see in the log, you had a soft reboot. Many services are initialized about 1 hour after actual boot. This ROM related issue.

Kernel was up and running all this time.

Did you saw the kernel boot logo? What's your ROM?
[Nexus 4 Original Android Development] stratosk:
Please grant permissions to see the file.
[Nexus 4 Original Android Development] nadiros:
Deleted - can't upload kmsg on frikkin tapatalk

---------- Post added at 01:33 PM ---------- Previous post was at 01:30 PM ----------

Doesn't work. Can't find anyway to allow you my friend :mad: do I need g+ ?
[Nexus 4 Original Android Development] hotnikkelz:
I was on franco kernel previously to test. I reflashed to your kernel and was running it for around half hour before it rebooted (wasn't in use but I saw it) . I saw the kernel boot logo, and I'm on cataclysm rom

Sent from my Nexus 4
[Nexus 4 Original Android Development] Semantics:
Yes, I did. I am going to test and see if that is the issue. Thanks.
[Nexus 4 Original Android Development] apatal:
Touchwake will give you all sorts of issuesz believe me. Might be better to skip it altogether for your project. People should just learn to use their power button.
[Nexus 4 Original Android Development] playya:
No freezing or reboots on my end running Liquid... Also they did not exactly hijack thread but had a rather civil discussion on a method of achieving the perfect kernel flash experience. They both made good points but probably confused the hell out of the original user that asked the question.... LOL :D

Kernel is running smooth other than the weird readings I get with Trickster (donate) Mod like min frequency different than any option I have.... LOL its ok though will uninstall Trickster for now..
[Nexus 4 Original Android Development] stratosk:
That's quite true. I already had many problems to port it.

I will try to fix it for a little bit more. If will not work I will drop it. (maybe I will transfer the functionality to Semaphore app)
[Nexus 4 Original Android Development] jelle2503:
touchwake working fine for me, used Semaphore Manager to set it. no reboots as of yet.

Verstuurd van mijn Nexus 4 met Tapatalk
[Nexus 4 Original Android Development] Fabio3105:
thanks at all... today I flash this fantastic kernel and the problem with the notifications when wifi is on, is disappear... thankyou so much because i'm going crazy for that... ;)
[Nexus 4 Original Android Development] stratosk:
Semaphore Manager 2.5.0 will be available in few hours in Google Play.

The major change is support for N4.

Please note that the vibration change according to proximity will work in next version of Semaphore kernel.
[Nexus 4 Original Android Development] emanuele1986:
Today my phone has reboot and is slow when i unlock it or appear shots in drawer or home screen random. I've cyanogen and semaphore 0.4.0.
[Nexus 4 Original Android Development] pitjago74:
Sorry stratosk...but whats means SAI??

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] stratosk:
It's just a name for some functions, not absolutely kernel related.
[Nexus 4 Original Android Development] Bluewall:
Do you recommend to use early demand ? Read a doc about it, seems pretty good :D
[Nexus 4 Original Android Development] stratosk:
I use it. Do not expect miracles. In some cases you may have max freq 1 sampling period earlier. So, a little bit more responsive device.
[Nexus 4 Original Android Development] Aetos7:
Hi stratosk. This kernel is awesome! But you could insert in your kernel this mod http://xdaforums.com/showthread.php?t=2027476 to downgrade the touch fw to E015 pls?
[Nexus 4 Original Android Development] Bluewall:
Isn't there some known issue with it ? (hence why they updated it ?)
[Nexus 4 Original Android Development] jarjar124:
That will cause issues. Franco though found something that does make touch sensitivity better.
[Nexus 4 Original Android Development] Aetos7:
From which version?

So I try it and see if the touch is better even without to downgrade to fw E015..
[Nexus 4 Original Android Development] jarjar124:
Rc1. Look at the latest boot.img he posted.
[Nexus 4 Original Android Development] barome:
Hi stratosk ! Happy to see you here ! Do you plan to include GPU OC like Matrix Kernel ? This feature is awesome.
[Nexus 4 Original Android Development] Bluewall:
Don't get me wrong, I'm not saying something "against" you or saying that you're stupid or anything.

I'm just curious. I use my Nexus for many different tasks, calls, messaging, browsing, photo, games, etc...

But I can't remember once i thought "Well, if this GPU was faster, I wouldn't have those lags".

I mean, do we really need GPU overclocking ? Will be benefit from it ? Or is it only a way to have more heat and more danger to break the device ?

I'm curious to know why you guys want it.

(Again, I'm not criticizing you :))
[Nexus 4 Original Android Development] barome:
So, I m a big gamer on N4 lol ! And after some tests, GPU OC give me less lag. The OC is not big (487 against 400) so no more heat (or just a little) and no danger to the device.
[Nexus 4 Original Android Development] stratosk:
The log you sent shows that the boot animation was playing 3900 secs after kernel boot. This is only possible with a soft reboot.

If it was kernel reboot or crash the log would show boot animation few seconds after boot.

Please try to dirty flash your ROM and then flash semaphore.
[Nexus 4 Original Android Development] stratosk:
I will be able to check your zip tomorrow. I am away from my desktop tonight. Thanks for log.
[Nexus 4 Original Android Development] MuertoKo:
Was wondering... Any clue on your next thought to implement to Semaphore?

Not asking for a release but curious about what's on your mind ^^

Personally I can't be happier since I switched from S3, WAY smoother, now having superb battery, nice LCD calibration, precious - 150mV stable UV...

So was curious ^^ Btw had trouble today with donation to you, will try again tomorrow, if issues I'll PM!

Keep this up and keep your behaviour towards us as good as it is, really appreciated and not usual actually!

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] kandarpck:
Although I really like setting the up_threshold low, it isn't really of much use. What it really does is activates the thermald and throttling starts. The frequency is capped

Even more when all four cores active. Throttling kicks in faster than you can blink. The number of cores are capped again. :(

What I'm suggesting is either you should try making the hot plugging less aggressive so that we can use the full range of frequency. I mean what's the use of 1.5 GHz when its using 1.1 most of the time?

Other thing that you can try is raising the temperature at which throttling starts. Just for a test basis.

All my comments are just suggestions. Don't feel bad. Just wanted to contribute with what I know. Keep rocking :)
[Nexus 4 Original Android Development] kundica:
Had another reboot as the screen shut off. I was running a CM nightly compiled on 9/12/13 with Semaphore 1.6.0j and Semaphore Manager. I grabbed the kmsg as soon as it booted back into the OS.
[Nexus 4 Original Android Development] stratosk:
Please send the last_kmsg
[Nexus 4 Original Android Development] stratosk:
Something, prevents your device to enter suspend.

I strongly believe that something goes wrong with touchcontrol module.

Can you please disable it and retry?

Please make sure that no touchcontrol module is loaded. (You may use lsmod command in terminal emulator with root access).

BTW, do you use touchcontrol app?
[Nexus 4 Original Android Development] stratosk:
Thanks for you comments and for your intention to donate!

I'm sorry, I almost never announce my plans, because I don't know what I will actually be able to implement. :)

Thermald caps frequency to 1.2GHz.

The 1.1GHz is the default touch frequency. The full frequency range is used. 1.1GHz is most probably enough (when you interact with the phone and don't touch your screen) and the CPU doesn't scale easily more than this.
[Nexus 4 Original Android Development] kundica:
I attached it to my post. Do you need me to paste it?

I do not. I don't use the touchwake feature either.