yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Agu_Ra:
I tested dt2w a bit, but after day of testing I turned it off. And not because of battery drain (it doesn't drain too fast, but notably faster than usually). 'Cause it falseswitches too often in the pocket, so it dials different numbers from call list, switches on torch etc. Is it possible to add proximity check on kernel level?

And one more question. AFAIK, mpdecision is disabled in this kernel, but doesn't it mean that second core is always online? I think, it drains battery faster (at least in standby) than if 2nd core is controlling by mpdecision, even if it works with the highest max frequency value. Correct me if I am wrong.

And thank you for your excellent work.
[Sony Xperia M] tarkan-t29:
Cell standby battery draining problem?

Hello all,

So I'm using this kernel under CM12.1 and it works pretty well, but I noticed something unusual between yesterday and today, the cell standby is draining too much battery as shown in the screenshot above :

​

I'm using the phone as usual, did not change location. I'm not sure if it's the kernel or something else, I just wanted to share with you guys just in case :) .

Finally, I would love to know what CPU frequency and governors you guys are using, I'm using the regular ondemand, but I'm curious to know what other users are using as governor.

Thanks in advance :) .
[Sony Xperia M] thichthat:
You can re-enable mpdecision using Device Control app, but when cpu1 is turned on, it's automatically set to 1.7GHz. To prevent that, you must config Ondemand governor:

up_threshold = 100

optimal_freq = max freq you want (I set it to 918000)

That's not because of my kernel because I didn't edit anything related to it (I used CM12.1's source code).

You can try using the setting above. It works good for me (I only use simple feature such as surfing web, text messaging so I usually set cpu to low freq)
[Sony Xperia M] thichthat:
Fixed problem with apk file!

Newer version takes several hours to be checked by google play. Let's see the changelog:
[Sony Xperia M] dim^n:
CM team make a stupid thing with that... Little but annoying. Maybe I can provide you kmsg? Or it useless already?

Heh, I thought that it was my fault that 2nd core cant off.

Interesting, one more ability, Ive found in device control.
[Sony Xperia M] thichthat:
No. I stil can't find anything in my kmsg..

device control only let you adjust intensity for ALL vibration

In my kernel, I added support adjusting intensity for SHORT vibration (nav key, long press, etc...) and LONG vibration (ringer, messaging, notification etc...)
[Sony Xperia M] dim^n:
1. Ill try to make a kmsg.

2. Okay, and thats really good idea to add settings for kernel.

I still cant install the kernel. Sent you report half hour ago, maybe you see, what is the reason.
[Sony Xperia M] thichthat:
Yes, I saw your report.

I have a big problem with Superuser: It not works properly on all device. So I must add "su -c" to all command. (In 3.5_r2, I forgot to place commands between quotes symbol. I fixed it on r3 so it should works)

3.5_r3 will be available in several hours (google play needs to check it).
[Sony Xperia M] ursidae1:
if i install through the app from playstore will it install twrp along with the kernel? I was unable to understand this part.
[Sony Xperia M] Farron:
I'm trying to install your Kernel third time but all the time I have ERROR! (Xperia M Dual c2005 CM12.1)
[Sony Xperia M] Damian11131:
Try install a kernel manually via terminal emulator.
[Sony Xperia M] thichthat:
Yes. TWRP 2.6.3.0 is included in the kernel.

updated on google play

You should run these commands:

su
mount -o rw,remount /system
/system/nui/kernel/install.sh
reboot recovery
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

Disable emulated storage is not working...

After flashing NUI_MOD.ZIP its just booting and booting....and stuck on the cyangogen mod logo

---------- Post added at 11:40 PM ---------- Previous post was at 11:39 PM ----------
[Sony Xperia M] Farron:
Ok it's work. Now tell me can I Restore CM12.1 Recovery? I need it. You know I update my CM everyday.
[Sony Xperia M] mszain:
I think you can just manually flash the cm12.1 zip via twrp, and i myself really hate cm recovery.
[Sony Xperia M] thichthat:
I don't recommend you flash CM everyday because NAND memories have limited write cycles. Anyway, TWRP can be used to flash CM (they both use Open recovery script).

Edit: If you still want to use CM recovery, read this: http://xdaforums.com/xperia-m/development/recovery-cwm-twrp-recoveries-custom-roms-t3016507
[Sony Xperia M] thichthat:
Try other ROMs. It don't works on nighly CM12.1
[Sony Xperia M] mszain:
:confused:but why its working fine on me??, im using cm12.1 nightly and im so lucky.
[Sony Xperia M] Vlad2013_4pda:
please say how you install it?
[Sony Xperia M] thichthat:
I tested it on CM12.1 unofficial BETA 2 and 3 and it worked. I'll not install any nightly because I think other ROMs is better.

Btw, I updated FAQs in post #1
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

But from where I can download Beta 2 or Beta 4
[Sony Xperia M] Vlad2013_4pda:
[MENTION=4929675]thichthat[/MENTION]

In what mode the phone must be connected to a computer to run 1Pulling_Files.bat?
[Sony Xperia M] Farron:
For me emulated storage works too but (CM12.1) but Gallery FC
[Sony Xperia M] Farron:
First before you start install apktool 2 files (bat and jar) you need to move it in to the system (C:/Windows) and then in phone enable debuging connect phone run Pulling files bat then second one 2Patching zip and when you do and everything goes succesful you get two zip's in disable(...) folder flash mod by recovery second one is backup and that's all.
[Sony Xperia M] tarkan-t29:
[MENTION=4929675]thichthat[/MENTION] thank you for your answers :D !

I flashed back the ROM with the original kernel, the cell standby is still draining battery, I believe that is from CM sources. Anyway, I am going to update to the latest nightly and see if it gets fixed. :)
[Sony Xperia M] dim^n:
Microsd card not mounted at all on 3.5 r3. Reverted to 3.3 (dont know what on 3.4).

