yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 2] BluPix:
I'm not sure if it's snapshot M11, but on https://github.com/CyanogenMod/android/branches is branch stable/cm-11.0 . Maybe on CM is QA little better, but still there is lot's of problems in forums with CM11 nighties.

I know performance is something between stable and pure experimental, but i think it's better to start experiment with compilers and flags with something more stable. I used Gentoo Linux for years, experimented with CFGLAGs, LDFLAGs, used musl instead of glibc, even i once recompiled whole system using intel's ICC compiler but it's better to know this is unstable because i used too extreme optimizations and not because i used too new version of package from testing.
[Xiaomi Mi 2] Khaon:
Indeed you

are right. Just as you highlightned performance issues over stability. The last rom build was compiled with linaro 4.7.4 instead of 4.9.2 or 4.84 because the build is broken otherwise.I have been used to build with 4.9.2 this example illustrates your sayings. However default flags are outdated but I do not think justarchi are best ones

Off topic bust still interesting. Cm did announce they would release builds with linaro for stability issues....
[Xiaomi Mi 2] Khaon:
New builds online

Changelog

f2fs: synced with upstream revision

following commits were squashed

f2fs: remove pointless bit testing in f2fs_delete_entry()

f2fs: revisit inline_data to avoid data races and potential bugs

f2fs: fix possible data corruption in f2fs_write_begin()

f2fs: use current_sit_addr to replace the open code

f2fs: rename f2fs_set/clear_bit to f2fs_test_and_set/clear_bit

f2fs: set raw_super default to NULL to avoid compile warning

f2fs: introduce f2fs_change_bit to simplify the change bit logic

f2fs: remove the redundant function cond_clear_inode_flag

f2fs: remove the seems unneeded argument 'type' from __get_victim

f2fs: avoid returning uninitialized value to userspace from f2fs_trim_fs()

f2fs: declare f2fs_convert_inline_dir as a static function

f2fs: use kmap_atomic instead of kmap

f2fs: reuse make_empty_dir code for inline_dentry

f2fs: introduce f2fs_dentry_ptr structure for code clean-up

f2fs: should not truncate any inline_dentry

f2fs: reuse core function in f2fs_readdir for inline_dentry

f2fs: fix counting inline_data inode numbers

f2fs: add stat info for inline_dentry inodes

f2fs: avoid deadlock on init_inode_metadata

f2fs: fix to wait correct block type

f2fs: reuse find_in_block code for find_in_inline_dir

f2fs: reuse room_for_filename for inline dentry operation

f2fs: update f2fs documentation for inline dir support

f2fs: enable inline dir handling

f2fs: add key function to handle inline dir

f2fs: export dir operations for inline dir

f2fs: add a new mount option for inline dir

f2fs: add infra struct and helper for inline dir

f2fs: avoid infinite loop at cp_error

f2fs: avoid build warning

f2fs: fix to call f2fs_unlock_op

f2fs: avoid to allocate when inline_data was written

f2fs: use highmem for directory pages

f2fs: fix race conditon on truncation with inline_data

f2fs: should truncate any allocated block for inline_data write

f2fs: invalidate inmemory page

f2fs: do not make dirty any inmemory pages

cpufreq:intelliactive:tweaked tunnables

There is now two builds : one for regular usuers and another one for TDB users.

For True dual boot users : SYS 2 is not mounting correctly the userdata partition. Do not install this kernel on a sys2 partition

I will add a script that format userdata partition with f2fs and enable TDB .
[Xiaomi Mi 2] Khaon:
New kernel and rom online!

Kernel:

compiled with linaro's october build

Rom:

nightly of 27/10

I could boot on both of my system partitions, one is formated to f2fs so are cache and data.

The rom is shipped with my regular kernel, tdb users will have to flash the specific build.

Report please if you have any issues. TDB users should not longer face infinite boot on system 1.
[Xiaomi Mi 2] Beyaz66:
It must be something wrong with my config'. --'

