yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] stratosk:
Yes, a little bit (IMHO, tiny)

The gain is in battery life and and heat.

I will not change my mind about Apple products because Franciscofranco says that they simply work... :)

Every software and hardware has bugs.

I remember a friend of mine that was trying for couple of days to make AP in his iPhone to work (and he was trying to share internet to his mac book). Then he found an official bug.

Just type: File:/// in Safari's address bar in Mountain Lion. (I guess this is an old one).

What about the maps? Did they work?

I admit that they produce high quality products. But the prices are crazy. And they work. But:

Remember that the iOS runs only on 1 type of device. Android has to run on hundreds of different devices (hundreds variations on hardware).

Remember that the iOS is a close non flexible operating system. It leaves no opportunities for expansion, so less issues.

Android grows rapidly and this causes some issues of course. iOS remains almost the same over several years.

I prefer the Linux/Android rapid growth with some issues sometimes, than a static iOS, closed to developers and users.

This is just my opinion and I'm sorry for the off topic.
[Nexus 4 Original Android Development] stratosk:
In addition to my previous post.

This is marketing. Apple is ace in marketing. Microsoft is ace in marketing. Linux people doesn't care about it. Which is best?

It's very easy to manipulate people who are not experts.

After 2 years in XDA community, I'm scared how easily people are manipulating from some devs.

Devs who know how to push their products. And many people just believe that their products just work...

This is even worst with huge companies like Apple that can spent billions in marketing.

All that glisters is not gold. Try to find the original.
[Nexus 4 Original Android Development] sryche:
colr settings

can change some values with faux and trickster app. so is there any way to use franco's recommended color settings or smilar colors??
[Nexus 4 Original Android Development] ashishv:
Its something called as human sense of perception????90% people would have read it that way for first time.Sorry for OT.:cool:
[Nexus 4 Original Android Development] stratosk:
It seems that the attached version resolves issues with CM10.1.

I guess that I compared a wrong initramfs and I didn't see the differences. Boots fine now for both stock and CM.
[Nexus 4 Original Android Development] reginickneo:
Thank you man, you are awesome! Everythings fine!
[Nexus 4 Original Android Development] phewizzo:
Just flashed 0.3.1 over latest CM 10.1 nightly. Amazingly smooth... I will report on battery life tomorrow. I love keeping it mostly stock. Keep up the good work.
[Nexus 4 Original Android Development] MichaelVeringo:
I see the new version (0.3.0) has "Touch Wake". How do you enable this feature?
[Nexus 4 Original Android Development] JmPTaz09:
Everything running well so far on .31 version :beer:
[Nexus 4 Original Android Development] choipadu:
Trickster mod works just fine with this kernel including touch wake.
[Nexus 4 Original Android Development] reginickneo:
Small report:

Kernel is really smooth on CM too. Only problem is that it stutters after unlocking the screen. Not so long, but annoying.
[Nexus 4 Original Android Development] DnickDominic:
Why O2 optimizations not O3 and whats the difference.?
[Nexus 4 Original Android Development] stratosk:
I had a compiler error (due to a bug in gcc?) with O3.

O3 enables more optimizations than O2
[Nexus 4 Original Android Development] aaronrw:
This kernel is a monster! Runs great over cm! Thanks again first stand alone kernel I've tried, and wow.

sentfromybrain
[Nexus 4 Original Android Development] noobiekins:
Could you try to implement Franco's hot plug + interactive combo into this kernel? It is better than mpdecision + on demand / interactive in games and doesn't have mpdecision's min setting at 1ghz
[Nexus 4 Original Android Development] a g bell:
Agreed Mpdecision does seem very restrictive lmho:)
[Nexus 4 Original Android Development] prbassplayer:
Is it true that o3 optimizations tend to be more unstable? I haven't tried messing with it myself.

MdPrecision is ok on itself but yes its a pain to mess with it
[Nexus 4 Original Android Development] stratosk:
In theory, yes. But, I didn't face any issue on SGS kernel for 2 years.

Anyway, of I will manage to compile with O3 we will find out. :)
[Nexus 4 Original Android Development] stratosk:
Ondemand will be the default Semaphore's governor. About mpdesicion, I don't know yet.
[Nexus 4 Original Android Development] meangreenie:
Just for info, motley's inert powerhal gets rid of the 1024mhz min freq touch boost with standard mpdecision; but introduces lock screen/screen-on lag.

