yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] ndrancs:
Yes of course, test kernel on two rom and on One device. So terrible...
[Sony Xperia M] Mystical Orb:
I checked the overclock option, but under the tweaks menu , I still can't find overclocking related option. Some help please?
[Sony Xperia M] dim^n:
This option has separate button on main screen.

[MENTION=4929675]thichthat[/MENTION], here is radio log for no signal bug on AICP 4.4.4. Problem on v4.3 and 4.4. Radio blobs dont help me, and other archive cant download from yandex.disk

And since you add button remap settings there is problems with per app remap in Xposed Additions. Its broken after reboot. Is there any way to set via kernel answering a call with vol+ button without starting dialer or viber?
[Sony Xperia M] thichthat:
Once I tried AICP 5.0, radio didn't work, too. I think they edited something from source.

I didn't changed anything about vol buttons, only fix vol buttons on 3 buttons headsets.
[Sony Xperia M] vj.xtha:
Support for pc usb joystick

[MENTION=4929675]thichthat[/MENTION] i want to play games using pc gamepad,but Xperia m doesnt support. Galaxy S3 stock rom supported pc joystick..can u add the necessary driver so that xperia m also supports pc gamepad through connecting through USB OTG cable?? I'm not sure whether driver are compiled in the kernel or in the rom...
[Sony Xperia M] dim^n:
1. but on v 4.2 its all right. So its something in your kernel after v4.3 update... So there is no solution for now?