thichctat, can you explain how do you made a kmsg?
[Sony Xperia M] Agu_Ra:
Something like

cat proc/last_kmsg > /sdcard/kmsg.log
[Sony Xperia M] dim^n:
Here is the log while wifi analyzer starts. Another way to do that is to copy via TC like a usual file :D

I have another question, if anybody knows. In custom snd_soc_msm_Sitar file that thichthat made everything is good except call speaker vol. How to increase that? Edited it for a long time, but no effect.
[Sony Xperia M] haresh311999:
This is happening when I try to install the latest kernel on XenonHD stable 2....please help
[Sony Xperia M] thichthat:
I rebuilt kernel objects file on next version so it maybe fixed. If sdcard still can't be mounted, please send me a kmsg.

Try zip method. I'm using xenonHD stable 2 too and the installer works fine.
[Sony Xperia M] ratosluaf:
I am on CM12.1 first nightly and storage disable seems not to be working... there is no internal storage in file manager on when connected to PC, but in memory in settings it is and I cannot download Asphalt 8 for example, it says that there is no enough free memory.
[Sony Xperia M] Vaste92:
I'm having a lot of random reboot with v3.6. With previous version, I didn't have any reboots. As soon as i can, I'll post a logcat.
[Sony Xperia M] SunitTalwar:
+1 even with 3.6 version sd card not mounted in aospa 4.4
[Sony Xperia M] thichthat:
Please send me a kmsg. I'm so busy now but I will fix it as soon as possible.
[Sony Xperia M] dim^n:
Here is a liveboot log.
[Sony Xperia M] thichthat:
new build!
[Sony Xperia M] SunitTalwar:
nop still same result sd card still not mounted