maybe a better powerhal could be made.
[Nexus 4 Original Android Development] -viper-:
Thnx... Nice To see Greek developers are here. Συγχαρητήρια αδερφε
[Nexus 4 Original Android Development] flaviocc:
Thank you !!!

I fix with the terminal like i post !

Tks for your work.:good:
[Nexus 4 Original Android Development] Zlatan9.:
Ok maybe you are right that is too closed..

But a good example is : Which device is the best for a normal costumor.. Nexus 4 or Iphone 5 ?

Even the simplest thing is not all right on the nexus 4 (gamma)

It's not only marketing stratosk the produuct they sell are high qualtiy hardware and software...

The quality control is so high, Google has a lot of homework at this point!

Be objective stratosk.

I love your kernek btw and sorry for my bad english
[Nexus 4 Original Android Development] DontPushButtons:
If you're going to be talking about the average consumer, you can't throw in an example like gamma colors.. Average consumers aren't going to complain about gamma.
[Nexus 4 Original Android Development] twowheeler:
Why is everybody saying that the gamma on the nexus 4 isn't good. Its perfect, colors are exactly how they supposed to be.

IPhone 5 nor the nexus 4 is best for a normal customer: a cheap mid-range phone is the best for that. Does everything someone needs, only not at the speeds a nexus 4 does(yes if you ever feel the speed you don't want to go back, but it isn't necessary). Does android have these phones? Yes! Does apple have such an iPhone? Yes, BUT: older iphones (kinda mid-range) suffer from the business point of apple: they get an os update they can't handle making them slow and maybe even useless. Most apps won't work etc etc.

I don't get it why everybody assumes apple products are without flaws. They just aren't because of the things that stratosk just points out. Apple gives me a cramp feeling, no freedom of use. A normal customer may not need more, but they also aren't "invited" to try something new the way android does.

No offense to anybody, but I get kinda sick of people saying bad things about the nexus 4. It's getting criticized for everything it does. I've seen things from a rumble, a beep from the charger, things like that. And the latest thing is gamma or colors. Common people: there isn't a problem with that, it just what you want to see. That's exactly why so many people like Samsung colors: they are super saturated.
[Nexus 4 Original Android Development] malcho:
For example i use windows on my job.But since i start to use linux 4 years ago i can say it's great.Whatever u set it works.Microsoft have only 2 good products Active directory and Windows 7.

Ubuntu,centos and android are linux variants that i use and i can say I'm more than happy. Yes it takes some time to learn it but when u do it's simply the best.

Sent from my Nexus 4
[Nexus 4 Original Android Development] twowheeler:
This kernel is great btw. Just for a reader who happens to get past this page. :D
[Nexus 4 Original Android Development] nithin1992:
You don't seem to understand. Even ios6 isn't smooth on the iphone 3gs,itouch 4g etc and they lag quite a lot. Android lags on lower end devices, which is the same as ios does on iphone 3gs,itouch 4g etc. A S4 wouldn't really lag, even a N4 for that matter, as long the apps are written well. So if you chose the iPhone 5 and an android phone which belongs to the same price category and compare them, the entire quality/performance of both the phones would be top notch. Android has flaws since it caters to a large user base while apple has to focus only on its line of devices which is a massive advantage. Even with this advantage I'd say Android is definitely in par with ios at the least.
[Nexus 4 Original Android Development] stratosk:
A normal objective non biased customer should by N4 for 280 or 350 euros. Not an iPhone because 'it's a must' gadget for over 800 euros.

I could agree in hardware...

How do you know about quality control in Apple or in Google?

Edit: colors are just fine in N4 for my eyes.
[Nexus 4 Original Android Development] nithin1992:
How exactly does the performance get affected? If the cores turn active whenever the requirement arises it should be fine right? Also is the battery gain significant or is it tiny as well? :)
[Nexus 4 Original Android Development] DontPushButtons:
Because standard dynamic hotplug will scale the cores up more aggressively than is actually needed to ensure higher performance.
[Nexus 4 Original Android Development] twowheeler:
Same with mpdecision right? Whenever you touch the screen: the speed goes up.

I'm pretty surprised how smooth everything is on 2 cores BTW. But is that really more battery efficient as having 4 cores, but having to do less?
[Nexus 4 Original Android Development] stratosk:
The driver checks system load every half second. System may demand CPU sooner.

