yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] aLPaSLaN07:
I checked 4.4. Did not like the performance compared to my 4.3 - 1.7.4 + purity combo.. Cpu gets too hot as usual in stock kernels. I don't understand how google can not optimize kernel and CPU useage like our great friend [MENTION=3750240]stratosk[/MENTION]. Is that so hard to keep the phone calm? I'll be sticking with 4.3 until a decent 4.4 purity rom and of course a great kernel from stratosk comes out..
[Nexus 4 Original Android Development] panart:
Hi [MENTION=3750240]stratosk[/MENTION]

I sold my N4 today and i'm waiting for my N5 to arrive.

I really hope to see you at N5 forum with Semaphore for N5.

Thank you for the great kernel and great support. :good:

Confirmation number: 3WR29020FG430594N
[Nexus 4 Original Android Development] alen1901:
Keep in mind that actual 4.4 roms available for nexus 4 are far from official. They are compiled from nexus 5 sources and one is ported from nexus 5 image. So, official 4.4 release for nexus 4 will deffinetly be better and more optimised then current 4.4 roms.
[Nexus 4 Original Android Development] stratosk:
Hi my friend!

Thank you so much for your donation!

It's really impressive that you donated now you are leaving n4! Thanks so much!

Unfortunately, I can't afford for a new device. Maybe we will meet again in next nexus forums.

Enjoy your new device, my friend! :)
[Nexus 4 Original Android Development] panart:
You're welcome.:)

I hope you'll be able to buy a N5 through donations in near future, if not then maybe we'll meet at N6 (or whatever else they call it) forums.
[Nexus 4 Original Android Development] ak:
I have used these patches from the begin.

source:

http://review.cyanogenmod.org/#/q/s...ndroid_kernel_sony_apq8064+branch:cm-10.2,n,z
[Nexus 4 Original Android Development] Barbatos19:
[MENTION=3750240]stratosk[/MENTION] what will be the name of the soon to be 4.4 kernel of hour's? Are you still going to keep semaphore or your gonna blow it with some cool alias?
[Nexus 4 Original Android Development] aaron.bufc:
Just another thanks post for your work yet again. Made the jump to the Nexus 5 and sold my lovely Mako to a friend on the same day. I'll maybe give you my second donation if I see you in the Nexus 5 forums in the future! :P

Loved your kernel on my past two devices, and hope to make it onto a third. Good luck Stratosk and wish you well for the future.

Much love,

Aaron.

---------- Post added at 03:48 PM ---------- Previous post was at 03:47 PM ----------

Semaphore is the coolest name of them all!
[Nexus 4 Original Android Development] stratosk:
Semaphore... Always! :)

Thank you my friend!

Enjoy your new phone!
[Nexus 4 Original Android Development] Fenvarien:
My N4 wants tasty KitKat and delicious Semaphore! I'm really looking forward to the next development steps for our N4. And I am sure, with Stratosk and his kernel this is going to be very exciting too! :good: :)

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] snak3ater:
It always was semaphore.. So it'll remain semaphore no matter what the android version comes out
[Nexus 4 Original Android Development] snak3ater:
Flashed Semaphore 1.7.4j on 4.4 kit kat Rom..Everything works great except wifi which is not turning on..Could not wait for the new Semaphore kernel so did this crazy experiment :D
[Nexus 4 Original Android Development] fortunz:
Do you have any interest in adding USB OTG to semaphore? I noticed 'usb host driver' on the feature list for some versions of semaphore on other devices, so it seems like it might be something that interests you and I thought I'd ask.

I've got a really cool (temp wise) device now, due to semaphore, thanks for that. :D
[Nexus 4 Original Android Development] Barbatos19:
back read ma men, He already answer your question. :)
[Nexus 4 Original Android Development] fortunz:
I searched before asking, but all I saw was someone else saying it wasn't in the kernel, not that it wouldn't be.
[Nexus 4 Original Android Development] stratosk:
No, actually I'm not interested in.