and no random reboots here kernel works flawlessly only the sd card not mounted bug is annoying
[Sony Xperia M] Agu_Ra:
For me zip method doesn't work. I was forced to flash nui.img from install_zip.zip manually.
[Sony Xperia M] ososmam:
the same here too modules.zip not found
[Sony Xperia M] thichthat:
1. Can you mount sdcard in TWRP?

2. From which version you have problem with mounting it?

3. Which ROM and class of sdcard you're using?

I still cannot find much useful information in the log sent by [MENTION=5988636]dim^n[/MENTION]

OK I'll fix this
[Sony Xperia M] thichthat:
Are you using a 32GB sdcard? I only found these line in the log:

That means the kernel recognized the sdcard, and this problem may come from ROM
[Sony Xperia M] thichthat:
[MENTION=4528550]SunitTalwar[/MENTION] and [MENTION=5988636]dim^n[/MENTION] :If you are NOT using disable emulated storage mod, can you try deleting patch00 and patch1 in /system/kernel? Maybe we cannot mount sdcard because mpdecision was disabled.

(Only keep patch.cpio, it's the ramdisk)
[Sony Xperia M] SunitTalwar:
thanx it worked by deleting the above mentioned files now sd card is mounted :)

buddy one more problem after updating to latest kernel update my phone never goes to deep sleep though not much battery is used but still it used to go in previous versions of your kernel

i am using 3.7 version
[Sony Xperia M] thichthat:
Did you disable doubletap2wake? Or did you try other governor? I can sure that's not a problem from the kernel because I didn't change anything about it.
[Sony Xperia M] SunitTalwar:
actually i dont really use dt2w feature much and it is off and i use lionheart gov in which deep sleep used to work but not a big issue maybe some aap is keeping my phones cpu awake all the time btw can you port xperia l's dt2w feature because its stable and both phones use same touch screen type
[Sony Xperia M] dim^n:
1. Yeah, 32G UHS-1 sdcard

2. But v3.3 works fine for me (based on CM12 source code too), and the ROM is the same, so all behavior cames from changes of kernel. Maybe its the kernel problem on all CM11 roms, something you change in kernel not allows sdcard to be mounted.

Ive tested already v3.7 r2 with deleting of patches, and it helped!
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