Now it boots up correctly on sys0 and its right datas. It also try to load sys1 but no datas (seing this when optimizing dalvik cache) and no chance to finish the boot because it remains on bootanim'.

Another thing is that cwm logs shows "can't mount [...]/by-name/*" for both data and cache (among others) AND installation script prints "/cache is f2fs" + "/data is f2fs" but all my partitions are formated as ext4.

I'll be there tomorrow if you need something by my side.
[Xiaomi Mi 2] Khaon:
Bah sorry for the waiting and bugs so far. For the latest release I forgot to enable exec right for the sh script handling the mount of data partition.

Now TDB fully working is live :D, booting on my sys0 and sys1 partitions, one has f2fs the other ext4.

So you can go ahead!

For tdb users, don't mind the cache & data are f2fs message, it is just trying to mount firstly to ext4 then f2fs. It might be advised however to wipe manually dalvik cache

I have also added franco mako hotplug, it is not integrated yet in official build, is it normal idling two cores are always up?

I ll take a look to add a script enabling tdb on a f2fs data partition.
[Xiaomi Mi 2] paul89rulez:
No, as far I remember franco hotplug uses almost 1 core.. its not normal , but I will flash last build, and I will see with franco official apply if I can manage to change this
[Xiaomi Mi 2] Khaon:
I will send you that kernel what are you runninh on your partition
[Xiaomi Mi 2] paul89rulez:
I have only one partition. I m running your cm rom
[Xiaomi Mi 2] Khaon:
I meant TDB or not.
[Xiaomi Mi 2] paul89rulez:
Not Tbd.
[Xiaomi Mi 2] Khaon:
willl send that this afternoon.
[Xiaomi Mi 2] paul89rulez:
still waiting :)
[Xiaomi Mi 2] sh1n0da:
Two questions:

1. ROM work in dual boot?

2. Faux sound isn't available on play store.. I need to install it from another market or is there a workaround to control this feature?
[Xiaomi Mi 2] Beyaz66:
1 It works

2 Send dev an email and wait or you'll have to get it from another store or edit your build.prop.
[Xiaomi Mi 2] Khaon:
New builds online:

rom

compiled with ftree-vectorize extra flags

kernel

cpufreq: create a helper function to get CPU utilization. Picked from @stratosk

aries_defconfig updated

block: zen: fix a bug in add_request, should use rq_is_sync

Adjust zen comments

Some cleanups to zen I/O scheduler

block:zen:I/O scheduler adjustments, reduce fifo_batch to 1

Add Zen I/O scheduler. Similar to SIO, primarily based on no-op and deadline. Intended to be mostly FCFS. Simpler than SIO in many ways, one of them being write requests/read requests have mostly the same priority.

f2fs: updated to upstream branch

added the new mount option fastboot for f2fs partition

This commit add a new mount option : fastboot

As usual the rom is shipped with regular kernel, tdb users will have to flash tdb kernel
[Xiaomi Mi 2] Beyaz66:
Your kernel is better and better. Nobody told about battery. For me it's not incredibly battery friendly but I each full charge can give me an avarage of 3h of screen on timetime (mostly on 2g, wifi, surfingsurfing, calls, little use of gps) and ~16h total time.

I would be great to see how FIOPS change things. I hope Faux finishes he's intellimm before You stop developping this kernel.

And i'm still searching my lowest cpu freq voltages day by day. If you want to optimize moremore by default, You already told that here we all know how to do it, you can down by 100, 125mv all freq's.

Thanks for your efforts!

Thanks
[Xiaomi Mi 2] Khaon:
You can use greenify to sleep unwanted apps. I personally use on screen wake up lux for the luminosity adjustment

Somebody stated that he go more battery life with zen scheduler

Sent with my Xiaomi MI2s
[Xiaomi Mi 2] EraKlon:
i'm gonna receive the mi2s next week, but i don't think i'll use miui.....

so i choose this ROM, and i see that i need philz touch on cwm to partition in f2fs..