Since I started Semaphore for N4 I decided to include a minimum set of hacks in the kernel.

Of course Semaphore was always like this, but now I follow this more strictly.
[Nexus 4 Original Android Development] Barbatos19:
i told ya he already answered it. ahahaha. u might just miss something while reading :p
[Nexus 4 Original Android Development] DesmoDavid:
Ehi Stratosk, do you think to buy the Nexus 5?
[Nexus 4 Original Android Development] thracemerin:
He already answered this question a number of times in the last couple of pages.
[Nexus 4 Original Android Development] DesmoDavid:
Sorry for that, I didn't read prev. pages. Maybe can we start a donation campaign for this thing? :)
[Nexus 4 Original Android Development] dmourao:
Hey! Let he stay focused on N4! :P
[Nexus 4 Original Android Development] ihancioglu:
Hi [MENTION=3750240]stratosk[/MENTION], I think you will need to replace semaphore icon to bigger one as kitkat launcher has bigger icons. I have attached the screenshot. What do you think?
[Nexus 4 Original Android Development] stratosk:
Thanks, I will check it, when I'll install kitkat.
[Nexus 4 Original Android Development] twowheeler:
But i don't think everybody will be using Google launcher tbh. Nova already has an option to change icon size.
[Nexus 4 Original Android Development] jokermithun:
can someone provide me latest kernel .img file to flash with fastboot commands????:confused:
[Nexus 4 Original Android Development] benbugohit:
I think you can find it in the zip extracted..
[Nexus 4 Original Android Development] snak3ater:
You will get the zimage file from a kernel in any kernel format..You wont find any boot.img file in the latest Semaphore kernel.

Have to flash it through recovery or use 'flashify' App if you dont want to go through the recovery
[Nexus 4 Original Android Development] stratosk:
You have to flash zip file. The installer will patch the initramfs properly.

Otherwise, you will have your original initramfs without Semaphore changes.
[Nexus 4 Original Android Development] dmourao:
Hi guys, I've been noticing that the phone is heating quite fast whenever I start using 3G and even a wifi sometimes. With normal usage, such as chatting and browsing and sometimes even when it's just idle on my pocket (with 3G On). I don't mean heating like frying eggs, but more than the usual, easily noticiable. Is anyone else experiencing the same thing?

I'm on latest Cataclysm with Semaphore's default settings. :good:

Thanks! :fingers-crossed:
[Nexus 4 Original Android Development] jordy787:
accidentally flashed on 4.4 i think

Okay so theres this app that i was using and it flashed this kernel i think and im on nexus 5 port 4.4 and it seems to be running how do i know if its on this kernel? on kernel in settings it says:

3.4.0-perf-gf43c3d9

ponury@eva #2

fri oct 18 00:21:00 cest 2013
[Nexus 4 Original Android Development] snak3ater:
You're using touch control app i guess which flashed this kernel.. it's a 4.3 Stock modified kernel & you flashed it in 4.4. it'll run fine except broken Wi-Fi
[Nexus 4 Original Android Development] Skkip:
[MENTION=3750240]stratosk[/MENTION]:

Hello my friend,

how are you?

I was currently testing the most of the possible use cases for the ondemand governor and found out that every case works great, except

when coming from policy->max with a load below up_threshold. If there is constant load the calculated frequency will cause frequency

jumps in governor. To show that I've done a little spreadsheet which is attached. Please note that the red loads are those who will cause

jumping and that there are several more occasions than the few examples in the spreadsheet.

To fix this behavior I added a little patch here: https://github.com/SkipXS/kernel_msm/commit/9aca44cc61cc61b9ee0221b1e54c664430faae46

Basically it is the same as adding down_differential and coveres most (haven't checked all) of the jumps.

Edit: It covers all of the jumps. :) See the second big attachment. Without this there is a possibility 34% that jumps will occur when coming from policy->max