2. I mean per app button remap not working properly at all.
[Sony Xperia M] allrested:
I'm using AOSP 5.1.1 by smartagent47. Ril function normally, but if u receive a call the display suddenly off. So u can only hear the sound until call ended. Something that not working only the disabled emulated module, it make the sims not recognized :(
[Sony Xperia M] manal.21sinha:
Same issue that i faced while using this kernel :( Thanks anyways!
[Sony Xperia M] thichthat:
1. I'll make a clean build next version so this problem may be fixed. If it's not fixed, I really cannot fix it. I can't find the problem in source code.

2. Disabled emulated module will surely be fixed.
[Sony Xperia M] thichthat:
Updated disable internal storage mod:

+ fix for dual sim

Please see post #2.
[Sony Xperia M] adi2500:
Porting Disable Internal Storage

Hey,

I wanna port the disable internal storage mod to another device (Galaxy Note 4 sm-n910f) and i wanna know, where i have to search in your sources xD (Im not that good in kernel sources yet).
[Sony Xperia M] Agu_Ra:
Look at this device commit by [MENTION=4929675]thichthat[/MENTION].
[Sony Xperia M] thichthat:
This mod is not a kernel-related tweak. I only change the ramdisk and framework. You can get more infomation from this link:

https://source.android.com/devices/storage/config-example.html

Porting the script to other devices is very difficult because every phones have diffrent boot.img configs.
[Sony Xperia M] thichthat:
New version!

Also updated disable internal storage adaped for v4.5+. If you're using it, there's no need to run the patch again.

Edit: For users using disable internal storage mod: Please share your NUI_MOD.zip here and I'll add it to post #2. Don't share those for nightly.
[Sony Xperia M] dim^n:
Still here no signal. Flashed both zips mentioned in http://xdaforums.com/showpost.php?p=61921734&postcount=504 But year ago when I updated to newer fxp the only helped me is to flash ftf. So have I flash it?
[Sony Xperia M] thichthat:
I still don't know where is the problem in the source code. Maybe some new commits from CM caused the error. If you have time, can you change your ROM?
[Sony Xperia M] dim^n:
1. Thats evil... Is that commits so important? CM has the ability to make bugs wifhout any improvements. So can U compile the kernel from the source v 4.2 based on?

2. U mean for tests? Cause I dont like L, and cant daily use it :D

Btw Ive tested s2w on v4.5 and thats amazing, it works as good as dt2w.
[Sony Xperia M] allrested:
New version works for me, although first boot stuck on "android is starting". But the second boot working like a charm.

Here is the NUI_MOD for AOSP ROM 5.1.1 based on Dualsim fw.
[Sony Xperia M] thichthat:
These commits is about for SElinux. It's important because if I want to merge changes in future, I have to sync my source with CM. I'll send you a kernel with cmdline edited for testing.

I'm using cm-12.1 branch so the kernel may not works well on 4.4 roms.
[Sony Xperia M] thichthat:
Can you give me more infomation of the rom (date of build, link, etc) ?
[Sony Xperia M] allrested:
AOSP-20151807-DUALSIM

ROM OS Version: 5.1.1 Lollipop

Build Number: LVY48C

Build Date : 2015-07-18

Based On: AOSP

link : [ROM][5.1.1][DUALSIM] The Android Open Source Project by smartAgent47

[IMG="Some Screenshot"]http://xdaforums.com/attachment.php?attachmentid=3423912&stc=1&d=1438325056[/IMG]
[Sony Xperia M] dim^n:
[MENTION=4929675]thichthat[/MENTION], thanks a lot for support! Ill replace img in method.zip file to avoid crashes.

I know that the kernel was made on cm12 source and Im suprised that it worked well for a long time.
[Sony Xperia M] Agu_Ra:
<pseudo-expert-mode=1>'Cause installer repacks boot image with NUI zImage (kernel binary itself) and keeps original ramdisk (only modifies it a bit to get additional functionality), it gives you very big compatibility advantages over flashing already pre-packed boot.img. And the kernel source didn't change a lot. The most compatibility issues are 'cause of ramdisk, not kernel code itself.</pseudo-expert-mode>

@thichthat, correct me if I am wrong.
[Sony Xperia M] thichthat:
That's right. Only need to correct that the installer only copy android ramdisk to /system/kernel, and it doesn't compile a new boot.img. The disable internal storage mod overwrites some files in the ramdisk, so in older version it caused sim card not detected. Maybe some new commits from CM caused conflicts in SElinux, which prevent loading radio libs.
[Sony Xperia M] Agu_Ra:
And that's what I mean.

---------- Post added at 12:45 ---------- Previous post was at 12:42 ----------

I meant that installer repacks current boot image, installed in phone.
[Sony Xperia M] thichthat:
Can anybody tell me if forever deep sleep caused by dt2w/s2w still present? I've test for more than 1 day, and no problem yet.
[Sony Xperia M] madper:
Installed and enabled dt2w since 2 days ago and never face forever deep sleep till now. I've not enabled s2w though

Sent from my C1905
[Sony Xperia M] mszain:
Im on xenonhd stable 2 on v4.5 only got 1 forever deep sleep so far and i dont really mind about that.
[Sony Xperia M] Agu_Ra:
Didn't face this issue so long that I even forgot about it.
[Sony Xperia M] Agu_Ra:
[MENTION=4929675]thichthat[/MENTION], can you add different overclock modes in app menu by switching different frequency tables? Because limiting frequencies in third-party apps is pain in the ass as we should always use ondemand instead of some better governors (I prefer interactive, for example).

P.S.: I feel a little bit uncomfortable asking for new futures, so don't take this as request. Do as your think is right. And thank you for your hard work on this truly awesome kernel, you are really good developer.
[Sony Xperia M] metalftw7:
Looks Like There's Something Wrong With Version 4.5, As I Tried Flashing It On my C1905 with CM 12.1 08-01 Build Using TWRP. The Manual Method Doesn't Work. I Flashed method_zip.zip. Then I Rebooted The Phone But The Kernel Didn't Install. Never Happened Before On Previous NUI Kernel Versions.
[Sony Xperia M] djxplode:
asked this some time ago,too, cucumber

:silly:
[Sony Xperia M] thichthat:
Can you explain why you can't use other governor? Ok I'll add diffrent OC mode: 1.2, 1.4 and 1.7.

Btw, I added an edited version of no-frill cpu controll into the app and testing it. I can't attach a screenshot now 'cause I'm using mobile. The app now can control cpu, mpdecision, i/o scheduler and show cpu info in real time.
[Sony Xperia M] thichthat:
Can you try installing it again? I can sure that there's nothing wrong in 4.5. The automatic method only flash the zip. It doesn't do anything else.

If you're using an older version, you can update by flashing the nui.img extracted from apk file via fastboot.
[Sony Xperia M] metalftw7:
Yeah I Tried Installing Again But It Didn't Work And So I Opened the zip file that is created by the Nui Kernel App(4.5) on the internal sdcard (method_zip.zip) i went to the kernel folder and there are 3 files dd,install_zip.sh and nui.img then i went to the system then i opened the kernel folder system>kernel and i noticed that the kernel folder is empty
[Sony Xperia M] metalftw7:
Okay Problem Solved :) I Extracted The Contents Of The method_zip.zip Then I Copied The Files From The Kernel Folder(dd,install_zip.sh and nui.img) To The empty system>kernel folder. Then i recompressed the zip. I Used The Recompressed Zip To Flash The Kernel. Now The Kernel Is Installed. Looks Like There's An Error On The App While It Creates The methodzip. That's Why the system>kernel folder went empty. Please Fix It On The Next Update, Anyway. Thank You So Much For Your Great Kernel. It's So Useful. :D
[Sony Xperia M] arpeggio16:
Can you upload the zip? I really want to use Nui kernel on AOSP as well.Thanks! :)
[Sony Xperia M] Agu_Ra:
'Cause I need to disable mpdecision to control both cores, but I don't want my both cores to be always online.
[Sony Xperia M] ratosluaf:
it's working fine for me.
[Sony Xperia M] haresh311999:
So why its not working for me.....Is it so that I m having a matte guard......what type of guard are u using??
[Sony Xperia M] ratosluaf:
I've got normal shield, sometimes i need to double tap for more times, AND I needed to enable it in Kernel Tuner.
[Sony Xperia M] thichthat:
Yes. You can use the same patch for all version