Battery gain depends on usage. It's not tiny. But don't expect huge difference.
[Nexus 4 Original Android Development] stratosk:
No my driver doesn't work as mpdecision.

Touch boost is applied only in ondemand governor.

Dynamic hotplug takes care yo offline CPUs when system doesn't need them
[Nexus 4 Original Android Development] DontPushButtons:
Apologies, I totally derped that. What I was describing IS mpdecision. (edit) Dynamic: see above for stratosk's explanation, lol.
[Nexus 4 Original Android Development] Zlatan9.:
I want to say I like how you react.. You dont say you are a apple fan boy or something. Apperciate that :good:

For example tick with you finger on the nexus logo on the backside ( letter E ) you will hear a thing that is not you will hear a part that is not fixed.. ( known problem ) its just small thing but that is the quality control of google. Maybr I exaggerate i dont know.

But what I know is i want to buy HTC one or Iphone 5S.. I'm starting to hate my nexus 4
[Nexus 4 Original Android Development] DontPushButtons:
LG manufactured the phone, not Google. It's a technicality, but there is a difference.

Also, i don't hear anything when I tap my Nexus logo :/, perhaps you just beat your phone up more? Or I take better care of mine?
[Nexus 4 Original Android Development] Zlatan9.:
No sir, all the nexus 4 has it .. Known problem

But im going to bit off topic know.. I think stratosk doeant like this :p
[Nexus 4 Original Android Development] a g bell:
Chargers :eek:
[Nexus 4 Original Android Development] ciprianruse88:
My gf has a iphone 5 and after a month of use the scratches on the back and corners are aweful and she used it very carefuly...Now she hates the decission she made.Also a top noch device that costs around 650-700€ and has no HD screen is just a $hitty device in my opinion no matter how the colors looks.Iphone 5 must be compared to an old galaxy s2 or so...:) Iphone is all about marketing ;)

"using the search button won't get you killed"
[Nexus 4 Original Android Development] ranasrule:
is TouchControl supported ?
[Nexus 4 Original Android Development] nithin1992:
No, its not suppprted
[Nexus 4 Original Android Development] philidor:
Sorry for the OT ... Only one thing, iThings are not without hardware or software problems. They have defects and the software sometimes don't work... Its a urban legend the absolute perfection of iThings, and the iCare center are a proof of it (they have a good one). Even the simplicity of use is a legend so you need the specialist of apple store. The true is that you brought a smartphone for over 720€ that are not customizable, have an half working Bluetooth and some small objectionable defects such as the battery life that can not be improved by modifications.

N4 stock is more the enough for standard users. It works well. We are crazy for customizations!

Apple tell you that iThinks are simple to use, are without flaws... And you believe them? This is GOOD example of great marketing!

I don't NEED statosk kernel to have a good smartphone, it work without it. I LIKE to use it. And this is possible because its a open system where great people (stratosk is one of them) can improve a good system.

Sorry for OT, iThinks are not the best for "common" users, not for me or many other people I know that are out of xda world. They are good for someone and not so good for others.

Everything else is MARKETING !

Sorry stratosk for spamming your thread.

Now please can everyone return to the topic (N4 kernel)

Inviato dal mio GT-P3100 usando Tapatalk 4
[Nexus 4 Original Android Development] snak3ater:
The only thing i like about iphone is its ui smoothness..Other than that,it's just like a closed box.Once you get into it,you cannot get out & you are bound to do things that Apple allows you to do..
[Nexus 4 Original Android Development] Armin_van_buuren:
Awesome kernel!

1.5.3j is like a ton of this ........
[Nexus 4 Original Android Development] slaid480:
Android is Open source,every bugs that appear on the code has a quick fix since there are many contributors unlike close iOS source.

Apple lost latest battles against Google and they started to copy from open code since iOS7
[Nexus 4 Original Android Development] JamesInsights:
Actually I agree with the fact iPhones are very user friendly and are great for the average consumer. Here's the thing though, crazy price. Not only that, in the past I would have encouraged any average consumer to get an iPhone but not anymore. Android has evolved so much, after the gingerbread days. The interface and everything is so simple to use even for consumers ICS onwards.

Honestly, user friendliness is where the iPhone's benefits end. If you want to talk about build quality, please don't. In the past android devices might have been built lower quality than iPhone but look at devices now. Take the HTC One for example. Beautiful device with solid build quality. Even the manufacturing cost of a high end android phone which is the cost of an iPhone is significantly more.