Please tell me one rom on which I can successfully install your kernel and use disable-internal-storage
[Sony Xperia M] thichthat:
I suggest xenonHD (I'm using) or PA (My friend tested). You can also refer to post above.

Btw, if you are using C2004 with dual sim firmware, can you try and tell my if both sim cards work? Thanks!
[Sony Xperia M] thichthat:
Can you give me the link of kernel thread or source code? XM uses synaptics touch screen.
[Sony Xperia M] itsnie:
Maybe, but you can check here

Sent from my waifu
[Sony Xperia M] thichthat:
XL uses Cypress touch screen so I can't use their souce code, but I'll try to port some.
[Sony Xperia M] thichthat:
new version! It will be available for download in 1-2 hours because google need to check it
[Sony Xperia M] haresh311999:
I installed it on Pure aosp by PecanCm...yes dual sim works perfectly but it takes a lot of time to catch signal....
[Sony Xperia M] thichthat:
Which method of install did you use? Did the zip file works? And did you tried disabling internal storage? Thanks!
[Sony Xperia M] ososmam:
I cant install the kernel after upadte the rom (24.06 cm) the recovery changed to cyan recovery what can i do now to get the kernel ?
[Sony Xperia M] itsnie:
Some review with latest version ..

- auto installation is work

- disable vibrate on boot decision, work

- no one problem with sdcard, i don't know why many people reporting sdcard bug :confused:

- control all core freq with enabled mpdecision is work, recomended to use kernel tunner app

- etc etc!

This is stable kernel ..

Note: i use 0623 nightly ..

Sent from my waifu
[Sony Xperia M] thichthat:
Flash TWRP via FOTA kernel. CM's recocery always having problem with verify signature
[Sony Xperia M] thichthat:
Thanks for your feedback!

In v3.7_r3, I have to re-enable mpdecision in order to fix sdcard issue.
[Sony Xperia M] bluepinkpanther:
After flashing this kernel my phone got wake-locked for over 6 hours. It never happened to me before and wakelock detector doesnt show any specific app causing this
[Sony Xperia M] thichthat:
Please try using Better Battery Stats and show me which wakelock was used by the kernel (in kernel wakelocks menu).
[Sony Xperia M] thichthat:
Please flash TWRP via FOTA kernel before installing it. CWM's recovery may have problem with signature verification.
[Sony Xperia M] mszain:
Wow nice now dt2w works better on v3.8.

But i think itll be better if you add little vibration on every succesfull dt2w action just like in htc phones.
[Sony Xperia M] itsnie:
And ofc, add option to enable and disable the little vibration!

Because not all people like vibrate, example Me ..

Sent from my waifu
[Sony Xperia M] thichthat:
Yes, it will be surely added.

You already have this option in your phone. Try to find it in sound settings.. Or you can set the intensity of haptic in kernel's setting to minimum.
[Sony Xperia M] rspousta:
I am using CM12.1 with your kernel with disabled emulated storage. How should I update to newest nightlies? Can I just flash zip with CM12.1? Do I need to reflash kernel and mod for disable emulated storage?

Btw another great update, dt2w feels really nice and changing vibration intensity is very useful for me.
[Sony Xperia M] itsnie:
Uh ok!

Btw, any plannad to add more hotplug?

I see noel kernel now have intelliplug and msm mpdecision (showp1984), but damn when i disable msm mpdecision my screen got freeze !

And sorry for OT ..

Sent from my waifu
[Sony Xperia M] Agu_Ra:
Very big thanks for improving dt2w! You are master, you know. Now it doesn't need to tap as fast as on previous dt2w version to turn the screen on, it was annoying on previous versions. And finally it doesn't prevent the phone from going to deep sleep! So battery life in standby should become better. But one bug is still here, when you call someone, the touchscreen is still working, so you can accidentally press any key on display, and even in half screen mode the whole TS works during call. But it is not critical bug for me, your kernel is savior, 'cause my power key is almost not working (and I'm a bit lazy to fix it).
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

After flashing NUI_MOD.ZIP the phone just does not start normally...it just shows starting apps

---------- Post added at 12:49 AM ---------- Previous post was at 12:42 AM ----------
[Sony Xperia M] Agu_Ra:
Try wiping dalvik cache in recovery. It will be "optimizing apps" at boot, so you should wait for 10-15 minutes.
[Sony Xperia M] thichthat:
Mpdecision shouldn't be disabled because it may cause sdcard not mounted. If you want to limit 2nd core, you can tune Ondemand:

Up_threshold=100

Optimal_freq=which freq you want

[MENTION=5322047]haresh311999[/MENTION] Or maybe it isn't compatible with ROM you're using. Try flashing another ROM.
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

I'm using Xenon-HD-Stable2 which you are using...so whats the prob?
[Sony Xperia M] babyyeobo14:
i also using Xenon no problem so far :)
[Sony Xperia M] thichthat:
I've just downloaded your NUI_MOD.zip. The storage_list.xml wasn't added. That's why your phone can't boot.

Do you have zip1.exe in disable_emulated_storage folder? If you don't have it, please re-download the zip file from post #3

Edit: fixed it. Please download newer version from post #3 (Remember to keep backup.zip)
[Sony Xperia M] ososmam:
[MENTION=4929675]thichthat[/MENTION]

The disable emulated sdcard work on cm perfect without any error

Thanks
[Sony Xperia M] sidsharma2201:
Stuck at 2Patching.bat

i'm on latest kernel and wanted to use disable internal storage mod.

After opening 1pulling_files.bat, it successfully extracted framework-res.apk patch00.cpio and patch1.cpio and instructed to open 2patching.bat to continue.

