yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] stratosk:
Initrmafs is packed with zImage (kernel) and both of them live in /boot partition.

When I say ROM's initramfs I mean the initramfs that is designed to work with the specific ROM.

For example CM, uses an initramfs with a lot of changes versus stock one.

So, if you want to flash a custom kernel on CM the best combination is to use zImage (custom kernel) + initramfs from CM.

If you flash Semaphore kernel on top of Franco's you will get:

Semaphore zImage + Franco's initramfs. As far as I know Franco's kernel replaces a couple of libs in /system. So, in your system you will still have the modified binaries.
[Nexus 4 Original Android Development] snak3ater:
Lol..One of the best comments..Really funny :laugh:
[Nexus 4 Original Android Development] sgw99:
Thanks
[Nexus 4 Original Android Development] a g bell:
So lm back here too a little confused with what l read about 1.6.0 and that l need to have a copy of my current roms kernel ?can l not just install semaphore anymore and get the semaphore goodness?l .lm currently using stock kernel forgive my ignorance don't get it:confused:
[Nexus 4 Original Android Development] ctfrommn:
Just dirty flash your Rom and then the kernel. It will inherit all it needs from the stock ramdisk.
[Nexus 4 Original Android Development] ak:
This is love

.. :p
[Nexus 4 Original Android Development] a g bell:
Hmm hope that work's my ROM is very fast and has many optimisations:D
[Nexus 4 Original Android Development] Fenvarien:
Wow, I finally managed to find some time to play with my new N4 (with little children that's really not an easy task ;)

Semaphore works wonderful here, fast, stable and very battery friendly!

Thanks again for your hard work, Stratosk :good: :)
[Nexus 4 Original Android Development] MementoMoriM:
Semaphore works very well with SlimBean Beta 5.

Thanks stratosk :cool:

Enviado desde la muerte a través de un Nexus4
[Nexus 4 Original Android Development] nodnarb91:
Thanks a lot for this bro, I love the amoled-ish display. I kept the color temperature for red and green at 255. With those at 245 it looked a little too blue for me, but the gamma control values are spot on!!!
[Nexus 4 Original Android Development] sfrique:
[MENTION=3750240]stratosk[/MENTION]

Maybe a option just to save some LCD profiles?!?

I read your post before.. Just asking...

If I try to implement it and give you a patch would you consider apply The patch?

I'm no programmer but I can try it..

EDIT: I just don't have time to learn how to do this... in semaphoreapp

I might just write a bash script to do this....

I did see before an script that write values for the semaphore... but i did not have "presets" I might try make one that is easy to do chose a preset.

Enviado de meu Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] PRGUY85:
Just flashed this over stock JWR66Y with stock kernel. I am getting screen tearing. Is the solution wiping all data and starting from scratch?
[Nexus 4 Original Android Development] SupWiz17:
I am getting high battery drain with 1.60 and my battery stats says it's all from android os or the kernel. Is there some setting in the app I need to turn on or off that could be causing the high drain? The kernel is very smooth and I'm sure I can get some great battery life out of it.
[Nexus 4 Original Android Development] nithin1992:
I hope your not using the j version? And are all the settings default or have you meddled with any so far? :)

---------- Post added at 08:00 AM ---------- Previous post was at 07:58 AM ----------

The battery life is quite astounding on this kernel. If your using a custom ROM you can try download a battery calibration app, calibrate it and give it a day or two to settle in and you should be getting good battery again.
[Nexus 4 Original Android Development] snak3ater:
Are you using touch control or touch wake? check for the wake locks.. Some app is causing this high drainage..

Ps: Now i am seriously considering to make this statement my signature so that everybody could see it..
[Nexus 4 Original Android Development] sfrique:
Bellow is the script!!

I guess i tis very easy to edit..

I used some profiles found in this thread!

http://xdaforums.com/showpost.php?p=41386276&postcount=829

[MENTION=3750240]stratosk[/MENTION], when setting the kernel values with the script, you app doesn't seems to see the updated values.

Please, i Need people update good values for the script!

It seems that "quote" doesn't keep the ident, but the script will work anyway.

