yashsingh1/xdaforums huggingface dataset:
[ZTE Grand X V970] superdragonpt:
KERNEL v1.1

Changelog v1.1 (April 24 2014)

Well this is an HUGE Update ...

Kernel Sources Updated from 3.4.0 -> 3.4.5 (common)

Updated kernel with varun.chitre15 ThunderZap 2.0 Kernel features:

Cortex A9 optimizations

Neon optimizations

Increased the kernel timer from 100==>300

Removed old SHA1 routines

Dynamic Filesync Control 2.0

Dynamic Management of Dirty page writeback

Undervolted complete chipset by 66.66mV[Milli-Volts]

Lock initial TCP window size to 64k (Improves network ping and output)

Faster NOATIME and NODIRATIME mounting flags

Disabled Gentle Fair Sleepers

Enabled ARCH_POWER

Asynchronous I/O latency to a solid-state disk greatly increased

Patches to prevent depleting Entropies

Frandom driver - Fast Kernel Number Generator

Reduced Android Logger size

Optimized AES and SHA1 routines

Lowered Log Buffer shift

Various EXT4 Filesystem patches from android_kernel_common

Plugged memory leaks to cpufreq driver from upstream

Optimizations to SLUB memory allocator

Decreased CPU transition latency

Removed all debugging shi**

Proportional Rate Reduction for TCP - Google

Optimized swahb32() byteswap helpers

Compiled vfp with neon

Tuned CFS parameters

Reduced vfs cache pressure size

Optimized VM dirty ratios

Optimizations to Android Low Memory Killer

Optimized CFQ scheduler

Updated kernel with bindassdost Unified BindassBoost Kernel IO schedulers and Governors:

Governors: Sakuractive ; Nightmare; Interactivex; Zzmoove; Hotplug; Lulzactiveq; SmartassH3; Hybrid; Ondemand; Userspace; Powersave; Pegasusq; Performance

IO Schedulers: Noop; Deadline; Cfq; Sio; Fifo; Fiops; Row; Vr; Zen; SioPlus

Updated kernel with Overclocking Feature - Thanks to bindassdost For MTK SmartOC and benoitm974 for his work on adding OC feature to an MTK device

Other Features :

(JB 4.2.2) Fixed Auto-Brightness, fully working now

(JB 4.2.2) Improved GPS

hrtimer: Introduce effective timer slack

mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race

raid5: delayed stripe fix

Optimized ARM RWSEM algorithm - Thanks to faux123

fs: switch do_fsync() to fget_light()

jbd2: optimize jbd2_journal

ext4: speed up truncate/unlink by not using bforget() unless needed

af_unix: speedup /proc/net/unix

binder.c Patch for (future) Android KitKat support

entropy tweaks

For Overclocking / IO Schedulers and Governors check FAQ on post #3

B.Regards
[ZTE Grand X V970] nadiren:
great work [MENTION=5238428]superdragonpt[/MENTION], thnx...
[ZTE Grand X V970] etijer:
Thanks for your efforts superdragonpt!

Regards.
[ZTE Grand X V970] rj2k:
Forever the best! The 'Mourinho' for kernels! :D
[ZTE Grand X V970] endsonic:
Bootlop..

Thanks for your efforts and hard work

Bootlop for my ZTE v970m with d00lar_lewa_3.2_V970 base 4.1.2 :eek:
[ZTE Grand X V970] superdragonpt:
Yes i've said no support for Themed Roms (Lewa / Miui)

They use an diff ramdisk.

The kernel should also work on Lewa, but you need to repack the kernel ramdisk.

The Kernels i provided, where repack with the Stock 4.1.1 and 4.2.2 ramdisks...

Regards
[ZTE Grand X V970] nadiren:
correct, with my rom your kernel works flawlessly [MENTION=5238428]superdragonpt[/MENTION]..

btw how to oc? i've installed no-frill cpu from market; all the new governors and io schedules are there but max. cpu freq is 1000 Hz still...
[ZTE Grand X V970] superdragonpt:
Yes i checked your rom, and it uses the stock 4.1.x Ramdisk ;)

Please check Reply #3

--> Download the attached app ( BBoostManager.apk)