is there a special combination of cwm and philz touch?

if i use cwm for mi2s version 6.0.5.0 which version do i have to download??
[Xiaomi Mi 2] Beyaz66:
Which version of what?

If you want to use f2fs, you can check khaon's script in download link or do it through xperian's phil'z recovery here . Otherwise you can stay with cwm.

In all cases, think about repartitionning your device's data, sys0 and sys1 when you'll no more have need for TrueDualBoot. Have a look at this partitionning script or do it manually from here.

'Hope these will help you to make your way.
[Xiaomi Mi 2] EraKlon:
i mean the version of philz touch, i saw that there are variuos version of that.. If i'll flash cwm 6.0.5, wich version of philz do i have to flash?? no matter which?

And about repartionning thanks!!
[Xiaomi Mi 2] Beyaz66:
Recoveries have not dependencies between them. If you flash Phil'z cwm, it will replace existent CWM. Then if you change for TWRP, it will replace Phil'z cwm. You just need to know what you want: f2fs or not, tdb or not. The rest is "just" a design difference.

For ext4 only, supports TDB:

CWM by M1cha (m11kkaa)

Phil'z CWM by M1cha

For ext4/f2fs (should format manually or with a script), NO TDB

TWRP by Khaon

For ext4/f2fs (you can migrate from recovery), NO TDB

Phil'z by XperianPro
[Xiaomi Mi 2] EraKlon:
wiped everything, tried to install but:

after formatting /system with f2fs

symlink: some symlinks failed

E:Error in /storage/sdcard0/rom.zip

(Status 7)

E:Installation aborted

press any key to continue

how can i do?

i'm without rom now, i'll have to use miflash and a miflash rom?

maybe the true dual boot is active? How can i disable from Philz touch 6?
[Xiaomi Mi 2] Khaon:
I guess I am late, but this error is most likely because you were using a recovery without f2fs drivers. So the system partition was not mounted.

You can either format system back to ext4 or use a compatible recovery.
[Xiaomi Mi 2] EraKlon:
Sorry i didn't write i downloaded the rom again and worked! But noi i have problem with gapps, tried 3 versions and none worked... in fact i don't see any reference to gapps with this rom why?
[Xiaomi Mi 2] Khaon:
PA's packages are working : http://xdaforums.com/showthread.php?t=2397942
[Xiaomi Mi 2] EraKlon:
Since Saturday i've been using this rom and kernel, with data and cache formatted in f2fs and system in ext4, but like 3 or 4 time a day while i'm using the phone (whatsapp, playing etc) the screen freeze and even if i wait 10 minutes nothing happens and i have to take off the battery... Some suggestion??
[Xiaomi Mi 2] Beyaz66:
I'm note assuring you that it's because of these but:

+CPU voltages could be your culprit. Install a kernel management app support O-UVolting (TricksterMOD, FauxClock, PerformanceControle,...) or go directly to \sys\devices\system\cpu\cpufreq\vdd_levels and increase all by 50mV (+50 000) or 100mV (100 000).

+Also lock your min freq to 384Mhz and higher to 1512Mhz.

+Reset GPU max freq to 400Mhz if it's different.

++Do all these 3 steps one by one to directly find which one is causing you problem (if they do).