If anyone knows good profilesi will and here!!

This guy has an spreedsheet that maybe have somegood values:

http://xdaforums.com/showthread.php?p=42276183#post42276183

He also have a similar script!
[Nexus 4 Original Android Development] manpildo:
Can I make a feature request for BLX aka Battery Life Extender?
[Nexus 4 Original Android Development] stratosk:
You need to explicitly read system settings (from Semaphore's Manager menu).

Also you may replace 'stratosk' profile in your script with 'stock'. :)

I'm sorry, no. I don't believe that this feature will extend your battery life.

Driver in the kernel knows better how to charge your battery properly.
[Nexus 4 Original Android Development] manpildo:
Oh, you have regulated the charging yourself? :good: By battery life you mean long term battery health, right? I know it doesnt extend the short term battery duration.
[Nexus 4 Original Android Development] ArjunrambZ:
congrats bro
[Nexus 4 Original Android Development] stratosk:
No, I didn't change anything in charger.

Yes, I mean long term battery health.
[Nexus 4 Original Android Development] stratosk:
Please let me add something to my previous post (absolutely no offense to you).

Google, LG or Samsung (or any other vendor) engineers are professionals that develop all these kernel drivers and software.

Of course, they know the hardware better than anyone else because they have access to specs and cooperate with engineers who designed the hardware and because this is their main job.

There is no amateur dev who can substitute them or know better than them.

OK, we can do some hacks, fix a bug, develop a functionality, improve a procedure, maybe we can find a better implementation for something but we can’t nullify their work or we can’t say that we know better the details of their implementation.

Let’s take for example the BLX you mentioned.

Why this hack is better than standard charging procedure? Do we have any scientific measurements? Do we have any long term tests?

I agree that sometimes devs in XDA have excellent ideas and do amazing work but this is not the rule.

We can experiment with new things, we can try new stuff but we should respect vendor’s engineers and their work. Their sure know better than us.
[Nexus 4 Original Android Development] pawan1993:
Definitely one of the most, if not the most humble dev on xda. Your attitude here should be the bar for all devs new and old.
[Nexus 4 Original Android Development] manpildo:
Good point, completely agreed. Replies like this is why I think I am gonna stay on Semaphore permanently after shuffling through various other kernels. You seem very knowledgeable and humble, you try to give detailed answers to everyone.

I have one question though out of pure curiosity. If you say that the original engineers and developers know best, why have you developed your own kernel to change some of the original functionality? This question is by no means a disrespect towards you, I am genuinely interested in what you found that you could improve? Sorry if I am riddling you with pointless questions, but your responses are always interesting and insightful.
[Nexus 4 Original Android Development] snak3ater:
You are not the first one to come up with such questions..I also used to think like that but then i came up with an answer on my own..

I will stick to the example of BLX..See as Stratosk said that there is no scientific measurements for BLX.Nobody knows for sure what it'l do in the long run.Battery life extension is not something that one would check in an instant.You just cannot be sure about this thing..

On the other hand take the example of Hotplug that Semaphore uses instead of mpdecision.There is a living proof of how different Stratosk's driver is in comparison with mpdecision.You can check it on the spot by putting up load & checking out the CPU.Similarly all those things were improved from the stock kernel & that improvement has got scientific measurements & thus makes sure that the end user benefits from it..Not only Semaphore,but all kernels are like that.All devs try their best to improve the stock Google kernel.People working at Google are also human & they can do mistakes as well..But there are some really sensitive things that one should not play with..& BLX is one of those things..Trust the words of Devs.If a dev say something is not good for the hardware,just believe on it
[Nexus 4 Original Android Development] nithin1992:
The original engineers and developers have a very broad user base to cater to, they should hit a perfect balance of performance,battery life and stability so that it suits everyone. Here at xda people develop to enhance the working of these by using tweaks which would suit them the best, it may be performance or battery life. They tweak things that are easily alterable which do not cause major disrupt to the system on the whole. Drivers are usually a lot more cryptic and would require loads of testing as the effects might not be seen instantly. A huge amount of money and man force is spent usually for testing the device before its let out, which is only possible with the original engineers and their huge software testing setup.
[Nexus 4 Original Android Development] Holer Togni:
Also we shouldn't forget that vendors build software that's supposed to work for millions of people under a great amount of different circumstances and not just for a few thousand tech-savvy hobbyists.