but on 2patching.bat it always show move all data from internal storage to sd card first and then press any key to continue....

Here's the issue, i moved it all but you know android folder can't be moved completely (yeah, it can be copied).

So help me out here. How to proceed further?

Thanks
[Sony Xperia M] thichthat:
Oh sorry I wrote one wrong command in the script file. I only tested a part of the script so I couldn't find the error. It's fixed, please download it here:

http://www.mediafire.com/download/l87pc3p0f6806ux/disable_emulated_storage_6.zip
[Sony Xperia M] AndyPhoenix9879:
The latest NUIKernel is causing my phone to constantly reboot every 5 minutes! Using the latest FlexOS with the disable_internal_storage mod.
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

Its not working....its just starting apps...and not booting normally... Plz help
[Sony Xperia M] thichthat:
No reboot for me. Please re-flash stock kernel.

Make sure apktool can run correctly in your computer (did you install java runtime and apktool framework?)
[Sony Xperia M] haresh311999:
I installed both....but nothing works...plz help [MENTION=4929675]thichthat[/MENTION]
[Sony Xperia M] haresh311999:
Bro there's a problem in the script itself It cannot copy any of the xml files...I checked the zip...and opened all the xml files...but the files were empty..plz help...I want to disable my internal storage..
[Sony Xperia M] thichthat:
You can use my zip here:

http://www.mediafire.com/download/52wr93mc2z6mdhm/NUI_MOD_xenon_stable2.zip

Make sure you're using xenonHD stable_2 06-06-2015
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

The zip worked perfectly.. Thanks....but I cant download anything from the play store which has additional data...and when I cancel the download the phone hangs...and it has rebooted 2 times since internal storage disable...I was on 1.7 ghz
[Sony Xperia M] dim^n:
After v 3.3 there is larger battery usage. Is it a mpdecision fault? And dt2w works at last, but not always wakes device. I have to tap again.

And of course, thanks for master work.
[Sony Xperia M] ndrancs:
[MENTION=4929675]thichthat[/MENTION]

Hi mate, I found that when I set cpu0 to max 1026mhz, the cpu1 still get max freq 1.7ghz... can you fix this? thanks
[Sony Xperia M] Damian11131:
Launch terminal and type : su (grant supersu access) and press enter, next type:

stop mpdecision, should help :).

You must type these words after every boot.
[Sony Xperia M] ndrancs:
Actually I have the patch for this in kernel source, but no perfect, maybe nui found other patch, thanks for replying.

If you want simple way use kernel adiutor.
[Sony Xperia M] thichthat:
Please try downloading data using your computer and copy it to /sdcard/Android/obb. Or simply download and install only apk file and it will download data for you.

Almost kernel tool app now have option to disable mpdecision on every boot.

