yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] thichthat:
I'm using 320Mhz for GPU and 918MHz for CPU. It works fine and the battery life is good.

Btw, I made patches for using f2fs. The file system type was changed to "auto". You can test it and report to me. Just copy correct patch00.cpio and patch1.cpio to /system/kernel:

http://www.mediafire.com/download/5gp8qus1afkeszd/f2fs_mount.zip
[Sony Xperia M] ndrancs:
Thanks for quick reply.
[Sony Xperia M] dim^n:
how about holding power button for 8 seconds? Great thing for having fun with experiments.

no. dt2w works good on aicp, but i have to tap three times cause of unstoppable deep sleep mode. Thats not a problem, problem with random taps during voice call. It often ends call, that makes me crazy.
[Sony Xperia M] itsnie:
Stuck at sony logo !

Sent from my waifu
[Sony Xperia M] manal.21sinha:
Anyone using it on dual-sim and CM12.1 nightly? Any problems wrt phone calls or data?
[Sony Xperia M] Agu_Ra:
Yes, the problem during call is present. I already got used to hold the phone that way, in that I don't touch the screen. You can also lock the screen manually. And sometimes phone doesn't wake up, and even holding power (BTW, my power button works TOO badly, need to fix it, but I'm a little bit lazy) for 8 sec doesn't help (and where is goddamn watchdog?). It was only 2 times for me.

BTW, [MENTION=4929675]thichthat[/MENTION], now our TWRP is official, so it is moved to a new thread, the link is in my signature.
[Sony Xperia M] ndrancs:
Yes holding power button for 8 seconds is doesn't help, like I said before, we must take out the battery. Or the phone sleep forever.

I don't know why if I only set gpu to 320, cpu to 918 and set dt2w full/half screen. Then put it to deep sleep, the phone can't be wake up. But if dt2w is set to off/0 it's doesn't happen.

I also experienced the problem during call too.

So I make some profile in app kernel adiutor. Like in screen shot.

This settings will not make our phone in deep sleep forever.

Normal:

Cpu 1026

Gpu 400

Cpu Governor on-demand

Wake lock full screen

Other set as default from kernel

Save the battery:

Cpu 918

Gpu 320

Cpu Governor on-demand

Wake lock off/0

Other set as default

I hope this can help to make kernel better.
[Sony Xperia M] ndrancs:
I don't test it yet, because it my daily driver phone. Btw as I know cm 12.1 and some rom, that use the system.new.dat is formatted with ext4. I don't know how to use f2fs properly on /system because of this. It's easy for /data or /cache
[Sony Xperia M] itsnie:
Yes me too !

My nicki is my daily driver phone !

And I only tested f2fs to /data !

Edit: to use f2fs to /system, i have some guide from other thread, first backup /system in twrp then change default formatted in twrp to "rm -rf" then change file system of /system to f2fs, at last restore /system backup !

Sent from my waifu
[Sony Xperia M] ndrancs:
Okay

Thanks for the tips. I hope can test that soon.
[Sony Xperia M] mszain:
Thx m8 v3.9 fixed the forever deepsleep problem for me, and i hope you can add FIOPS io scheduler
[Sony Xperia M] thichthat:
I will update twrp and try f2fs later. Btw, if you have any problem with cpu, gpu or wakelocks, that's not because of my source. I built this kernel using my PC, not a server. That's why someone will have problem with it. The problem can be fixed when I rebuild it.

Dt2w sometimes cause you cpu stop. I still don't have any idea to fix it.
[Sony Xperia M] Agu_Ra:
Something went wrong.
[Sony Xperia M] thichthat:
OK I'm fixing it.
[Sony Xperia M] dim^n:
I found that NUI app again dont save its settings. When I go to overclock, tap to enable it, return to main screen, and then go to oc again, checkbox is emty! If dont do it, oc works after boot. The same with "enable vibrate" for dt2w. Other settings seems to be working.
[Sony Xperia M] thichthat:
Do you have same problem in previous versions? I'm having problem with "su" command and I really need a developer to help me.
[Sony Xperia M] Agu_Ra:
There was something like "How to su" in SuperSU forum.

UPD: here it is.
[Sony Xperia M] dim^n:
OC and vibration for dt2w that I noticed wasnt included in 3.8 r1 and earlier (I think its new), that I previously installed.

Oh, dont mind, if I dont enter settings, its all ok. Half-screen dt2w works fine, no bugs.
[Sony Xperia M] thichthat:
Thanks for your answer, but this guide is not clear enough for me. Luckily, I found a simple solution on stackoverflow. That problem should be fixed in next version.
[Sony Xperia M] thichthat:
V4.0 is now available on play store!
[Sony Xperia M] dim^n:
Thanks! So can I disable any entropy generator with buitn-in frandom?
[Sony Xperia M] thichthat:
Sorry I can't understand your question.

AFAIK, frandom doesn't have turnable parameters. The entropy value can be adjust inside /proc/sys/random.
[Sony Xperia M] dim^n:
I mean if I have any kernel tweaker with option to control entropy, it doesnt matter anymore?

Btw, call vol is very low, I cant hear anything. And half-screen dt2w dont avoid accidental touches in upper half of screen during call. But that half not recognises any touches in sleep mode.
[Sony Xperia M] thichthat:
1. Yes, it will still works. You can still use other entropy controller, it will not affect much (rngd also doesn't give me many profits).

2. I didn't change anything related to sound. Maybe something is broken in your ROM and you should try re-flashing it.

3. I couldn't fix dt2w in call yet, bt I'll try. Did you try using power button to lock your screen first?

Btw, does the settings menu work correctly? If you have any problem with the app, please tell me.
[Sony Xperia M] mszain:
Wow i found something here if i set cpu min freq to 384mhz will make my phone go to infinity deep sleep mode if i left it. But if i set higher than that the problem dont occur on dt2w enabled
[Sony Xperia M] ndrancs:
Yes I already posted this bug, currently not fixed yet
[Sony Xperia M] dim^n:
1. thanks, thats good! Smart works much smoother!

2. but you've fixed headset vol, what was that fix? Thats not rom, thats snd_soc_msm_sitar file with no sound glitches, increased vol etc. I dont want to change it, so I try to find solution to fix call volume. Btw when I enable speakerphone the volume is enough loud. And in recordings it good even through call speaker.

3. I use power button to end call...

4. yes, finally it works as it should. Thanks!

try to overvolt a little that freq. And maybe UV is your problem. I dont have anything similar on AICP 4.4.4 with min possible voltage.
[Sony Xperia M] thichthat:
I'm not keeping this file. I made the file by coping an older version of it from CM's source, then adjust the DEC1 volume in "headset" to 80. I can't remember the exact way I did, but I'll share the file I'm using. (I don't have a conputer here so I'll send you later)
[Sony Xperia M] thichthat:
[MENTION=5988636]dim^n[/MENTION] My snd_soc_msm_Sitar is here: http://www.mediafire.com/download/a28cwnfdnckw70m/snd_soc_msm_Sitar+%281%29

Btw, I've just uploaded V4.1. Download will be available in hours. Here's the change log:
[Sony Xperia M] haresh311999:
Dude It's a great news.....It will be very useful for us!!!

Thanks for your hardwork!!
[Sony Xperia M] manal.21sinha:
DT2W! Awesome!

Great job, dev! Eagerly waiting for 2.0 :D
[Sony Xperia M] thichthat:
I'm having problem porting intelli_plug.c to my kernel. So I need developers to guide me how to solve it
[Sony Xperia M] itsnie:
I think [MENTION=4701561]icoolguy1995[/MENTION] can help you .. :D
[Sony Xperia M] thichthat:
I have just uploaded the newer version: Nui_kernel_1.1.zip - 11.87 MB

Unfortunately, I don't have much time for developing now, because I'm having some semester final exams next week. So the kernel will not be updated to 2.0 earlier. Sorry about that :(

To [MENTION=4701561]icoolguy1995[/MENTION] : I really need your help. I'm just leaning writing codes on c. So I need source codes and your guide. If you have source code for intelliplug feature for msm8x27, please share with me. Thanks!
[Sony Xperia M] itsnie:
no problem dude i'll always happy with dev are support my device :D

Bdw does v1.1 support cm12.1 beta 1 and support d2w?
[Sony Xperia M] manal.21sinha:
Yeah I just checked your kernel and it doesn't work for cm12.1 beta1 so does v1.1 work for that?
[Sony Xperia M] itsnie:
No, v1.1 not work with cm12.1 ..

[MENTION=4929675]thichthat[/MENTION]

Dude, some time dt2wake not work for me, so can you give me solution?
[Sony Xperia M] thichthat:
dt2w not works sometimes because the processors with go into deep sleep after the screen have been turned off. I added a wake lock to my dt2w code but it doesn't work. However, you can use a wake lock in android to prevent your phone from deep sleep. I suggest using the "take wakelock" function in terminal emulation app. You also can try adding pm.sleep_mode=4 to your build.prop, but the battery life will be affect.
[Sony Xperia M] Farsiris:
Does it really Improve battery ? Using Nightly cm12 .
[Sony Xperia M] icoolguy1995:
So what help do you need in intelli-plug? And yes doubletap2wake is very unstable in other mobiles as well i will send you a commit for a reference. And do remember intelli-plug causes vermagic mismatch of the modules so flash module with each version.

Edit: Can anybody check to see if double tap2wakeup works when phone is in deep sleep and you connect it to charger?
[Sony Xperia M] thichthat:
Thanks for your help. I've found a new kernel source which have many function including intelli plug. You can see it here: https://github.com/NoelMacwan/SXDNickiLolly/

They're working on the dt2w and s2w on their kernel, too. I've modified my dt2w source code a lot but it still very unstable. I attached my dt2w source code, I hope you can help me improve it.

I'll use their source code to build the new version of my kernel. I'm also working on my new MultiBoot function (not MultiROM). So you can have a lot of new feature in the 2.0 version.

Btw, I'm having more and more tests at my school. So I'm very busy now. The newer version will be release late. Sorry about that :(

edit: I've just review my code. I stupidly put wake_lock and wake_unlock in wrong place, so that the included wake lock didn't work
[Sony Xperia M] icoolguy1995:
Yuh that kernel is good for taking some commits. I was about to say that you didn't put wake_lock at correct place, and yes i can definitely help. So tell me does DT2W works when phone is in deep sleep and then connected to charger? and about stability what instability you are noticing?
[Sony Xperia M] itsnie:
Phone can't not wake in deep sleep and some time my screen can't turn on with any method, so i must unplug my battery ..

I not have tested if phone connect to charger [MENTION=4701561]icoolguy1995[/MENTION] , because i'm on stock now ..
[Sony Xperia M] thichthat:
It not work when I connect my phone to charger. I also have the same problem with [MENTION=5788126]itsnie[/MENTION]
[Sony Xperia M] Ydraulikos:
I compiled the stock 12.1 kernel in order to add some features too but i cant make it boot. zImage is exactly the same size, repacked with the ramdisk from stock 12.1 but the sony logo does not appear. I used gcc 4.6 toolchain. Any thoughts?
[Sony Xperia M] thichthat:
That's because of your repack bootimg tool. The mkbootimg will not make a correct boot.img for xm. So I used the mkbootimg_static which was extracted from Archidroid's zip. If you want, I'll send you my repack tool with shell scripts
[Sony Xperia M] thichthat:
V2.0 is out!

V2.0

Use SXD's source code (from here: https://github.com/NoelMacwan/SXDNickiLolly/ )

GCC 4.8

Overclock to 1.7GHz

Fixed dt2w (EXPERIMENTAL, MAY CAUSE BATTERY DRAIN)

Add intelli_plug, fsync, fstrim,...

intelli_plug tweak

Add support for CM12.1

Download:

V2.0

kernel: http://www.mediafire.com/download/jfk4vyvxpkvxhxx/Nui_kernel_2.0.zip

CM12.1 patch: http://www.mediafire.com/download/vudis9iq0h6qd7y/CM12.1_patch.zip (no signal issue)
[Sony Xperia M] itsnie:
Does v2.0 support cm11 like old version?
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

Dt2w not working while connected to charging..

And also while not connected
[Sony Xperia M] itsnie:
Man you're awesome !

Keep it rock :D

Sent from my waifu
[Sony Xperia M] Agu_Ra:
You are f***ing wizard. Touchscreen issue during call is really fixed.
[Sony Xperia M] itsnie:
Btw [MENTION=4929675]thichthat[/MENTION], can you port some cools feature from elementalx kernel ..

Whats feature i mean ?

That's disable or enable wake option by timer or power button and ability to control percore frequencies ..

This is the source code!

https://github.com/flar2/ElementalX-N5

Sent from my waifu
[Sony Xperia M] Agu_Ra:
Noticed one bug. Vibration for dt2w now doesn't work. At least, for me.

---------- Post added at 18:16 ---------- Previous post was at 18:14 ----------

The main problem is qcomm's mpdecision and it is proprietary for our model. But maybe it is possible to resolve this, I'm not sure.
[Sony Xperia M] itsnie:
It works for me!

What about other hotplug ?

Does the problem will still exist ?

Sent from my waifu
[Sony Xperia M] thichthat:
It works for me. Maybe I should look at the code again.

Edit: you can try type this in terminal:

echo 1 > /sys/android_touch/doubletap2wake_vib

Also enable it on boot by typing:

mount -o rw,remount /system

echo 1 > /system/kernel/dt2w_vib

I didn't include other hotplugs in the kernel. I tried intelliplug in sxd kernel, the max freq will still not be saved.
[Sony Xperia M] manal.21sinha:
[MENTION=4929675]thichthat[/MENTION] I have been testing different versions of your kernel on my dual sim C2004 on CM12.1 for some time. Used till v4.0 and everything works perfectly, except for dt2w sometimes, but that is still experimental so no problem. But there is one problem which i have been facing since dunno what version, that whenever i make or receive a call on my phone, and i put my phone near my ear, the proximity sensor will turn the screen off, and then the phone will freeze, and reboot. This is one problem which has always forced me to revert to stock kernel. Dunno where the problem is, with the proximity sensor during call, or something else. Not able to take a logcat either. Can you figure out what the issue could be? Reminding again, I use a dual sim C2004 running CM12.1 with the patch and build.prop edit needed to run dual sim.
[Sony Xperia M] thichthat:
Can you explain more about "wake option by timer"? I'll try to port some feature.
[Sony Xperia M] itsnie:
So is hard to lock the frequencies :crying:

But whats your method to enable and disable OC?

maybe that can be used to lock cpu freq ?

This is what flar2 say !

[B][U]S2W/DT2W Timeout[/U][/B]
Doubletap2wake and sweep2wake can be automatically disabled after a certain number of minutes. I give a few choices between 5 and 120 minutes in the installer. Default is 30 minutes. You can put in whatever you want in /etc/elementalx.conf.

When the screen is turned on, the timeout is canceled and will start again next time you turn the screen off. This means that if you have your screen set to come on for incoming messages or notifications, the timeout will start over again.

If you also enabled the power button to toggle s2w/dt2w, there is no timeout when you use the power button, the wake functions are immediately disabled (same as before).

Sent from my waifu
[Sony Xperia M] dim^n:
1. Its all ok with vibration, and finally accidentally touches were removed!

2. I can always set parameters for each core

thichthat, thanks for file, Ill test it on work.

And can you add zen io scheduler? http://androidmodguide.blogspot.com/p/io-schedulers.html?m=1 it says, that zen has no minuses and very good.
[Sony Xperia M] icoolguy1995:
Yes. Intelliplug is pretty useless for our device as the problem lies somewhere else. Varun.chitre15 has fixed this issue in his thunderzap kernel for Xperia L, you might look into that.

As always great work!
[Sony Xperia M] Agu_Ra:
Still doesn't work. Reboot doesn't help.
[Sony Xperia M] Agu_Ra:
By repacking ramdisk. You can use Android Image Kitchen (you can find it on XDA). Logo is in the file logo.rle, so you should convert image to this format. BTW, I can write simple recovery script to do this if there will be enough requesting people.
[Sony Xperia M] itsnie:
I have recovery script to change boot logo made by oliver from xperia z forum !

But my ask is, can you creating some awesome boot logo ?

Sorry if my sound like request :D

Sent from my waifu
[Sony Xperia M] Agu_Ra:
This script is just like my old recovery-script, it is doing the same thing, but with other file.

And about bootlogo, I am not experienced in working with images, so I don't think I can create something cool. And I have no idea for what to use as bootlogo ¯\(°_o)/¯.
[Sony Xperia M] thichthat:
Can you give me last_kmsg? You can get it using this command:

su
cp /proc/last_kmsg /sdcard/

open sdcard and send me your last_kmsg

Btw, anyone else have this problem?
[Sony Xperia M] dim^n:
Can you provide it to me?
[Sony Xperia M] manal.21sinha:
Here you go. Tested it on ParanoidAndroid Stable version (LMY47Z) but the ROM doesn't matter, because I have had this problem on any Lollipop ROM, be it AOSP, PA or CM. Please do tell me if you need more info :)
[Sony Xperia M] mszain:
Whoa, i updated to v4,1 and now the vibration for dt2w not working. Please fix it cause i really love that feature
[Sony Xperia M] Agu_Ra:
Script or AIK? If you mean script, [MENTION=5788126]itsnie[/MENTION] has such script from Xperia Z forum. And AIK can easily be found using search, it is the first results, here it is.
[Sony Xperia M] ndrancs:
Aik: http://xdaforums.com/showthread.php?t=2073775
[Sony Xperia M] Tommienots:
device not connected

its easier on xenonhd rom. i thought i need to do the hard way when i tried to flash the NUI_MOD.zip for xenonhd it worked like a magic :)
[Sony Xperia M] ososmam:
[MENTION=4929675]thichthat[/MENTION]

just question

Do i need to disable emulated storage every time i update the rom ?
[Sony Xperia M] thichthat:
Framework is different in every rom so you have to run the script everytime you update it.
[Sony Xperia M] kjinx01:
when i flashed this on latestnightly i got bootlaod?? is my method wrong?
[Sony Xperia M] thichthat:
What did you flash? Can you describe which kind of bootloop (sony logo or cyano logo)?
[Sony Xperia M] djxplode:
Maybe it's anyhow possible that you give an option to enable OC to 1,2 and 1,4ghz? or is it impossible because you just can give the option to enable or disable the driver module
[Sony Xperia M] sidsharma2201:
Internal Storage Mod is working great now..Thanks!!!1

So regarding this mod... now all cache and app data is now on SD card and left space in internal storage is dedicated for apps?

Let's say, i have 550 MB left before mod and after mod, that 550 MB is only for apps and libs?

Correct me if i'm wrong..

Thanks for kernel and your mod too...
[Sony Xperia M] Agu_Ra:
BTW, thichthat, can you add an option to change the proximity sensor working distance from 3 to 5 sm? It was enabled in CM11 kernel long ago, but reverted, 'cause some users experienced screen not waking during call bug.
[Sony Xperia M] Bonoboo:
Yeah, distance value located in driver code here

Will be very nice have ability to dynamically (via option in app) change it to:

With this screen turn on after 5 cm away instead too low 2 cm, as say @cucumber09

So no more accidental touching screen by cheek.
[Sony Xperia M] mszain:
So really no one else have the problem of vibration not working for dt2w on v4.1?.
[Sony Xperia M] C25:
For me, vibration not working if I set dt2w to full,but for half, vibration working.
[Sony Xperia M] mszain:
Thx m8 it worked on half screen. Btw is it a bug or feature so that you can rotate your screen while in nui settings app???.
[Sony Xperia M] dim^n:
I know about it. So, [MENTION=5788126]itsnie[/MENTION], can you provide it to me?
[MENTION=4929675]thichthat[/MENTION], Ive tested Ur msm_sitar file, and my M has still very quiet call speaker. So I roll back to file from some sound glitch fix patch. And how about zen i/o scheduler, can U add it to Ur gorgeous kernel? :D
[Sony Xperia M] itsnie:
Of course, go here

Sent from my waifu
[Sony Xperia M] Agu_Ra:
BTW, it works a little bit not like I expected.
[Sony Xperia M] dim^n:
It works fine, so all who wants to change sony logo on boot, can use it. Just find a rle file, pack it to patch, and flash via recovery. After kernel update you need to flash it again.
[Sony Xperia M] itsnie:
And whats your expected?

Sent from my waifu
[Sony Xperia M] mszain:
One more problem here, it looks like the forever deep sleep problem has gone worse since v4.0. On v3.9 i only need to pull out the battery and the phone will boot up normally, but on v4 it looks like it wipe my dalvikcache/art so i need to wait like 15minutes to boot and 10 mins for optimising app. Anybody know whats happening??.
[Sony Xperia M] Agu_Ra:
I thought it uses unpackbooting and mkbootimg binaries. But it is another binary in the package. And it doesn't matter what way does it work if it works good. And let's stop our offtopic, bro.

---------- Post added at 02:44 ---------- Previous post was at 02:41 ----------

BTW, increasing min frequency to >400 doesn't help, my phone has got dead today.
[Sony Xperia M] mszain:
What mode are you using?, half or full cause my phone is dead on half even on 400mhz but not on full.
[Sony Xperia M] Agu_Ra:
I switched to half screen mode, 'cause vibration stopped working for full screen mode.
[Sony Xperia M] thichthat:
Sorry everyone, tomorrow I had to spend much time for homework so I couldn't reply to your posts.

This is my plans for next version:

- add patch suggested by [MENTION=5037002]Bonoboo[/MENTION]

- improve dt2w

- custom button action when screen is off

- add zen io sched
[Sony Xperia M] Garv Maggu:
My phone won't boot up.

I am currently on Xenon HD Stable 2 06-06-2015 and it has Cyanogen recovery installed by default. The kernel doesn't install automatically after booting into recovery and recovery shows error while installing the zip when I try manual method.

I also tried extracting nui.img from the method_zip.zip and flashing it using the flashtool, the kernel was successfully installed but my phone didn't boot up.

Can anyone please tell me the steps, how to install this kernel on Xenon HD Stable 2 06-06-2015. Please..?? :( :(
[Sony Xperia M] Garv Maggu:
But that will flash the stock cyanogen recovery. I want to use Nui kernel with twrp recovery. Please help me. :( :(

---------- Post added at 04:17 AM ---------- Previous post was at 03:33 AM ----------

Can anyone give me a step by step guide on how to install nui kernel on Xenon HD Stable 2? Please :crying: :crying:
[Sony Xperia M] thichthat:
DONNOT flash nui.img via flashtool, flashboot etc. Your phone will NOT boot up because there's not ramdisk included in the nui.img. The install script will extract ramdisk from your stock kernel.

If you have problem with CM recovery, you can use FOTAKernel recovery.

PLEASE READ FAQS BEFORE ASKING ANYTHING
[Sony Xperia M] Garv Maggu:
SHould I flash FOTAKernel recovery using flashtool or what?
[Sony Xperia M] manal.21sinha:
Yeah safest way is to extract the FOTA kernel zip, and flash the img inside it using flashtool. Then you will get your desired CWM or TWRP recovery, after which you can flash the Nui Kernel.

[MENTION=4929675]thichthat[/MENTION] Any solution to my issue? I had submitted you a kmsg some time back. :/
[Sony Xperia M] thichthat:
My friend tried flashing FOTAkernel via flashtool and then his phone could only boot to twrp. So he tried this:

- Install kernel from cm11

- Install fota recovery

- Then flash cm12.1 kernel back

- Now you can flash anything you want
[Sony Xperia M] thichthat:
I saw it, but I haven't had any solution. I think that there's a problem with dual sim firmware, I found this in the last_kmsg:

[ 271.459545] SMSM: Modem SMSM state changed to SMSM_RESET.
[ 271.465954] Notify: start reset
[ 271.466137] Modem Fatal Error. Let's note!
[ 271.466137] Probable fatal error on the modem.
[Sony Xperia M] vojtah1:
I searched this thread with no answer. Does this kernel works with latest CM12.1 builds?

Thanks.
[Sony Xperia M] Bonoboo:
Yes, of course.

Seems this must be mentioned in title / opening post.