Now that the stock kernel is as good as never before on 4.3 your approach absolutely pays off!
[Nexus 4 Original Android Development] Bonvaz:
Guys I want to use this kernel but I can't use bundi22 color profile that I use on Franco!here the the color values are different :(..I can't live without that colors

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] philidor:
[MENTION=3750240]stratosk[/MENTION]

I think you are right, is impossible to evaluate long term battery health in short time and without some extended research, (as probability lg, samsung , Motorola ecc. have done).

And I don't think the base philosophy of your kernel development is test new function like BLX. I'm sure if BLX will became a must standard, stable and proved superior you will think about implement it. You give us touch control, gamma control, touch wake and SAI, all without compromise your kernel efficiency and stability.

Great work my friend

PS I'm not knowledgeable enough to improve something like gamma control in semaphore app but it is an open source app so if someone try and implement it I think stratosk will be happy for it. Am I right?

Inviato dal mio GT-P3100 con Tapatalk 4
[Nexus 4 Original Android Development] alen1901:
You will notice that when blx is set to 90%, power supply is cut off like when it reaches 100%. (To save battery). Battery output voltage to phone is lower on 90%, and this batteries dont like to spend much time on full charge. So less voltage is better for battery life in a long term (talking about months, maybe years). I always used blx on all phones i had, and no problems there. In the other hand, fast charging is what is more dangerous.

Poslano sa mog Nexus 4 koristeći Tapatalk 4
[Nexus 4 Original Android Development] manpildo:
Yes you can. http://xdaforums.com/showpost.php?p=44132536&postcount=2364

Just set those numbers to RGB under Gamma Control:

bundi22 (S3): 0 87 119 0 6 0 1 0 2

bundi22 (iPhone 5): 0 39 119 0 6 0 2 0 2
[Nexus 4 Original Android Development] Goku80:
flashing roms now that for me has stopped since i found the perfect rom for my requirements...kernel flashing though i go through kernels like a whore:D but for me this one here always has the best of both worlds in performance and battery life...the only thing is missing is faux sound as i really love my music...hence why the constant jumping through kernels...but anyways credit to [MENTION=3750240]stratosk[/MENTION] because being a fellow Greek ;) he is a very humble dev and one of the most likeable and genuine people i get to know through xda and always here to help out...so for me even though i am not currently on his kernel by all means like i support other devs by getting there apps i would of gladly buy his as well....but anyways bravo file mou kai makari na se doume kai sto iphone na kaneis ta kernels sou:D
[Nexus 4 Original Android Development] Bonvaz:
Just because I'm curious, what is the ROM? XD

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] Goku80:
slimbean;)
[Nexus 4 Original Android Development] "D":
@stratosk

:D:D:D

Thanks,Thanks,Thanks

best regards
[Nexus 4 Original Android Development] szucsgf:
Related to BLX (limiting full charge to less than 100%), you can read the paragraphs immediately following table 3:

http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
[Nexus 4 Original Android Development] twowheeler:
This thread always has some interesting things to read!

[MENTION=3750240]stratosk[/MENTION] will you ever make this kernel able to downclock or isn't that a sufficient way to save energy? Maybe for playing music. I have no idea at what freqs my phone is running though using semaphore app. No offence ;)

---------- Post added at 04:00 PM ---------- Previous post was at 03:59 PM ----------

Wow what are your settings? Nominal device?
[Nexus 4 Original Android Development] "D":
@twowheeler

Semaphore 1.6.0

out of Box

. Stock 4.3 odexed (debloted by me)

regards "D"
[Nexus 4 Original Android Development] rodeo_calling:
Just flashed the kernel with the latest Purity and love it so far. Couldn't be happier.

The only thing I feel like an idiot about not configuring right now are the colors. Help me out here guys. I see this as one of the bests, but I still don't understand how to do it using the Semaphore app...

Can someone please post some screenshots and more... Running on thin ice now...