[MENTION=4577448]Khaon[/MENTION], if you have time, would you please compile your kernel with FIOPS cheduler + INTELLIMM governor [Screenshots]?? P Reiou also made some fixes on Intelliplug. I wish I knew how to do :(

Another thing not really disturbing but for curiosity: a soft rebooting take as much time as normal reboot on your kernel. You say it's because.. ? Is related to kexec?

Have a good day!
[Xiaomi Mi 2] EraKlon:
After i posted that reply not happened anymore, lol

but as soon as it freeze again i'll do what you said, thank you!
[Xiaomi Mi 2] Beyaz66:
Hope for you that it will don't come again.

OK, this one is my last request: Speaker Loudness & Amp Control:

https://github.com/faux123/mako/commit/0a8888fa80939df2e88240d19c874466dd3f0297

https://github.com/faux123/mako/commit/836151137e680316df852b1a7895682a4fe3cbda

I definitely can't have good sound in speaker and earphone at the same time. V4A doesn't work, DSPManager isn't good enough and only makes changes on speaker. +They both use too much battery time IMO.
[Xiaomi Mi 2] Khaon:
Unless I am mistaken we do have already latest intelli_plug (v3.8).

I have uploaded a new kernel build, here it is the changelog:

I will brunch a new cm11 build, will be most likely my latest before switching to cm12.
[Xiaomi Mi 2] Alecsandru90:
how about patching your kernel for android 5.0 ?
[Xiaomi Mi 2] Khaon:
Isn't android lollipop unstable ?
[Xiaomi Mi 2] Khaon:
It is a bit complicated actually, our device use es310 driver where's mako is using another.

However, with fauxsound's you can increase the spearker volume. You don't have V4A working?
[Xiaomi Mi 2] Alecsandru90:
nope , daily driver for me:)
[Xiaomi Mi 2] Khaon:
OK are you talking about cm12 or aosp
[Xiaomi Mi 2] Alecsandru90:
CyanogenMod12
[Xiaomi Mi 2] Beyaz66:
Oh my apologies! You're right. I've been TOO quickly reading a changelog about a kernel update when I was searching info's about intellimm on Paul's g+ profile. Sorry to not have checked.

Increasing via fauxsound doesn't completely suffice me because it causes some/too much distortions, especially on speaker. And I haven't retried v4a as it wasn't working on previous versions. BUT FORGET this please. This was a useless request. I have sound and it's already quite appreciable.

The most important thing on which you could enlighten me, is why I've never been able to mount system as rw,ro through some app's like file explorer (fx file explorer, solid explorer, root explorer) (even when they use their own busybox), terminal emulator, scripts.. But others -like TitaniumBackup- work. My question is rather is it possible for you to make the kernel using busybox (by only adding needed applets) at /xbin instead of copying it at /sbin at each boot? I've related this weeks ago, as it happens since first version of the kernel and was supposing it was mount applet problem or a mount conflict. And after readings, it seems that things come from there, if I'm not mistaking.

That aside, for now the last version seems absolutely like something very close to the perfection (for my needs and use=looong battery duration+smoothest-performance only when really needed and stability). I thing I'll use this one until I di-- my phone dies. :victory:
[Xiaomi Mi 2] Khaon:
It's ok xD.

Hm, could you check your SELinux state? Settings => About=> SELInux => Permissive/enforcing?

Now I can't remember if I have enabled or not SELinux by default for the rom I provide, if it is set to enforcing that is the reason of your problems. Install this app: it allows you to switch SEL from enforcing to permissive and vice-versa.

Since I have v4a and mounting system(with CM(root mode) and RootExplorer) working and SELinux set to permissive, I guess by default the CM rom follows Google's security policies and set enforcing by default.

Anyway, I'll remove all unused applets to make sure the one located at xbin are called since they have proper context definitions
[Xiaomi Mi 2] Khaon:
Off topic. Anyone could send me an invitation for the oneplus one? It's for a friend of mine. Thx
[Xiaomi Mi 2] Beyaz66:
Mine is permissive.

Sorry to tell this, I don't even tried your rom because I don't want to leave pac ? and don't feel the need for f2fs for now.

That would be cleaner.

So what should I look? Did I was wrong with Busybox/toolbox location?

---------- Post added at 23:41 ---------- Previous post was at 23:34 ----------

Did he thought to join invite lists in 1+'s forum? I remember that I had one this way after a dozen of days. Anyway, good luck!
[Xiaomi Mi 2] Khaon:
Alpha cm12

The kernel is on its way, I guess tomorrow.

I am uploading my first cm12 release.

99.99% of credits should goes to @m11kkaa for his work on porting cm12.