1: Add BBoost Game Mode widget to homescreen

2: This app widget behave as toggle button to switch between stock and overclock

Don't open the BBoostManager app, What you will be using its his WIDGET.

Even on overclock the Max CPU would still show 1000MHz, like i said overclocking an Mediatek uses an different method. (PLL's Overclocking, instead of directing OC the CPU ...)

The overclock is about >10 % to >20%. (more or less . . .)

Regards ;)
[ZTE Grand X V970] akkenoth:
I've just flashed new 1.1 version and it's awesome - finally I've got a working camera and flashlight (I've broken them while flashing my failed custom kernels).

Auto brightness works better than stock too, just like advertised ;)

I'm not yet sure what works and what not (too soon to tell - I'll report later), but here are few small things I'd like to see in future release:

- low-pass filter on accelerometer (there's a lot of jitter, up to 0.3m/s2 while steadily laying on a table, however it's better than on stock kernel - 1m/s2)

- some fix for proximity sensor in-call - it doesn't turn screen on if call is active (it does when calling a number, but after the other person answers only the power button works). Maybe it's just too low polling rate and/or low-pass filter.

Also I'm having problem using GPS - sattelites show up only with mobile data on, and even then it's problematic to actually connect to them and get a fix. But this occured also on stock kernel.

Edit: That accelerometer thing might be because of bad driver - though it's mma8452q in ProjectConfig, all sensor tests show up bma222.
[ZTE Grand X V970] Conny:
confirm

I can also cofirm:

proximity sensor WAY better - it recognize ended phone call and removing head instantly so maybe it behaves differently to akkenoth's phone? I'm comparing it to MIUI last version / so stock ZTE kernel where it hangs a few seconds dimmed after call..

auto adjustment of brightness - it would be good to have some tweaking mechanism because what I can tell is a good value might be bad value for somebody else. Where I'm heading: to manually change the ratio where the phone will be setting the brightness values. Because still I can set it better manually than by an automatic function..
[ZTE Grand X V970] Conny:
Update:bt not working
[ZTE Grand X V970] akkenoth:
Few things:

- The phone is recognized as "bq Newman N1" in Windows 7, probably USB ID changed.

- Battery ran out quite quickly (like 70%->0 in 10h) with one sim, no mobile data and small screen on time. Though I probably had wifi on all that time (not connected), and it was all on SmartassH3 250-834MHz. I'll make a full charge and try to measure uptime one more time to verify that result.

- Vibrations are bit better than on stock, but IMHO they could be stronger (maybe some /proc/ file?)

- (feature request/suggestion): Do we have UHID drivers? I'd love to use BT keyboard. USB OTG would be awesome too...

About that proximity sensor... Mine seems to hang up from time to time. Sometimes sensor reading apps don't show any changes when I cover the phone with my hand (1cm all the time), sometimes the opposite - as I've already written, when I'm in-call proximity sensor almost never turn screen on until the other person ends the call.

Wifi, both SIMs, mobile data etc works, BT not tested yet for me. Maybe I'll do it during weekend.

Also I'll have to work on partition mod for your 4.2.2, but that's OT in this thread.

PS. Are you planning to merge sources with 3.4.x mainstream further than you've already did?
[ZTE Grand X V970] superdragonpt:
Yes its better :)

The jitter was way improved with this sources, i really dont see how to improve it even better ...

What JB version are you using ? Becouse these are two different kernel compilations (it's not JUST an ramdisk repack)

On JB4.2 i can't complain about that issue

Tested on both JB4.2 and 4.1.2 (MuseOS) GPS is working fine, be sure to make the necesary gps adjustements

The correct *ntp servers for your continent/country, download EPO, and test it again ;)

Accelerometer is working also just fine, i made about 800 km (400 + 400)on my easter vactions, always with the GPS on and accelerometer was recording the speed fine (well there was an diff of 5 - 8km) but the same thing happens with my inbuilt gps car unit...

Yes the Both kernel versions where repack with their stock ramdisks, so no MIUI / themed rom support.