Sent from my Nexus 4
[Nexus 4 Original Android Development] manpildo:
Screenshot about what? In Semaphore Manager -> Tweaks -> LCD calibration
[Nexus 4 Original Android Development] twowheeler:
Thanks. I'm on pa right now after using stock for some time. Am afraid that im going to miss the features has. What are the rest of your settings? Will you share your secret :D
[Nexus 4 Original Android Development] jolas:
[MENTION=3750240]stratosk[/MENTION]

Is 'DYNAMIC HOTPLUG' disabled by default in 1.6.0 kernel?
[Nexus 4 Original Android Development] "D":
Ok my friend here are my settings with the Semaphore Manager, there are my screens. that's it ;)

best regards "D"
[Nexus 4 Original Android Development] rodeo_calling:
I get that, I was hoping for a screenshot of the values entered. So 6 for color temperature plus 27 more for gamma...

Sent from my Nexus 4
[Nexus 4 Original Android Development] twowheeler:
WOW!!! Those colors really kick ass. I think it will be running at one core most of the time with these settings. Will try this. Thanks a lot!
[Nexus 4 Original Android Development] "D":
@twowheeler

Good luck and give me a Feedback pls. (PN)

best regards "D"
[Nexus 4 Original Android Development] twowheeler:
Just look for lcd calibration. Put those numbers in gama control. Every row the same ;)
[Nexus 4 Original Android Development] privat75:
Anybody using UV with the Semaphore App?

Don't know what are good settings.

Gesendet von meinem Nexus 4
[Nexus 4 Original Android Development] ceejay83:
UV is different for every phone. You need to customize it yourself
[Nexus 4 Original Android Development] twowheeler:
Should be able to make a full cycle tomorrow. your post made me wanting to fiddle around with those colors. So i have something to do this evening :p. What your post also shows is that the positive effects of undervolting are really questionable.

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

What is type of cpu do you have? Just try to change those values with steps and don't enable at boot until you're shure it's stable
[Nexus 4 Original Android Development] rodeo_calling:
Guys it's not difficult, just go into the LCD calibration setting, take a screenie and post it.... like so

This is of course with the default values.

Sent from my Nexus 4

---------- Post added at 06:04 PM ---------- Previous post was at 05:58 PM ----------

Only reason I ask your help is coz I haven't figured how to do it just right yet. Thanks again.

Sent from my Nexus 4
[Nexus 4 Original Android Development] privat75:
deleted
[Nexus 4 Original Android Development] privat75:
Ok, now I have it.

I hope it will work.

Gesendet von meinem Nexus 4
[Nexus 4 Original Android Development] twowheeler:
Exactly like that. But you undervolted the higher freqs more than the lower freqs. Should be the other way around ;).

And I added the pic for those LCD calibrations based on iphone5 settings (juk :D ) credits to

[MENTION=3477239]bundi22[/MENTION]

Edit: picture somehow won't add..
[Nexus 4 Original Android Development] privat75:
Is this better?

Gesendet von meinem Nexus 4
[Nexus 4 Original Android Development] twowheeler:
Yes. Much better. Don't expect wonders from it BTW. You may feel that your phone stays cooler most of the time ;)
[Nexus 4 Original Android Development] twowheeler:
Sorry for double post. But this was the only way I could add this picture
[Nexus 4 Original Android Development] stratosk:
Thanks for your kind words!

About your question:

There is always space for improvements. I didn't say that every work in XDA is useless. I just said that we should respect professional engineers who works in giant companies. But they are also humans, and we can also try to fix bugs or improve stuff.

I just don't like the approach that some devs follow: "stock is crap and I am here to fix everything".

When I started Semaphore (back in gingerbread days with SGS) I just wanted to add voodoo sound, BLN and OC to CFroot kernel (which is stock kernel). Finally, I found that I love Linux development in embedded devices and Semaphore became my hobby. Since then I spend 99% of my free time in this project. My goals with Semaphore:

- Upstream sync with the latest Linux stable kernel. Hundreds of official fixes that are not included in stock

- Configuration customization/improvements. Stock kernel may use features that almost nobody use. They have to include those features. I may omit them (e.g. ext2/ext3 support, less debug options)