So far all is working BUT THE MICROPHONE

I have no idea at all what is fully working or not. I just have booted onto the rom. I have read there are some bugs yet with the microphone.

The rom has been compiled with linaro 4.8.4-20143110 and this android build

build compiled with neon-vfpv4 instaed of neon

O3 for clang and most part of the build, some fall back to O2 or Os for statbility or compilization issues.

Enabled fgcse-sm, fgcse-las and -fgcse-after-reload for more memory load/store optimizations

I have used @juliusssss twrp to install the rom

For now you cann't install gapps it seems

-----------

EDIT:

my kernel has been added as well, it uses an AnyKernel solution
[Xiaomi Mi 2] Alecsandru90:
all of your kernel features are ported to cm12's kernel?

Thank you for your work.
[Xiaomi Mi 2] Khaon:
It is the same kernel upgraded to mako's lollipop sources.
[Xiaomi Mi 2] m11kkaa:
U're very early because I didn't even upload everything yet.
[Xiaomi Mi 2] Khaon:
Ahah, I wanted to write for "his porting work in progress".

Whatever, wanted to give a try wit a brunch.
[Xiaomi Mi 2] m11kkaa:
Also pls note that I'm still rebasing which means u can't easily merge.
[Xiaomi Mi 2] Beyaz66:
Does anybody else can't grant rw access on /system partition? This is very annoying as it causes half of my apps/scripts not working.

Again.. This is not because of: selinux state, su permission.
[Xiaomi Mi 2] Khaon:
Rom?

On cm11 both root Explorer and the cm Explorer apps work at deleting and editing files located in the system partition
[Xiaomi Mi 2] Beyaz66:
TDB ROMs: sys0 CM11 (always clean install for these kinds of problems), sys1 PACman

It is also true for PAC and any other rom on both sys: native explorer and root explorer do the job. It's even possible to make other apps/scripts writting on system partition once we mounted it rw, then ro, through cm explorer or root explorer. Problem reappears when deleting these working apps or on reboot.

Things are that everything works without your kernel and installing new apps for doing these steps is not a clean solution.

I suppose that it's only a busybox/mount applet location problem or maybe it could comes from fstabs..? But I absolutely don't know what to do.

I've attached mount outputs right after boot with your kernel. Permissions are: system 755, sbin 750.
[Xiaomi Mi 2] Alecsandru90:
any plans for patching that with overclocking/fauxsound/inteliplug and other goodies?:)
[Xiaomi Mi 2] Khaon:
CM12 update