AFAIK it's just an question of re-packing the JB4.1 kernel with MIUI's ramdisk (use the kitchen, it's the faster way)

I didnt do it, becouse its time consuming to have to repack the JB4.1 kernel version with every Themed rom radisks (MIUI / Lewa/ etc, etc)

[/quote]

I have to agree with you, what can be an good value for me, may not be for you....

If someone doesnt like the auto-brigh. values, just use the manual one's, i just dont see how to enable an custom matrix (i would be forced to made an app for that ...)

Tested BT on JB 4.2 and JB 4.1.2(MUseOS)

File transfering - OK (on both JB version)

BT Headset on JB4.1 - Only works with my SonyEricsson BT headset , My Nokia doesnt work

BT headset on JB 4.2 - Both headsets are working

Yes its an minor thing, should be fixed in future versions (it's not an priority for now)

The Battery thing: I've had a lot of feedback concerning this (on FB foruns; my device FB forum is over 4000 members)

The thing is:

Concerning battery you should re-calibrate your battery on every rom change... But with new kernel the battery values can really messed up sometimes.

What i did (and other guys) the best way is really just let it fully discharge and charge some times, the battery values will re-calibrate by itselfs

Im not gonna mess more with vibrations configs and drivers, last time i did couple weeks ago, my phone went really crazy. lol

And there we go ;) I was waiting for someone to mention this ;)

This is my priority for now, adding OTG feature to our phone

The GPIO its an mess and an headache, and i already "wasted" a lot of time on this.

The best i did until now, was with an OTG Cable WITH external Power Supply, seems our device just lack the necessary power on usb (it could be just an question of configs ... lets see), i was able to see an connection on my 16 GB usb stick (fat32), but could't fully connect....

Lets see ;)

What JB version JB 4.1 i assume?

Yeap

Its OT, but Bruno's JB4.1 Mod works on JB4.2, e even added the same script to my JB4.2 ...

AFAIK sources where updated from 3.4.0 stock Mediatek Kernel to 3.4.5 (to be even moire ocurrate - 3.4.62 )

Thanks for your feedbacks guys.

B.Regards
[ZTE Grand X V970] superdragonpt:
I forgot to add to the v1.1 changelog, The Display Colours are now better (more vivid colours)

If you are on JB 4.1.x Test your Camera :)

Regards
[ZTE Grand X V970] Conny:
BT tested on your rom 4.2.2

I am not able to turn it on.. Advice?
[ZTE Grand X V970] superdragonpt:
I have no idea , its working fine here...

Did you made an fresh ROM install, and then flash my kernel?

Regards
[ZTE Grand X V970] rj2k:
Working OK here...
[ZTE Grand X V970] superdragonpt:
Thanks for the feedback.

Either his BT chip its faulty, or probably just an faulty ROM+kernel install

Regards
[ZTE Grand X V970] Conny:
Flashed kernel again and working..

Thanks for help!

Why it didn't work don't know..
[ZTE Grand X V970] Conny:
battery

I don't know if it is related to the KERNEL issue, but it takes hours to load battery.

From 10 AM to 1 PM I have 39% from 4%.

Charging through USB from MAC..

If the phone is switched off, it charges quite fast in my car / USB charger 0.5A. But when it is ON - terrible..

?
[ZTE Grand X V970] akkenoth:
There is a #define in accelerometer driver source file that applies low-pass filter to the raw data from device. Maybe we could mess with it a bit?

https://github.com/dragonpt/ZTE_v97...celerometer/mma8452q_auto/mma8452q_cust_acc.c (actual driver just reads value from that file)

I'm using your 4.2.x kernel on your 4.2.2 rom (both in latest versions). EPO was failing to download (mtk ftp :/), so I've did that manually and... nothing changed.

Btw 4.2.2 lacks EPO/AGPS/etc options in location settings, they're only available through Engineer Mode.

I did that in recovery (though AFAIK it doesn't change anything since Android 4.0). As for now it's still 85% after 18h :)

Though if wifi is on battery discharges quite quickly. Maybe you've increased wifi tx power by accident? :D

That's why I mentioned some /proc/ file - current value is OK for you but I barely feel if someone calls me so I'd increase it.

I had my phone repartitioned to 2.5GB data and no internal, after installing 4.2 it repartitioned back to stock...