- Include hacks (by other devs or by myself) that may be useful but they can't be included in a stock kernel (e.g. undervolting)

- Research for new stuff (improvements). My new ondemand calculation method will be included in upstream 3.12 kernel. Other changes already included in 3.9 and 3.10 kernels. Touch boost (smooth_ui) was implemented in Semaphore before project butter.

- My personal pleasure that I can release (I hope) a high quality kernel build that people use and like it.

All the above must meet the following requirements:

- safety. No unsafe or risky hacks. As most of us, I can't afford for new device if something goes wrong.

- stability. Linux kernel is rock stable. Every build must try to preserve this stability.

- speed. obviously

- quality. Every single line must follow official kernel coding style and rules.

This is a very good argument.

Actually, I spend many hours (since I read your post) trying to be familiar with stock kernel's code about charging. So, I found that it uses a very complex battery monitoring system (> 3500 lines of code) that handles the charging procedure.

Maybe the article you sent is correct, but I'm also sure that charging module author knows what he's doing. :)

And it's very difficult, at least for me, to make such a hack.
[Nexus 4 Original Android Development] stratosk:
It's enabled by default.
[Nexus 4 Original Android Development] szucsgf:
The part of the article that addresses why the charging module author's goals might not be the same as every user's goals, and therefore why different charging methods (e.g. Limiting charge to a few % below full) might be appropriate, is:

"Chargers for cellular phones, laptops, tablets and digital cameras bring the Li-ion battery to 4.20V/cell. This allows maximum capacity, because the consumer wants nothing less than optimal runtime. Industry, on the other hand, is more concerned about longevity and may choose lower voltage thresholds. "

Note that I'm not asking for BLX. I can just unplug my charger before 100% if I want. Just sharing info.

On another note, thanks for the crazy awesome kernel. This is my first time using it on 4.3 and I'm very impressed. Thank you!
[Nexus 4 Original Android Development] thracemerin:
The default charging system on the N4 trickles after 90% and stops somewhere around 97-99% already.
[Nexus 4 Original Android Development] PRGUY85:
I installed Semaphore 1.6 on stock JWR66Y. These are my stats for now. As you can see, my usage (screen time) is minimal. I am more of a turn on, answer messages, turn off kind of user. I don't use the phone for more than 5 minutes at a time...and if I do, it gets hot. This happens with all kernels by the way. I'm never on Wifi throughout the day at work, so I don't know if that has something to do with it. With all kernels I test, I can never pass 1.5 hours SOT. I have minimal amounts of apps.

Should I undervolt or something? Start fresh? This has happened since I got my phone back in November. I get through the day but if I dare to use the phone a bit more intensively, say browse for 10-15 minutes straight, it gets hot and battery life goes down the floor.
[Nexus 4 Original Android Development] PRGUY85:
Oh and these are my daily stats.
[Nexus 4 Original Android Development] stratosk:
Maybe it's the bad mobile signal. Did you try to turn off 3G (always use 2G)?
[Nexus 4 Original Android Development] PRGUY85:
I could try that...would have to check if my browsing would be tolerable.
[Nexus 4 Original Android Development] szucsgf:
When I see stats like this my first thought is "wakelocks". You posted your WLD stats, but can you try BBS? I've found it gives more detail and sometimes catches wakelocks that WLD doesn't.

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

If you could post your kernel and partial wakelocks after a few hours of uptime there might be some useful info in there.
[Nexus 4 Original Android Development] PRGUY85:
I will try BBS. I have done so in the past but get more or less the same information.
[Nexus 4 Original Android Development] TheOneChristo:
Hey man, having the same problems as you. I consider 2 hours SOT great. I've tried undervolting. Underclocking and just about every kernel out there. If you find something let me know!
[Nexus 4 Original Android Development] apatal:
Have you tried greenifying some apps? If you use a lot of social media apps and maps a lot, they tend to hang around and run in the background long after you stop using them. Greenify can help you in this by hibernating apps that just won't stay sleeping. Just don't use it on apps that you want to receive notifications from, like email and alarms. :)