Please let me know what you think about it :)

Greetings from Germany
[Nexus 4 Original Android Development] xatou:
I got random reboots with carbon rom. https://db.tt/SXgcUcg6

Στάλθηκε από το Nexus 4 μου χρησιμοποιώντας Tapatalk 2
[Nexus 4 Original Android Development] stratosk:
Hello, my friend!

I'm not so good. :) How are you?

First of all, thanks for sharing your thoughts! I like the fact that you are investigating in depth (and you face the same questions I had or I have).

About your patch. Yes, it uses actually the same logic with down_differential.

In fact, in my patch to Linux:

a) I excluded, exactly this logic (down_differential)

b) Added the proportional calculation formula.

I believe exactly the opposite: a load of 8% in 1000MHz is not equivalent with a load of 80% in 100MHz. A load of 8% when CPU in 1000MHz in the _current_ sampling period will not necessarily lead to a load if 80% when the CPU goes to 100MHz in the _next_ sampling period.

In most cases the load in a system that many processes are running tends to be chaotic. So, in my opinion the best approach is to try to adjust CPU freq only reading previous sampling period load (that's why I used this method in my patch).
[Nexus 4 Original Android Development] stratosk:
As far as I can see this is a soft reboot.

Please make sure that you did a clean installation of Semaphore (dirty flash of you ROM).
[Nexus 4 Original Android Development] twowheeler:
You're cool skkip! It's always nice to see people thinking with a developer.

What's wrong stratosk?
[Nexus 4 Original Android Development] stratosk:
Nothing special, my friend. Not in best mood...
[Nexus 4 Original Android Development] stratosk:
New version 1.7.6

- Linux kernel 3.4.68

- touchwake: Fix issue when disabling driver during screen off and wakelock was active (thanks [MENTION=3675426]ihancioglu[/MENTION] for his report)

- ondemand: a small cleanup in code (thanks [MENTION=2811371]jugster[/MENTION])
[Nexus 4 Original Android Development] cantevencode:
For anyone else's reference, the standard version has screen tearing on the new 4.4 builds but the j version seems to work. Thanks stratosk (y)

Edit: WiFi is broken
[Nexus 4 Original Android Development] coloxim:
Always thank you..

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] snak3ater:
Yes 4.4 boots fine with jss based kernels.but it breaks wifi..rest everything works great
[Nexus 4 Original Android Development] cantevencode:
Ah. I'm not home so I haven't had a chance to check WiFi. I'll update my post
[Nexus 4 Original Android Development] oxxshadow:
Can I flash over 1.7.4?
[Nexus 4 Original Android Development] lalo20:
Ive installed 1.7.6 and now mi phone doesnt wake up off deepsleep :confused:

edit: I reflashed the rom and works fine with stock kernel then i flashed sk 1.7.6 again and the issue is back

Im on purity

edit2: I think that is solved, I disabled touchwake and sai and reboot.
[Nexus 4 Original Android Development] galaxys:
Yes, flash away.
[Nexus 4 Original Android Development] snak3ater:
No such issue here.. Using 1.7.6 with purity
[Nexus 4 Original Android Development] Barbatos19:
Beta version only? For 1.7.6? By the way anyone tried the 4.4 Rom on this kernel?
[Nexus 4 Original Android Development] Fenvarien:
Semaphore 1.7.6 works great and without any issues for me, together with the latest Purity 4.3 build.
[Nexus 4 Original Android Development] McPh1st0:
What about the latest CM nightlies? Does the 1.7.6 work there?
[Nexus 4 Original Android Development] snak3ater:
Using 1.7.6 with Purity 4.3 Rom (29/10/2013)..

I've tried Semaphore kernel in 4.4 Rom..Everything working fine except wifi..(it does not turn on)

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