I tried to re-build with CAF latest sound librairies hoping it might fix the issue with the mic but no :(.

Well, I think I read some ppl haven't this issue??? I have just uplodaed a new build(19/12/2014à.

Changelog:

Rom:

nightly of the 19th december

build:clang:try Ofast flag in replacement of O3, might cause instability! Report if weird behaviour

powerHAL: make sure it doesn't overrides user's max freq when turning on the screen.

powerHAL: break early if current governor is not ondemand or interactive on screen interaction

Kernel:

cpufreq:fixed min/max frequencies and governor not restored with hotplugging

ext4 updated to 3.4.105

various 3.4.105 and upstream linux patches applied

fs:f2fs: sync with upstream linux 3.4 branch

lz4 updated to linux kernel upstream

few patches to enhance the kernel

Zip Package

Switch to AnyKernel2 solution: dump the current ramdisk and patch the fstab accordingly to your partition's file system

Added post-init script tweaking io,mm,sched,...
[Xiaomi Mi 2] Khaon:
CM11 update !

Kernel

switched t anykernel solution: should make this kernel universal on all CM's based ROM

One kernel for non and TDB devices(well it should, tdb users reports plz :D)

corrected frequencies issues due to hotplugging

updated with last patches of my lollipop branch(see last changelog above)
[Xiaomi Mi 2] T3sla:
Thanx again for your work man!! I'm kinda confused as to which kernel i should flash.I'm running pacrom-rc3, should i flash the kernel for pac or the update-anykernel2-aries-20-12?
[Xiaomi Mi 2] Khaon:
Any kernel should work for'you

Sent from my nexus 10
[Xiaomi Mi 2] luchofu:
Hi, Khaon. What about Mokee Rom? Can I use your kernel? And which one? Thank you.
[Xiaomi Mi 2] Beyaz66:
Mokee (and sMiui too) don't work. You'll only have a dark screen which you can make on/off, nothing more.
[Xiaomi Mi 2] Khaon:
The kernel base is totally different. MIUI uses qcom libraries for many things . mine use device mako ported for mi2.

Won't work unless the content of ramdisk of my kernel is adapted to boot.

Sent from my nexus 10
[Xiaomi Mi 2] Alecsandru90:
bluetooth audio issues in latest build , btw why did you caped system partition?

a2dp log

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 456770042, diff 00500672, val 10240 10240

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 457270653, diff 00500610, val 10240 10240

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 457771324, diff 00500672, val 10240 10240

W/ActivityManager( 563): getTasks: caller 10060 does not hold GET_TASKS; limiting output

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 458271935, diff 00500610, val 10240 10240

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 458772575, diff 00500641, val 10240 10240

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 459273216, diff 00500640, val 10240 10240

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 459773857, diff 00500641, val 10240 10240

E/audio_a2dp_hw( 213): ts_error_log: [a2dp_out_write] ts 460274498, diff 00500640, val 10240 10240

W/ActivityManager( 563): getTasks: caller 10060 does not hold GET_TASKS; limiting output
[Xiaomi Mi 2] Khaon:
Oops sorry forgot to answer.

Yeah, blue tooth library is coded like a crap and optimization flags made it unstable. It is already fixed in my android build. I'ill brunch a new cm12 build this afternoon.

Well I don't know why lollipop forces like that system size. Have you been using another lollipop rom without this issue?

----------------------------------------------

lollipop and kitkat kernels update!

KERNEL

compile with linaro 4.9.3-2014.12

build script: use anykernel2 solution

build script:fixed some errors now we are using anykernel

mounting script: squashed anykernel universal one

CPUFREQ:

cpufreq: interactive: prevents the frequency to directly raise above the hispeed_freq from a lower frequency.

cpufreq: interactive: don't skip waking up speedchange_task if target_freq > policy->cur

cpufreq:interactive:switch to touchboost driver interface

cpufreq:interactive:adjusted tunnables to my liking

drivers:

input: touchboost: re-organize the code properly. Only accept EV_ABS events when updating the input time variable

input: add a generic input notifier for boosting cpufreq from the governor.

block:

bfq: updated to v7r7
[Xiaomi Mi 2] Alecsandru90:
Well I don't know why lollipop forces like that system size. Have you been using another lollipop rom without this issue?

yes , M1cha's cm12 doesn't have this problem

and how about the mic? in your roms microphone isn't working at all

another question : there are some cm kernels that work on aosp roms , can you do that?
[Xiaomi Mi 2] Khaon:
So the AnyKernel version doesn't work on AOSP? Have you got any link so I might port it faster ?
[Xiaomi Mi 2] Alecsandru90:
black screen on aosp

how about the kernel upgrade? TAKE A LOOK HERE http://xdaforums.com/nexus-4/orig-development/kernel-ak-t2473454

do you have skills for doing that?
[Xiaomi Mi 2] T3sla:
Using latest kernel with pacrom, works great.Question : can we undervolt the gpu?

There is great improvement with cpu undervolt but it won't hurt if we can squeeze a bit more.
[Xiaomi Mi 2] Khaon:
Well GPU voltage is not that relevant but I can add in further releases.

---------------------

New ROM build online + kernel

changelog :

Rom:

imported Oneplus One optimized dalvik and bionic librairies( include many qcom patches)

kernel

40+ commits from v3.4.105 upstream

Download link has changed, we move to google drive

new repo