After talking about the average consumer, let's talk about geeks or people who just want power,customisability or productivity on their phone.

Look at iPhone. Let's say you don't like the look or the way the keyboard looks. Too bad, you have to stick to it. Even jail breaking only changes the looks. On android, don't like the keyboard? Go to the play store, find a replacement and install it BAM done. Even the average consumer knows how to install an app. How about iphone? I don't think the average consumer even knows about jail breaking or bothers to learn how to do it. Same applies for the launcher or home screen of iPhones.
[Nexus 4 Original Android Development] DesmoDavid:
Works great! Thank you! ;)
[Nexus 4 Original Android Development] nithin1992:
I want to know how exactly touch wake works. When the screen times out, what state is the phone in before the touch wake timer expires? Also what is the difference or disadvantages of having touch control instead of touch wake?
[Nexus 4 Original Android Development] thracemerin:
It begins when the screen turns off due to inactivity, not when you turn it off using the power button or other method. Under this circumstance with touchwake enabled you can rewake the phone by touching the screen.
[Nexus 4 Original Android Development] twowheeler:
Stratosk, what is your opinion on having only two cores enabled when using your phone moderately? I have that now, but I'm doubting if spreading the load on 2 cores is more energy efficient then spreading it on 4(and maybe taking less time to do certain jobs). Have had no performance issues so far, and it may seem to stay a little bit cooler so far.

Also: your kernel uses the new features from the stock 4.3 kernel right? So supposedly better touch, and better colors.
[Nexus 4 Original Android Development] nithin1992:
That's something I already know.
[Nexus 4 Original Android Development] thracemerin:
Ok, more specifically the phone is awake between the screen going off and the timer expiring.

With touch control a 3rd party module is loaded by the kernel which uses IRQs to check for screen touch events when the device is in deep sleep, this allows you to wake the phone up from sleep regardless of how it was put into sleep mode in the first place, but because its keeping certain parts of the device awake to allow for checking of these events it uses more power during sleep than normal, there have also been reports that it causes the screen to become unresponsive or causes sleep of death on some devices.

So, advantages to touch control is that it works during deep sleep and allows you to wake up the device regardless of how it was put to sleep and at any time.

Disadvantages to touch control are that it can cause issues like sleep of death or unresposive touch screen, it's also a closed source module which requires the support of the touch control author and may require him to rebuild it for every kernel update made by stratosk.
[Nexus 4 Original Android Development] stratosk:
I think it's OK in most cases.

How much you could gain for a multiprocessing system? It depends on how many _concurrent_ processes run in your system.

In light to moderate usage 2 CPUs are fine in our system. Of course sometimes you can benefit from 4 CPUs (if more than 2 processes need a lot of CPU time concurrently).

Adding more CPUs to a system doesn't mean that it will make it always faster. Suppose we had 8 cores in N4. Would it be faster. Not at all. I can't imagine 8 heavy CPU demanding processes concurrently running in the phone. And even we had 8 processes, most probably the CPU would wait for other resources (storage or RAM).

Semaphore is based on the latest released code. So yes, it has the same (better) touch and same (I find them the same) colors.
[Nexus 4 Original Android Development] franciscofranco:
Wise words :)
[Nexus 4 Original Android Development] twowheeler:
Thanks for your answer! Will keep it on 2 cores for some time. It's enough most of the time. Did notice that the up threshold should be around the stock values (25) for being the smoothest.
[Nexus 4 Original Android Development] trillo69:
If it helps, I've been using semaphore with 2 cores only and it is smooth in most cases, even while gaming (beach buggy at medium graphics, temple run 2). The only thing I changed is the up_threshold (95>90) in governor settings, otherwise it stutters ocasionally (for me).

It uses less battery, but don't expect the double, as most battery drain in Nexus 4 comes from the screen and the signal strength mostly. While gaming it really makes a difference.
[Nexus 4 Original Android Development] toge64:
Are there some general tips towards trying to save battery apart from undervolting? Semaphore Manager has an overwhelming amount of options I don't really understand the meaning of, despite using this kernel since 1.0.

I understand I think that up threshold is for how fast the phone should cycle between the clock speeds(?) but is a higher up threshold better for saving battery? Sampling down factor?

I would be most grateful for some education :D
[Nexus 4 Original Android Development] stratosk:
Screen, CPU and 3G will mostly eat your battery.

So, you may