Dt2w is disable by default because it's an experimental feature. You need to enable it using apps like Kernel Tuner or Device Control. It's still unstable now. Sometime I have to tap many times on my screen and I have no idea to fix it
[Sony Xperia M] dastan4eva:
Sir

Can you try and ask pecancm for little helpto fix d2w or atleast some other developer.Please fix it sir , its very awesome feature

Thanks for your effort
[Sony Xperia M] bluemeda:
Not working in cm11 dual sim
[Sony Xperia M] SunitTalwar:
no signal on rr 5.1

can any body confirm this issue of no network with this kernel 2.0 plus 12.1 patches on resuruction remix rom 12.1

i used to get signal working on 5.0.2 and even on5.1 with stock kernel that is the one provided with the rom itself but after using this kernel on rr 12.1 i lost my signal though other things like bt wifi works well

and to developer great kernel awsome features and almost working dt2w though sometimes it requires around 5-6 touches other than that all gud

so plz look into the matter of no signal on 12.1 resuruction remix rom

thanx
[Sony Xperia M] icoolguy1995:
Yup its pretty unstable for now. I was talking to a dev and he is also facing the same problem with current driver, still he is trying to fix it, i'll keep you in touch with the updates.
[Sony Xperia M] thichthat:
I'm using bliss rom (5.0.2) so I haven't tested it yet. Sorry about that. I'll fix it. Anyone else who face this issue can flash stock kernel via fastboot (and also stock modules from /system/lib/modules) or easily re-flash your rom.

Btw, can you share your radio log?
[Sony Xperia M] XpressiaMuser:
can i use it on cm 12.1 ressurection remix rom ?
[Sony Xperia M] manal.21sinha:
Bugs on CM 12.1

+1 for the above for me. Flashed it on my c2004 with c1904 single sim firmware running CM 12.1 beta 1. Did a clean install. But network signal was not showing properly, even though there was signal. Also, whenever a call ended, the phone randomly rebooted. Hence, i had to revert to stock CM 12.1 kernel for now.

Regarding dt2w, it is experimental right now so there will be issues. But i really hope that network issue gets fixed, because the ROM was so much smoother after installing your kernel due to the cpu and gpu overclock.