What I've meant is that you've already did the great and hard work of updating sources from 3.4.0 to 3.4.5. But do you plan on updating it more?
[ZTE Grand X V970] superdragonpt:
I will make some tests on there ...

EPO is failing to download (ftp/http) even on my wiko darkmoon, idk, maybe MTK stoped EPO ...

That's why i've added MTK Menu to settings (and you can also acess it in GravityBox)

Wiping batterystats on recovery doesn't do nothing, was just PLACEBO effec, thats why Kush removed that option from CWM source.

MY Carliv CWM Port, doesn't have that option since its based on cwm 6.0.4.4

Thread here: http://xdaforums.com/showthread.php?p=46509330#post46509330

About wifi : Yes i noticed that it discharges a bit more than on stock's kernel, should be something to improved on future versions...

Well current sources are at 3.4.62 (~3.4.5)

I've tried to upstream even more, but no can do, there's an tone of things to fix (remember, MTK Stock kernel uses base 3.4.0 with some google commits on it) But that's something i will try to add (at least upstreaming to 3.4.8x)

Regards
[ZTE Grand X V970] nadiren:
the problem is on the mtk's side, [MENTION=5238428]superdragonpt[/MENTION]; the md5 files don't mismatch so epo filse can't be downloaded...

one can easily download files manually or better use "mt gps epo fix" from play store.. this program automatically downloads epo files from mtk's server, copies into the system and changes their properties... i strongly recommend to use it..

here is the store link: https://play.google.com/store/apps/details?id=com.chxdev.mtgps

btw for me the kernel version under settings/about still shows 3.4.0 not 3.4.5 i'm pretty sure i've applied your kernel...
[ZTE Grand X V970] tatankam@hotmail.com:
Unable to download kernel

hallo.I would like to try kernel.

I am not able to download 1.1 version.

Link died?

Thanks a lot.
[ZTE Grand X V970] superdragonpt:
Thanks, its good to know, i really dont use EPO, for me "Faster GPS" and "GPS Status" its all i need.

First one for config your continent/country .*NTP files, the last one is good for getting an faster lock + download extra gps data (its something like EPO) ...

So your still using v1.0

Version v1.1 will show "3.4.5_DragonPT_1.1" (kernel version + coder + local kernel version)

All downloads are under the "DOWNLOAD" Tab, if you are on mobile some browsers don't show TABS, the xda app doesnt show also.

Direct links for v1.1 :

JB 4.1

http://xdaforums.com/devdb/project/dl/?id=5716

JB 4.2

http://xdaforums.com/devdb/project/dl/?id=5717

Regards
[ZTE Grand X V970] tatankam@hotmail.com:
Hallo yes I see download but when I tick "Direct Download" it doesn't download.
[ZTE Grand X V970] superdragonpt:
Just try with another browser (or use your PC browser ) and you may need to disabled ad bloquers ( xda devdb haves some issues with ad bloquers)

Regards
[ZTE Grand X V970] pass25:
hi superdragonpt

i have tried the kernel on ROM 4.1.2 and it works fine!

the only thing that dont work after install the kernel its the led notifications(call, sms, email, etc...), the green and red led wen its conected to charge works.

it´s any way you can fix it?

thanks
[ZTE Grand X V970] gigel87:
Hi , maybe in the future can u include script for fast charging? Tnx .
[ZTE Grand X V970] superdragonpt:
Hi

Thanks for the feedback, that bug as already mention on the "kernel bugs" section

On JB4.2.2 Leds works fine, this issue is only related to JB 4.1.x Roms, should be fixed on future releases.

Well with the new kernel the phone charges a bit faster (if you have the time, you can check it ... ) I can increase the current voltage (MAh) when the phone its charging, but i found that an bit dangerous (battery can overheat ...)

Regards
[ZTE Grand X V970] superdragonpt:
Update:

Currently testing doubletap2wake (dt2w) feature ;)

This should be added on the next release.

I also did some improvements regarding OTG (still needs a bit more work)

Regards
[ZTE Grand X V970] nadiren:
don't forget notification led problem also :)
[ZTE Grand X V970] mahuca:
Probado Kernel Jb4.2 (stable1.0) en bq aquaris 4.5