1) Reduce brightness (I hate doing this :) )

2) Less aggressive values in CPU governor and in hotplug driver.

3) Use 2G

About tunables in governors, you may start reading official kernel's documentation.

https://github.com/stratosk/kernel_msm/blob/jb-4.3/Documentation/cpu-freq/governors.txt

Few words about ondemand:

Every sampling_rate (default 20000usec = 0.02msec) governor calculates the load of each CPU. Then for each CPU:

it checks if the load is greater than up_threshold then increase freq to max.

If the load is less than up_threshold calculates the next frequency proportional to load.

For example: suppose the load is 50%. Calculated frequency will be 50/100 * 1512 = 756 MHz. There is no such frequency in N4 frequency table so cpufreq driver will select 810 MHz.

If sampling_down_factor is greater than 1 and the next frequency is the maximum one because load > up_threshold, the governor will recheck after sampling_down_factor * sampling_rate.

For example: suppose sampling_down_factor = 4 (default). This means that the cpufreq will remain in max frequency for 4 * 0.02ms = 0.08msec. So, for bettery battery reduce or set it to 1 (disabled)

If io_is_busy is enabled governor will calculate I/O time as busy time. This means that if, for example, the kernel reads from storage, governor will consider that the CPU is busy (even if it isn't).

The above are the standard tunables and the standard calculation algorithm found in official Linux kernel.

I added 3 more touch_xxxx to change governor's behaviour when user touch the screen.

When user touch the screen touch_load will appear to governor as a pseudo load. This means the even if governor calculates the CPU load to a value less than touch_load, finally the calculated load will be touch_load.

Touch_load_threshold is a value that helps to filter the CPUs that most probably are unrelated to touch processing.

The touch calculations will take place for touch_load_duration msecs after you touch the screen. After that period the governor will behave as standard ondemand.

For example: Support that you have the default values to touch tunables (75, 10, 1100). User touch the screen and the governor checks the load for each CPU:

CPU0: 5%

CPU1: 15%

CPU2: 3%

CPU3: 11%.

In standard ondemand, the above loads will push the CPU to these frequencies:

CPU0: 384MHz

CPU1: 384MHz

CPU2: 384MHz

CPU3: 384MHz

But with touch calculations will be:

CPU0: 5%

CPU1: 75% (because 15% is greater than touch_load_threshold = 10%)

CPU2: 3%

CPU3: 75% (because 11% is greater than touch load = 10%.

So the CPU will actually go to:

CPU0: 384MHz

CPU1: 1134MHz

CPU2: 384MHz

CPU3: 1134MHz

I hope the above help a little bit.
[Nexus 4 Original Android Development] Mercado_Negro:
Hi Stratosk,

Please take a look at the screenshot. Why does CPU 4 get the load instead of CPU 2? Just curious.
[Nexus 4 Original Android Development] lowrider262:
1.5.3 running smooth as butter hotplugged with 2 cores max 1 core min at 1350 mhz max. Best battery life ive gotten yet on 4.3 with any kernel. Great work stratosk:thumbup:
[Nexus 4 Original Android Development] sfrique:
Sorry, but what cpu app is this?

Thanks
[Nexus 4 Original Android Development] Mercado_Negro:
System Monitor

https://play.google.com/store/apps/details?id=com.cgollner.systemmonitor

It does much more. It's one of the best apps I've purchased, very useful. There's a lite version as well:

https://play.google.com/store/apps/details?id=com.cgollner.systemmonitor.lite

Give it a try, I'm sure you'll love all its features ;)
[Nexus 4 Original Android Development] sfrique:
Thanks, i have some others, but i am never satisfied lol

I want an app to tell me, how much time i had my 3g antena on and how long i was with 2g.. this kind of stuff.. better baterystats does not give me this!
[Nexus 4 Original Android Development] Mercado_Negro:
Unfortunately, System Monitor won't tell you this.
[Nexus 4 Original Android Development] stratosk:
It's just the algorithm that onlines/offlines CPUs with this symmetry.

For kernel see core as logical CPUs and they are exactly the same (except CPU0).

hotplug driver put online the first availabe offline CPU when there is load in the system.

And put offline the first available online CPU when the average load is less than up_threshold (Note: do not confuse this up_threshold with governor's up_threshold).
[Nexus 4 Original Android Development] gpvecchi:
Is there an app with GUI to calibrate displays gamma? Thanks...