Btw, in next version, I will make an option to enable/disable overclock freq, so you will not have to care about overheating your cpu.
[Sony Xperia M] thichthat:
Mpdecision causes lag for me so I disable it (I'm using Device control app). It was re-enable since 3.8 (for fixing sdcard not mounted). I'll not change it again because everyone can easily disable it using kernel control apps.
[Sony Xperia M] mszain:
Well actually big games took like 5 minutes before they begin to download, try again and see if it works n be patient.
[Sony Xperia M] itsnie:
Does anyone have try to use f2fs?

For me f2fs not work ! ?

Sent from my waifu
[Sony Xperia M] dim^n:
thichthat, in earlier build of kernel you provided modified

snd_soc_msm_sitar.

So can you explain, how to modify it to increase call speaker vol? ACR records demonstrate good vol, but during call its too low. Im trying a lot with dif progs, but have not enough knowledge in it. Thanks for any help.

Dont want to use any other file cause of already 3 or 4 good customisations of it.
[Sony Xperia M] Neon-Flash:
Internal storage mod not working

I have disabled internal storage with the mod provided but still "the internal storage full" error is coming. In ES Explorer it's not showing internal storage but in settings/storage it's showing internal storage also which is now less than 200 mb after installing too many apps initially. It seems like still apps are installing in the internal storage rather than external storage. Anyone experiencing same?

PS: I'm on XenonHD stable build
[Sony Xperia M] thichthat:
I don't have time to try it. WYou can use this command to see all supported file system:

cat /proc/filesystems

You can use older file from CM here: https://github.com/CyanogenMod/android_device_sony_nicki/commit/39d727071c470de413aa7b752c2eff9ca6c44189
[Sony Xperia M] thichthat:
After applying this mod, you can use your sdcard to storage some app's data, NOT to install apk files on it.
[Sony Xperia M] CJ2311:
EDIT: Well then, nevermind. I just read the post above.
[Sony Xperia M] Neon-Flash:
So is there no way I can install more apps by this method? I mean there got to be some way that apps can install on sd card?
[Sony Xperia M] itsnie:
Yes, i see f2fs is supported on your kernel!

But when i change data ext4 to f2fs partition, my device got bootloop !

So i pull my battery then boot to recovery, i see in /data partition, no one file created except media folder ..

Sent from my waifu
[Sony Xperia M] ososmam:
[MENTION=4929675]thichthat[/MENTION]

can you put your settings or the settings that make the device not lag (cpu gpu filesystem etc)

i'm using device control app
[Sony Xperia M] thichthat:
you can see it in post #2. I don't use my phone for gaming so that I only set it to normal setting.
[Sony Xperia M] thichthat:
New build!
[Sony Xperia M] SunitTalwar:
awsome work bro all fearures are working good loved the vibration during dt2w feature

now that dt2w feature is stable(works always with double tap) ,can you add wake up gestures too bro :)

and thanx again bro for your kernel
[Sony Xperia M] ndrancs:
On my phone f2fs is working since CM11 up to CM12.1 use sadra kernel and nui latest kernel. I Use f2fs on my microSD card. And test on /cache too. One note: my card size 16gb and f2fs make only 14gb useful space.
[Sony Xperia M] ndrancs:
Some quick note: don't set cpu freq to 918mhz and gpu to 312mhz will make your phone sleep forever... Until you take out the battery...
[Sony Xperia M] itsnie:
Try use f2fs to /data !

I think you will say "not work" ..

Sent from my waifu
[Sony Xperia M] ndrancs:
Of course: not work!

If you don't edit this line in fstab.qcom in "ramdisk" and recovery too if you want but it optional.

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc wait,check,encryptable=/persist/footer

Change to like this

/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs rw,discard,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check,encryptable=/persist/footer

That's my way!
[Sony Xperia M] thichthat:
Can you enable/disable overclock mode and try again? Btw, there's no any 312MHz freq level for GPU. We only have 320. Maybe the problem comes from dt2w. It's not stable and sometimes prevent my phone from waking up.

About f2fs, I haven't had time to try it yet. If you want to try f2fs for data or system partition, you have to edit the fstab.qcom, pack it into a cpio and place it at /system/kernel/patch00.cpio (I will make one for you). Btw, can someone provide me an easy way to format my phone as f2fs?

Edit: anyone have same problem with [MENTION=5359154]ndrancs[/MENTION] ?
[Sony Xperia M] Remorcer:
If you're using twrp, you can press Wipe - Advanced wipe - Put checkmarks on partitions you want to change - Repair or change file system - Change file system
[Sony Xperia M] ndrancs:
Yes I mean 320, but if I set to 400, then phone can wake up.

About f2fs I think it not suitable for our phone because /data partition size is small. Only 2gb. If we format it with f2fs the space that we can use will decreased again.
[Sony Xperia M] Remorcer:
Yeah but what about f2fs on the /cache partiton?
[Sony Xperia M] ndrancs:
See the free space. It fresh formatted, no files inside the /cache.