Also, another problem i faced was that the settings for cpu clock freq that i would set for both cpus using Kernel Tuner would never stay atleast for one of the cores. Dunno where the problem is, since "start mpdecision" in init.qcom.rc was commented and intelliplug code added. Has it got something to do with intelliplug?
[Sony Xperia M] haresh311999:
[MENTION=4929675]thichthat[/MENTION]

Plz add support for 1080p playback
[Sony Xperia M] Varchuuu_3:
If you lose an alarm, the phone get's into bootlop, Any solution?

Sorry for my English
[Sony Xperia M] thichthat:
Not because of the kernel.. I think that's a problem from your ROM. Try clean flash your rom.

1080p playback was added from the source. The problem comes from omx libs (included in ROM) and I dont have any idea to solve it

edit: Someone please send me the radio log of cm12.1
[Sony Xperia M] itsnie:
[MENTION=4929675]thichthat[/MENTION]

Dude, how to use fstrim? Does that's run atomatic?
[Sony Xperia M] thichthat:
You can use device control to enable it. It's disabled by default

Btw, I tested 1080p mp4 playback and it worked fine. I'm still solving problem with mobile signal on CM12.1...
[Sony Xperia M] iks8:
on cm11 with this kernel I've noticed 2 bugs:

-horrible graphic performance, ui is laggy and antutu shows about 500 less points for 2d and 3d comaperd to the stock cm kernel

-headset button is not working when screen is off
[Sony Xperia M] Damian11131:
Works fine on lollipop 5.1, thanks :)
[Sony Xperia M] sennohananto@gmail.com:
Bug in Xperia M running CM11 4.4.4

It's an awesome kernel sir!, i really like it.

But, there are a little Bug, that cause my phone doesn't do the Offline Charging. It just stuck at the "Sony" Boot logo.

Anyone have solution? :D
[Sony Xperia M] manal.21sinha:
Is it working properly on 5.1?