Superdragonpt Hello, as the title says I tried the kernel on a bq aquaris 4.5 and boot seems fine until I get intruducir password screen dual screen in the bootanimacion could also do you solve? grateful if you answer.

Sorry bad English
[ZTE Grand X V970] superdragonpt:
I've found what was causing the LED issues on JB 4.1 (it works on JB4.2)

I managed to get the LED working on JB 4.1 ( tested on MuseOS ROM JB 4.1.2) ;)

I will need more time to fully fix that issue on jb4.1 ROMs, since this "half - fix" broke other things...

I'm still a bit sick, so I don't have time and health right now...

This kernel is for the zte v970 / v970M / smart a18

Its device dependent , so its normal that it doesn't work on your BQ Aquaris 4.5

Regards
[ZTE Grand X V970] nadiren:
get well soon.. no hustle there...
[ZTE Grand X V970] vinamilk:
I wonder if anyone tested this kernel (for 4.1JB) worked on Lewa Rom ? Mine hang up at boot animations Lewa OS5.
[ZTE Grand X V970] lingfude:
Use Windows Unpack/Repack Tool.

1. Extract boot.img from "KERNEL_JB4.1_ZTE_v970._v1.1.zip" to your Windows Unpack/Repack Tool

2. Drag and Drop boot.img to "MTK_unpack.bat" (this will create a new folder named "boot")

3. Rename previous folder "boot" to "boot_3.4.5"

4. Repeat step 1 and 2 for Lewa or Miui boot.img (this will create a new folder named "boot")

5. Rename previous folder "boot" to "boot_lewa" or "boot_miui"

6. Copy "kernel" and "kernel_header" files from "boot_3.4.5" folder to folder "boot_lewa" or "boot_miui"

7. Drag and Drop folder "boot_lewa" or "boot_miui" to "MTK_pack.bat" (this will create a new file named "new_image.img")

8. Rename "new_image.img" to "boot.img" and add it to your flashable zip.

9. Flash and test.

[MENTION=5238428]superdragonpt[/MENTION]

You don't mind that I put these instructions here do you?
[ZTE Grand X V970] vinamilk:
Thanks for your answer !

Can you share this working file for Lewa Rom ?

Each time after flashing Lewa I have to re-flash CWM recovery again becoz this Rom will automatically flash full Chinese recovery at last step.
[ZTE Grand X V970] Simonkjam:
For super and ling:

Since we don't have now a b92m phone (2 test phone broken...), if i send you a working kernel can you mod it? Thanks in advance, really great jobs

N.b. No probs for the bug of notification led, b92m don't have any led ;)
[ZTE Grand X V970] superdragonpt:
Kernel works on ALL ROMs, i only said no support for themed ROMs, becouse i repack with The stock ramdisks of 4.1 and 4.2

I also said (check OP) its only an matter of repacking with The right ramdisks, and that you can use The Android kitchen to repack your kernel...

If you use Linux, then you can use Bruno's MT65xx-pl pack /repack scripts (this is what i use)

Of course i dont mind :)

i said on OP, it was just an matter of repacking.

I just didnt want to make 6 diffs jb4.1.x kernel versions.zip for everytime i release a new version.

If there's enough people using Miui por Lewa i'll do it ;)

If all goes well, next week i will release a Lewa goodie for The community ;)

B92m ? Sorry but whats that?

Regards
[ZTE Grand X V970] vinamilk:
I believe lots of people here are using Lewa Rom. IMO it's smooth with many modded system parts which is useful for daily use.
[ZTE Grand X V970] Simonkjam:
Star B92M, another mtk6577 phone :) Can you mod the kernel with the features that you have done for us? I can't make any mods now, 2 phones broken :(
[ZTE Grand X V970] superdragonpt:
OK then.

Starting next v1.2 release i will add support for The MIUI v4 (4.1) and LeWa 5.x ( 4.1)

Just becouse that device owns an MT6577, it doesnt mean The features would work on that phone.

Also:

- I need The device in question to work on The kernel.

- And i need that device kernel source

The only thing in common is JUST The SoC (MT6577) ALL The rest is different.

If i had those 2 things, i could work on an kernel for that device....