No..Screen color issues..Thanks to CM Rom
[Nexus 4 Original Android Development] NQNH:
Since 1.7.6 (flashed it over 1.7.5 without wiping anything) I experience some battery drops.

I was in 94% , just opening facebook APP and suddenly I got 91%. Got the same behaviour yesterday, battery drained 10% in 3 min , just using xda and whatsapp.

I'm in latest purity and using greenify.

Sent from my Nexus 4

Just thought about it again, maybe thr battery icon is not refreshing properly. I will ask in the purity thread.

Nevertheless I really like semaphore in combination With purity :) keep up this great work
[Nexus 4 Original Android Development] Fenvarien:
[MENTION=4259828]NQNH[/MENTION] I flashed like you 1.7.6 over 1.7.5. with Purity ROM. I've no battery drops so far, maybe android's battery calculation algorithm playing games with you. ;) This happens for me if I suddenly use my phone intensive after a long period of deep sleep.
[Nexus 4 Original Android Development] snak3ater:
Hate to live without wifi but still using Semaphore in kit kat :D

All stutters suddenly vanished after flashing Semaphore in kit kat..

---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------

This sudden drop happens when the battery stats show no drop at all even after 5 or 6hrs..Just a straight line.But battery falls down 5-6%as soon as the phone is used again.This is normal & happens here..not always but sometimes
[Nexus 4 Original Android Development] ihancioglu:
Hi there,

I just installed kitkat and semaphore j version, surprisingly everything is perfect except WIFI. I just thinks that caused by firmware file and replace /system/vendor/firmware/wlan/prima/WCNSS_cfg.dat with extracted one from 4.3.

Everything is perfect and working. [MENTION=3750240]stratosk[/MENTION], What do you think? Is this brick our phones?? :)

Thanks,

Ibrahim
[Nexus 4 Original Android Development] snak3ater:
Yes..You are right..I am searching for de-prima-nator zip file.Flashing that file might solve this issue.That's the only thing i could think of.

This mathod of yours might work.I dont think that it would brick our phone.We flashed 4.3 kernel in kit kat without any fear.Now replacing one more file would be no big big deal :D
[Nexus 4 Original Android Development] JG:
do you need that zip?de-prima-nator zip?
[Nexus 4 Original Android Development] Skkip:
Hey,

sad to hear that your not so good. Hope it will get better soon. I'm fine except having to learn for my final exams to finish my studies :)

I know your patch and honestly think that you did a great job. About that: a load of 8% in 1000MHz is not equivalent with a load of 80% in 100MHz. A load of 8% when CPU in 1000MHz in the _current_ sampling period will not necessarily lead to a load if 80% when the CPU goes to 100MHz in the _next_ sampling period.

I agree and on the same time disagree with you:

On scaling up I agree that a load of 80% at 100MHz does not correspond to a load of 8% at 1000MHz. I more believe that it would be less load on 1000MHz. So that case is perfectly fine handled by the algorithm.

But on scaling down the same logic comes in to my mind. 8% at 1000MHz means that we got faster L1 and L2 Caches and in most cases faster Memory- and Bus-Frequency. Now if we reduce frequency to 100MHz it will result in higher load than expected because of the side effects of this (Bus - / Ram - / Cache - / Transition Time +), which could easily lead to a _next_ load higher than the up_threshold. Right now I only correct the value if we come from policy->max (by 5%), but I guess I will have to try reintroducing a simpler down_differential again to cover my thoughts :)

Of course all of this is just me thinking loud enough for all of you to hear :) And you are right everything in the kernel including chaotic tasks from userspace is more about reacting and predicting the nearly unpredictable future.

Maybe you can share your thoughts on this with me :)
[Nexus 4 Original Android Development] snak3ater:
Yeahi need that file..Searchd it but could not find it
[Nexus 4 Original Android Development] JG:
check your PM
[Nexus 4 Original Android Development] spr33:
You should make your own branch of Semaphore! Would be cool to test both :)
[Nexus 4 Original Android Development] snak3ater:
Omg..That experiment worked :victory:

Finally wifi is back in Kitkat..Just now flashed the deprimanator & then flashed Semaphore..Working Flawlesly :D

Go for it guys :good:
[Nexus 4 Original Android Development] Skkip:
Nice to hear, but it won't happen :) Because we don't need another kernel with exact the same features as semaphore and a few modifications. And of course semaphore is stratosk baby ;) (was using it on i9000 already)

I'm actually thinking about releasing my kernel but most users won't be satisfied, because I only try to improve parts of the kernel. For example you won't ever see overclocking, undervolting, or fast charge in there. Many will ask why and I will have to explain that commits like this :

msm: acpuclock-krait: Add voltage boost mode …
Add support to bump up or down the voltage via sysfs.

# echo 1 > /sys/module/acpuclock_krait/parameters/boost

enables the boost and

# echo 0 > /sys/module/acpuclock_krait/parameters/boost

disables the boost. Boost mode is enabled by default for fast and
nominal devices because those devices could be at the boundaries
of the characterization thresholds and exhibit CPU/L1 errors.

Change-Id: If0dd4ed949188debbb55f82f07004b57548164f6
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

show, that some of these close to hardware changes are not meant to be modified by anyone who can not monitor these errors. And I guess there are not many people who know how to monitor L1 Caches on Krait CPU.

I certainly do not :)

And now lets go back to topic, meaning [MENTION=3750240]stratosk[/MENTION] 's outstanding work here
[Nexus 4 Original Android Development] snak3ater:
WiFi :D
[Nexus 4 Original Android Development] AhmedFaiz:
Is it fine to flash it with the aosp for mako by aospa what zip is it needed to flash for WiFi fix, would like to try it too.☺
[Nexus 4 Original Android Development] benbugohit:
I think he wanted to let us know that wifi's working thanks to flashing Sem 1.7.6j with aosp 4.4. No patch needed
[MENTION=4770534]Sak3ater[/MENTION]: true statement ? which 4.4 rom do you use ?
[Nexus 4 Original Android Development] AhmedFaiz:
Just flash the semaphore latest j version with aosp all fine no issue !

I hope he confirms it.
[Nexus 4 Original Android Development] benbugohit:
what about this ? could it help ?
[Nexus 4 Original Android Development] snak3ater:
No..Actually wifi was not working at all after flashing custom kernels in 4.4 Roms..

If you want to make it work,then flash this file before flashing any JSS based custom kernel..

de-prima-nator

This flashable file replaces these 2 system files 'WCNSS_qcom_cfg' & 'WCNSS_cfg.dat' :good:

Thanks to [MENTION=4686563]kjax[/MENTION] for providing this file :)

---------- Post added at 04:50 PM ---------- Previous post was at 04:45 PM ----------

I am using Stockified Aosp Rom by showp1984..

---------- Post added at 04:59 PM ---------- Previous post was at 04:50 PM ----------

I haven't tested it on Aospa but it should work in it
[Nexus 4 Original Android Development] Skkip:
Ok, now I know how :)

But this would make the kernel more of a debug kernel lowering performance, when checking all the time.

One would have to make it switchable (it is already :D) and provide a userspace app, to test nearly all possible workloads on every frequency and check the caches.

This would be a lot of work (speaking of weeks or month) for a negligible gain.

Sorry [MENTION=3750240]stratosk[/MENTION] for all the offtopic!

May I repeat myself: ;)

Lets go back to topic, meaning [MENTION=3750240]stratosk[/MENTION] 's outstanding work here :)
[Nexus 4 Original Android Development] AhmedFaiz:
All working fine on 4.4, nice to be back here with kitkat. Just flash the zip above and the kernel.

n4/aosp for mako/semaphore 1.7.6j/v4a
[Nexus 4 Original Android Development] JG:
DO NOT RE-POST OR MIRROR THIS WITHOUT PROPER PERMISSION AS STATED BY DEVELOPER!