No mobile network issues? No reboots after a call? Which 5.1 ROM are u using? I am using Unofficial CM12.1 beta 1 and facing these issues which made me go back to stock kernel :(
[Sony Xperia M] metalftw7:
I Can't Upload It As An Attachment So I Uploaded It In Zippy. Here You Go :

method_zip
[Sony Xperia M] thichthat:
That's so stranger. I leave kernel folder empty because I don't want to overwrite patches generated by disable internal storage mod. Maybe that's a problem from the app. Anyone else faced this issue?
[Sony Xperia M] itsnie:
Yeah, that's me ..

I install v4.5 manually by generated kernel folder in system then copy n rename /sbin/ramdisk.cpio to /system/kernel/patch.cpio then install nui.img via twrp ..

Sent from my waifu
[Sony Xperia M] thichthat:
V4.6!
[Sony Xperia M] Nicklas Van Dam:
Thanks for this update OP, but can you tell me how to install it? I've try to install method.zip . but kernel still can't installed anyway? 4.5 v
[Sony Xperia M] thichthat:
Today I flashed stock kernel and then flashed v4.6 method_zip.zip via TWRP. Everything works fine. Still can't find the problem here...
[Sony Xperia M] thichthat:
Maybe you should try disabling FOTA kernel before updating newer version (there's an option for it in tweaks menu)
[Sony Xperia M] madper:
New CPU control options just superb!! Thanks [MENTION=4929675]thichthat[/MENTION] :thumbup:

Sent from my C1905
[Sony Xperia M] bluepinkpanther:
Does it still work on CM11? I tried to install it, app crashes during installing but still creates zip file. Flashing it brakes wifi and other things but doesn't install kernel.
[Sony Xperia M] thichthat:
If the app crash while extracting the zip file, don't flash the zip. You can extract one from the asset folder in the apk file.
[Sony Xperia M] Nicklas Van Dam:
Thanks [MENTION=4929675]thichthat[/MENTION] , v4.6 is fixed this problem. I can install it on cm12.1. But I don't know where's the problem on v 4.5. I install this with fota recovery. Your kernel is great!!!! With much feature too inside
[Sony Xperia M] Garv Maggu:
[MENTION=4929675]thichthat[/MENTION] Hey, disable internal storage MOD is not working on CyanideL [3rd August]. Please fix it.
[Sony Xperia M] itsnie:
[MENTION=4929675]thichthat[/MENTION] can you add kexec hardboot to your kernel ?

Sent from my waifu
[Sony Xperia M] sidsharma2201:
OT

Anybody know how we will get "Stagefright" bug update from Google..?

I guess we will have to ask developers
[Sony Xperia M] Agu_Ra:
Is MultiRom alive again for our device?

---------- Post added at 19:33 ---------- Previous post was at 19:28 ----------

It is already fixed in CM. Earlier than Google fixed it in Android. BTW, this thread is not about CM and Android vulnerabilities, it is dedicated to NUI Kernel, custom kernel for Xperia M LP-based ROMs.

---------- Post added at 19:45 ---------- Previous post was at 19:33 ----------

Oh shi... MultiRom is really alive. So, @thichthat, here is a commit for kexec hardboot patch. But I don't know if it is applicable for CAF kernel which we run as this is for stock one. Maybe some changes will be needed. Or not stock? can't understand (that's why it is better to git-clone or fork a work than simply dloading source as zip if you are going to reupload it with your changes, as it will save commit history).
[Sony Xperia M] sidsharma2201:
[MENTION=5917809]cucumber09[/MENTION] thanks for the info...I asked here coz of frequent updates here..n see I got it...

Btw I have mentioned OT @ top
[Sony Xperia M] Agu_Ra:
Okay, sorry, didn't notice 'OT' at the top.
[Sony Xperia M] itsnie:
Yeeeesss, and that's make me crying #lol xd

Sent from my waifu
[Sony Xperia M] Farron:
Xperia M Dual (Single) Cm12.1 Nightly. I have your kernel it works. Same with emulated storage I think. Now my question. You or anyone else here try to play Hearthstone on our lovely phone ;)? I install it without problem but problems start when I run it. When game try to update (80%) i get an error about low storage. One time I install and update it succesful before i have kernel and emulated storage but uninstall because of lags. Tell me there is any chance to play it with your kernel normaly?
[Sony Xperia M] thichthat:
This mod can't work on some ROMs and I can't not fix it.

Yes, but I have no idea to use it. I'm not going to run another kernel using my kernel.

You can use this app to check if your phone has this bug:

https://play.google.com/store/apps/details?id=com.zimperium.stagefrightdetector

I'm now very busy studying at school. I'll still make updates on my free time, but will be less frequency.
[Sony Xperia M] thichthat:
Maybe the app downloaded its data to /data partition instead of /sdcard. Still don't know how to fix that.
[Sony Xperia M] thichthat:
Off topic: I've just install material theme for TWRP. It really looks awesome. Here's how I installed it:

- Download 2860_480x800_(which theme you want).zip from HERE

- Rename it to ui.zip, copy it to /data/media/0/TWRP/theme (create the "theme" folder if you don't have it)

- Reboot to TWRP
[Sony Xperia M] Agu_Ra:
Yeah, great theme. Used it before started building TWRP for our device, after that stopped (for more clear testing).
[Sony Xperia M] thichthat:
V4.7 is available on play store!

This version was actually built 3 days ago. I tested intellidemand and I found that it's a very good governor.

About the dt2w/s2w, there's a small improvement. Forever deep sleep bug is now fixed, but sometime this function doesn't work.

Now I'll show you why, but first you should know how this function works on our phone: whenever you tap on screen, it will acquire a wake lock and wake cpu up for 1 sec. Sometimes it fail to exit suspend state, so the phone go into forever deep sleep. I fix this bug by adding code to check if the phone is awake before reading fingers data.
[Sony Xperia M] dim^n:
[MENTION=4929675]thichthat[/MENTION], on ur opinion the kernel still not works properly on kitkat? I can test it again but Im afraid I can break the NAND cause of lots of worst flashes...
[Sony Xperia M] thichthat:
I haven't tested on kk yet. Still don't know how to fix problem with mobile signal.
[Sony Xperia M] thichthat:
Good news: Today I tested multiROM on my kernel, and everthings works fine. I'll try to fix touch problem on multiROM and send the commit to main developer if it works.
[Sony Xperia M] sidsharma2201:
[MENTION=4929675]thichthat[/MENTION] hey.. i tried internal storage disable mode on this new ROM parallax OS by same person who released XenonHD ut clearly this mod isn't working in this rom. I even tried last NUI-MOD_xenon_stable2.zip but same bootloop.

So i want to know if i can manually push these files?

Edit: i tried manually pushing files too...Not working...
[Sony Xperia M] thichthat:
DON'T flash NUI-MOD_xenon_stable2.zip on any other ROMs. You phone will SURELY be bootloop.

Follow the instruction, please.
[Sony Xperia M] sidsharma2201:
i tried xenon_stable2.zip after i got into bootloop..as trail and error..

Is there any sure shot method to get this mod work..?

i got my 32gig sd card today and i was really hoping to get it work on this rom..
[Sony Xperia M] Agu_Ra:
BTW, [MENTION=4929675]thichthat[/MENTION], I've got one idea. A feature I dreamed about for long time. Is it possible to add offscreen gestures for switching tracks in player? As far as I understand dt2w and s2w send power key code. So can you set next key code to be sent by swiping from left edge to right and inverted gesture for previous key?
[Sony Xperia M] thichthat:
NUI_MOD-xenon_stable2.zip can only be used for xenon stable 2 ROM. If you want to use this mod on other ROMs, download the automatic patch, run it on your computer and follow the instructions.

I thought about this feature before. However, the biggest problem is that it's hard to detect if music are being played from kernel side. If you accidentally swipe left or right, the music will be automatically played and that's not good, so I decided not to add this feature.
[Sony Xperia M] minibootsmann:
After applying this mod, my internal storage was gone, but I didn't see any further improvement. My whatsapp media weren't recognized anymore ("sorry this media file doesn't exist on your sd card") and I had to reconfigure Titanium Backup.

It was my fault applying this mod because I believed it would free the internal storage and increase system memory.

After installing the "backup.zip", everything is fine again. As I don't install any games on my phone, this patch is of no use for me.

Nevertheless, I am very happy about the NUI Kernel, as it heavily improves the power consumption of my phone! :good:
[Sony Xperia M] Agu_Ra:
But can you add it for tests? Switching tracks by volume rocker works only when music plays, it doesn't start it when it is turned off. I know, it works on framework level, not on kernel level, but maybe on kernel level it will work the same too. BTW, I will try to test if next/prev keys start music by input command in terminal (very nice command, we can call even touch and swipe events through terminal using it), just need to find out how to send key code via it and what is next key code.

---------- Post added at 15:01 ---------- Previous post was at 14:33 ----------

Tried input keyevent MEDIA_NEXT in terminal emulator. You were right, it switches music on, at least default CM player does. So better don't waste your time on this. But looking from other side it is not very possible to do accidental swipe from one edge to other, and also when music is turned off the phone is in deep sleep, so this gesture will not work from one try, it will protect us a bit from accidental player starting. And even if someone don't need it or is afraid to start accidentally music he can simply not switch it in tweaks menu.
[Sony Xperia M] Garv Maggu:
[MENTION=4929675]thichthat[/MENTION] Oh my god Nui..!! How many features you are adding to this kernel..!! You also added GPU control. This kernel is becoming awesome and awesome..

Let me guess some future features of this kernel :-

1. Weather control :- You can control the weather of your city. Bring acid rains when you want to..!!

2. Airplane mode :- Hold the phone tightly and you are in Chicago from England.

3. Cooking feature :- Phone can be transformed into microwave. Cook rice when you want.

4. Bombarding :- Destroy the whole city with atom bombs.

5. Pokémon :- Catch all pokémons in your master ball.

Good luck Nui..!! :D :D

Waiting for these features. ;) ;)