Regards
[ZTE Grand X V970] Simonkjam:
The second thing is possible, the first not :( If you want make a chance you can download a jb rom in own thread in sign, inside there is the kernel. I can tell you that the B92M has the same hw of Jiayu G3 (2013 models same has G3N, 6628 chipset in this case)

In iwt next rom i've modded the kernel to make bootable JB2, but all the other mods that you have done is an hard work now for me (no much time my friend) plus i haven't a phone, i'm waiting for a new screen replacement.

If you can't isn't a problem of course, i understand bro. Btw really great job, have a nice w.e. ;)
[ZTE Grand X V970] DerTeufel1980:
He asked for the kernel source, not a compiled binary! No one can make those changes without the kernel source...

Gesendet von meinem T0LTE mit Tapatalk 2
[ZTE Grand X V970] Majkl007:
Dear All,

can you please help me with Android 4.2 bug with purple/pink camera? I'm testing HiKeOS v 1,0 and it is great. Translation is not 100% but it really doesn't matter.

But the terrible camera is bad. Do you know how to fix it? New kernel is installed, but it hasn't solve the problem.

Thanks for response.
[ZTE Grand X V970] lingfude:
Hi.

Does anyone note some automatic floating volume (normal volume then decreases then normal again) when hearing music on loudspeaker with kernel 3.4.5?
[ZTE Grand X V970] superdragonpt:
^^THIS

(Thanks for answering)

Camera Pinkish on 4.2 is still unsolved, i-ve managed to re-intruduced the new camera configs/sensors on the 4.2 kernel, seems it didnt do anything ...

Maybe it requires more work, or simply our camera sensors (not the camera itself) are not compatible with the 4.2 AMOI release ...

No problems on our ZTE, must be something with your device (i assume you mean on your Newman N1?)

Regards
[ZTE Grand X V970] lingfude:
Yes, the problem is on my Newman N1 and sorry to ask this in your ZTE thread.
[ZTE Grand X V970] superdragonpt:
No problem, was just answering your question .... ;)

ON TOPIC:

Changelog v1.2 (May 12 2014)

Fixed USB Storage Vendor ID

New Battery Driver Configs

Notification LEDs FIX for JB4.1.x

Now also supporting MIUI v4 and LeWa v5 ROMs (JB4.1.x)
[ZTE Grand X V970] vinamilk:
Thanks sDragon so much for supporting Lewa Rom !

---------- Post added at 01:18 PM ---------- Previous post was at 01:10 PM ----------

Flashed and it booted ok. So happy with lots of bug fix for this version !
[ZTE Grand X V970] superdragonpt:
;)

Glad you like it.

Concerning LeWa Os, i will release an new improved LeWa 5.1 ROM this week :)

Regards
[ZTE Grand X V970] nadiren:
works like a charm, tried with my rom; thnx for your efforts [MENTION=5238428]superdragonpt[/MENTION] !!...
[ZTE Grand X V970] vinamilk:
Hi superdragon and nadiren,

I've flashed and using kernel 1. for 2 days and see it make phone a bit laggy than before. Use with Lewa 5 and Nadiren's port rom are same result.

Battery percentage display is much improved but not perfect, sometime it still freezed for a while then droped for 8-10% and not linear.
[ZTE Grand X V970] superdragonpt:
Some inicial "lag" is to be expected , this is do to dalvik.

After some time, and reboots, the phone will reach its best state :)

Concerning battery, you should re-calibrate your battery after a new kernel release.

Like said, let it fully discharge, and fully charge. After some cicles (of charge / discharge) , your battery will be calibrated.

Regards, thanks for the feedback.

PS: its nice to see, that the news arrived on the Chinese official LeWa forums ;)

;)
[ZTE Grand X V970] vinamilk:
After 1 week testing kernel 1.2 I confirm battery percentage display bug is not fixed after tried many ways (calibration + wipe batt status), it's still freezed then drop fast and not linear from full to empty capacity.

I don't know the reason but after flashing phone becomes slow down respond speed during of use. Flash back to kernel 3.4 that included in Rom phone is much faster.

Tried on Lewa, Dark Angel and others JB 4.1.