This will fix wifi issues on 4.4 KitKat builds when using custom 4.3 kernels ONLY, flash this prior to flashing your custom kernel such as Semaphore,Faux,Franco etc....Hope it helps!

1.) Flash dePRIMAtor.zip in attached file below post! (Give Thanks)(originally designed for AOKPK builds by [MENTION=525305]kecinzer[/MENTION])

2.) Flash kernel

3.) Restart

This should work with JWR and JSS.Depending on the ROM of course. Another thing worth noting is that a very few that reported this as not working were all running an older radio Pre .84 ....( Just something to consider in your trouble-shootings...):)

NOTE 11/19/2013 -- To remove Deprimator just reflash your ROM(dirty flash is okay).This will be needed to be done prior to installing any new KITKAT custom released kernels such as the new faux beta that is now out on his thread!

De-Primator is not needed for KK (will break wifi)it is only needed if using a 4.3 Kernel with KK .Now that Kitkat kernels are now available for mako this will have no useful function.So I am Removing from this thread!

IF I HELPED YOU PLEASE PRESS THE THANKS BUTTON​
[Nexus 4 Original Android Development] Bladyle:
Or you can make build with your changes only and post it here.

I'll be happy to test it :)
[Nexus 4 Original Android Development] stratosk:
I think it's impossible to brick your phone because of this. In the worst case scenario you will need to flash a known working kernel.

As I said in my previous post, I think that it's not a common case to have a stable load for a period of time longer than some sampling periods.

The most common case when a thread of code starts is to run as long as the scheduler gives to it CPU time slice. This means that will push the CPU to 100% (unless it will run for a short period < sampling period). When thread terminates the CPU load will go back to 0.

You can't easily instruct a program or a thread to produce a constant load < 100 during many sampling periods.

I think you can't predict the load within the governor. You can only follow as fast as you can the load (translated to freq).

Some kernel devs proposed (and I think some people work on this) changes to scheduler to hint governor about the forthcoming load. But this domain it's far for my knowledge.
[Nexus 4 Original Android Development] Sir_gpm:
Could someone tell me the best setup to 4.2.2version of this kernel. And I enable the touch to wake option in the manager but work 1 time and the works no more.
[Nexus 4 Original Android Development] :
Any word on kexec-hardboot support? I just started using this kernel and really like it, but I use Multirom.
[Nexus 4 Original Android Development] thracemerin:
Stratosk said no to this previously.
[Nexus 4 Original Android Development] MuertoKo:
Hi stratosk,

I've been around for less than 2 months now and I'll jump to N5 already (managed to resell my N4 for 250€ so can't complain). Just wanted to step by to say THANKS. I'm really glad I donated to you on the first place, till now you're one of the most helpful and sincere dev I've seen around (sure many more, just hadn't met yet :P).

Thanks for the amazing work for N4 and hope you keep it up ^^

Best regards and wishes.
[Nexus 4 Original Android Development] capoooro:
Finally a bug to report. It's hard anyway to find something not perfect here. The led trigger and the led setting on PA conflict. When I use both, led color goes rainbow when I have notifications.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] deeppans:
Stratosk, I'm sorry for going off topic. I cannot resist to install Semaphore on KitKat :laugh:

I have downloaded the PA files couple of times, but getting the different MD5SUM for downloaded files that the mentioned one on PA site.

Can someone post MD5SUM checksum for ROM(pa_aosp_mako.zip) & GApps(pa_gapps-full-4.4-20131102-signed.zip) files, please?

Thanks in advance.
[Nexus 4 Original Android Development] stark_br:
I'd suggest you to use Rastakat + PAgapps, then you install semaphore and wifi fix.

I'm using this setup, excep for the kernel and it runs great!
[Nexus 4 Original Android Development] port76:
I'm on raskat 4.4 kk will this kernel work