yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Agu_Ra:
You should read the OP in TWRP recovery thread. Forum is for searching, reading and finding answers at first. And if they are not found

then asking for them is a good idea.

No way!

And I'd advice your friend reading the thread before installing. It is good he found alternative solution, but there are already "invented" install methods that are clearly described. But such situations inspire me to write the FAQ. And sorry for offtopic, I just couldn't leave my thoughts silent.
[Sony Xperia M] alieph:
does the lates v4.1 works for dual sim? manually or instantly way to install this? i'm on cm11 nightly
[Sony Xperia M] Nicklas Van Dam:
no, you need to update it to 4.3, or you will get problem on baseband issue and bootloop
[Sony Xperia M] alieph:
I mean v4.1 of this nui kernel, not JB 4.1
[Sony Xperia M] Nicklas Van Dam:
ups, i'm sorry. i don't get it :D
[Sony Xperia M] ososmam:
is f2fs work i tried it with no success at all ?
[Sony Xperia M] mszain:
You can flash it via terminal am i right?
[Sony Xperia M] ososmam:
[MENTION=4929675]thichthat[/MENTION]

the settings didn't save even after close the tweak menu and open it again
[Sony Xperia M] ndrancs:
Yes, use it on:

/data

/cache

/ext_card

See screen shot.
[Sony Xperia M] Bonoboo:
Sorry for offtop, but does using f2fs gives real advantages?

Just curious.
[Sony Xperia M] thichthat:
I will fix this bug in next version.

For getting current settings, you can go to /sys/nui and open/edit files here. For restoring on boot, go to /system/kernel to edit files

Edit: Can you give me your logcat?

Btw, I'm testing the new dt2w. In 1 day, there's no forever deep sleep but I still have to tap many times to wake my phone up.
[Sony Xperia M] Garv Maggu:
Ya.. you are right. I flashed FOTARecovery on my phone using terminal emulator app.
[Sony Xperia M] manal.21sinha:
Okay thanks for your time. Sorry i have a bad internet connection so the "Thanks" button isn't working as it should :D
[Sony Xperia M] ndrancs:
Often It's give error, example: when download big file.

On /data

Free space: 700mb

Download file size: 380mb a zip file.

It's make the zip file corrupt, the md5sum is mismatched. Not happen in ext4 fs.
[Sony Xperia M] AFN:
Bug regarding Init.d

[MENTION=4929675]thichthat[/MENTION]

Hey really thanks for this kernel..

Anyway I noticed a bug when I tick enable init.d on boot

It gets ticked but when I press back and re-check it, not ticked.

I can confirm init.d is not enabled still?

Can you fix this bug or at least tell me how to enable Init.d feature manually?

I really need it

Thanks in advance.
[Sony Xperia M] thichthat:
If you checked it, it's still enabled. That's a bug of the tweak menu. Your settings still be saved but it they cannot be read by the app. I'll fix it in next version.

Btw, can you open tweaks menu and capture a logcat? Thanks.
[Sony Xperia M] manal.21sinha:
Yeah init.d works after you enable it and reboot. You can check from Kernel Adiutor or a similar app.
[Sony Xperia M] dastan4eva:
Hey guys can someone help me

The kernel is awesome actually much thanks to [MENTION=393151]Thi[/MENTION]tchat everything works awesome for me overclock and even dt2w

But only problem is after flashing the kernel i cannot hear anything in call not even with headset sometimes i hear liw volume ring but if someone picks up the call i hear nothing - can someone help solve this ? This is my only issue
[Sony Xperia M] Garv Maggu:
Try using another ROM. I'm on currently XenonHD ROM.
[Sony Xperia M] AFN:
No after enabling it on app, it's neither enabled on app nor in system I have scripts and they are not launching still... I'm trying to use INT2EXT4+ and it's not working also Universal Init.d app confirms init.d isn't enabled

And about logcat I'll try

EDIT: This is the logcat as promised MediaFire
[Sony Xperia M] thichthat:
Maybe you should try using another ROM.
[Sony Xperia M] thichthat:
Thanks for the logcat. This problem will be fixed in next version.

I tried using an init.d script to write the date to /data/test. It works on every boot. Maybe you should try other init.d enable apps.
[Sony Xperia M] AFN:
I searched data dircetory and there is no test directory, I can confirm Init.d is not working...

EDIT: INIT.D working after checking in app, looks like the bug is in the app only, I just problems with permission, cause init.d folder and init.d scripts should have permission 777
[Sony Xperia M] thichthat:
So stranger... both method in kernel and universal init.d work for me. The kernel just add commands to init.rc so I think that it maybe not compatible with some ROMs. You can try using some init.d enable apps.
[Sony Xperia M] thichthat:
V4.2 is available on play store!

Not mentioned in change log:

- Fix installer can't extract files on some device

- Fix tweaks menu cannot read saved settings

- Try to fix dt2w vibration

- Merge newest changes from CM

Note:

Default value of torch intensity is 2
[Sony Xperia M] mszain:
Help please!!!!

I tried to install v4.2 automatically but the installer won't start so i tried manually,it worked but wiped my data and make the gapps crashing all the time,acc sync also broken because of the update.really need help anyone
[Sony Xperia M] Agu_Ra:
Nothing strange. Binaries or scripts should have "x" permission to be executed. So without it scripts in init.d folder won't work.

---------- Post added at 10:17 ---------- Previous post was at 10:14 ----------

BTW, dt2w vibration is fixed. Thank you, thichthat, it now works like a charm. Just hope my phone will not go to coma while sleeping, like it sometimes was earlier :D
[Sony Xperia M] Garv Maggu:
[MENTION=4929675]thichthat[/MENTION] Why don't you update the changelog on XDA thread?
[Sony Xperia M] thichthat:
Oh sorry I forgot. Will it update later.

Btw, swipe2wake is being tested on my phone.
[Sony Xperia M] Garv Maggu:
WOW..!!

Swipe2Wake, is that different from DoubleTap2Wake? :) :)
[Sony Xperia M] Bonoboo:
Today twice faced bug: after powering screen by button it become unresponsive. Had to reboot phone via holding Power.

Latest version, full DT2W with vibraton.
[Sony Xperia M] Agu_Ra:
Holy sh*t, your kernel becomes better and better, man. You're the best kernel developer for Xperia M. Just today I were thinking NUI Kernel is now very good and stable, so no need to wait impatiently for update, but now I am eagerly waiting for the next build.
[Sony Xperia M] thichthat:
It should works like on some blackberry phones which has swipe to wake feature (such as the playbook or Q10). Some other custom kernels also has it.

Can you give me your last_kmsg?
[Sony Xperia M] Bonoboo:
Sorry, forgot about it.

Already reverted stock kernel - 2 reboots and log overwritten.

Maybe it's only for me. If no - someone will post it for sure.
[Sony Xperia M] ndrancs:
.

Yes I can confirm that the screen is become unresponsive after screen is off then turn it on via dt2w or power button maybe 1 hour after screen is off. And the forever deep sleep is still in there.

Set gpu 320 or 400

Set cpu 1026

Dt2w set to half screen. it's doesn't matter half or full screen the bug still occurred.

the screen is become unresponsive or forever deep sleep so I had to remove the battery.
[Sony Xperia M] thichthat:
Please hold power button for 8 secs and give me the last_kmsg. Removing battery will delete it.
[Sony Xperia M] Garv Maggu:
[MENTION=4929675]thichthat[/MENTION] I also faced forever deep sleep bug. I had to remove battery and plug it in again.

By the way, is this a fault in this kernel or in my ROM(Xenon HD Stable2) ?? :confused: :confused:
[Sony Xperia M] thichthat:
Is the problem because of dt2w? Did you have bug that screen is unresponsive? I tested in 1 day without rebooting and there's no forever deep sleep.
[Sony Xperia M] mszain:
So no one knows why the app wiped my user data?. Please i only need explanation. Im on cm12.1 nightly the previous versions worked with no problems.
[Sony Xperia M] dim^n:
I think without logs its hard to deside what it was. The first rule for experimentator is to make a nandroid before any flash or modifying!

[MENTION=4929675]thichthat[/MENTION],

Ive tested the kernel, everything works except auto install, I used option "disable fota", by default twrp 2.8.5.0 is a recovery for me. Torch led option is very interesting, cause our flashlight is enough bright. Zen works better than others, and thats not surprisingly. The only thing I want to use, is flash queue for user patches, cause msm_sitar file has bugs and logo flasher is a must have for me now. Proximity tweak Ive not tested enough, and dont have problems with it, but it very usefull anyway, now I can speak freely positioning smart near my ear. Thanks for such a good kernel!
[Sony Xperia M] thichthat:
Sorry I wrote a reply but I don't know why it disappeared (maybe because of the unstable internet).

The problem is not because of my kernel. The installer does nothing to your data partition. I faced it once and that's because some data was corrupt. But I had made an nandroid backup and restored it.
[Sony Xperia M] mszain:
Oo good to know then, btw really youre going to port swipe2wake to our device ?:laugh::good:
[Sony Xperia M] thichthat:
Yes. Exactly I developed it myself, not copied from other devices. It's now working like on blackberry device (swipe up from bottom).

It works well for me. No any forever deep sleep yet, but still I have to swipe twice to wake my phone up.
[Sony Xperia M] Garv Maggu:
You are awesome.

It also worked fine for me for 1 day. After using it for almost 36 hours, I faced this issue. I had to remove battery and plug it in again.

I don't know where the bug is.. in kernel or in ROM (Xenon HD Stable2) or because of dt2w ?? :confused: :confused:

I'm still happy after facing the bug because of the features and powers that you provided for our phone.

By the way, thanks for all your efforts. I love you and your kernel. :) You helped us so much by working for this device. :D This kernel unleashes the real power of the phone. :o I never thought that my phone could do that much. :cowboy:

You are just a student and I never expected that a student could do this much. :)

Thanks once again Nui. :) :D

---------- Post added at 01:08 PM ---------- Previous post was at 01:04 PM ----------

Are you a human being or robot? You are adding new features which we never expected day by day.

Thanks Nui.

:) :)
[Sony Xperia M] TheRealSS:
My PC doesn't detect my phone when I connect with USB while using this kernel
[Sony Xperia M] thichthat:
I'm using xenonHD stable 2 too. I think that it hasn't fixed yet. I tried to fix it but I only have one day to test, then I had to reboot my phone to add some new codes.

Did you tried connecting via TWRP? I never have problem with usb connection.
[Sony Xperia M] TheRealSS:
How to connect via TWRP?
[Sony Xperia M] ndrancs:
Nui, the new gcc 4.9.4 is up, please check the link last time I sent it to you.
[Sony Xperia M] Garv Maggu:
Just open TWRP recovery and connect your phone to PC with usb cable. Make sure MTP is enabled in TWRP recovery. :) :)
[Sony Xperia M] thichthat:
I have tested both dt2w and s2w for more than 42hrs. Still can't understand why many others faced forever deep sleep bug. :crying:

p/s: using XenonHD stable 2
[Sony Xperia M] Agu_Ra:
For me there is no forever deep sleep bug after last update, but earlier it was quite often. There is one very strange thing on our devices: some bugs always appear for one people but never for other, for example: FC of Music app on CM12, forever deep sleep in all KitKat ROMs etc. First can be because of user files, but second is for surely unknown reason. I even remember one bug on stock 4.3: sometimes apps didn't open before reboot, and turning the screen off caused never wake up bug, but I didn't hear about this bug from other users. So many bugs are specific for curtain devices of the same model and software.
[Sony Xperia M] dim^n:
Dat amazing bro :D Soon we'll have an option, that no one droid had! If you found such unique stuff, can you say what tweaks you plan to add in future?

thats right, and some appears for forever.
[Sony Xperia M] thichthat:
I think that those problem are because the img file was corrupt. In next version I'll add an md5 checker to the installer.
[Sony Xperia M] manal.21sinha:
Any way in which you could fix the issue with calling on dual sim that i had informed you of from your side? Or is there absolutely no compatibility with the dual sim patch? Now that you have made this kernel so much better, I really wanna use it but for that bug :'(
[Sony Xperia M] thichthat:
Can you give me link of the dual sim patch? I use CM's source so I think it should work like any other CM kernel. Anw, I'm not having a dual sim device so I don't have any method to check if it works.
[Sony Xperia M] manal.21sinha:
Here is the link to the dual sim patch taken from Xiaomi Mi2 blobs by [MENTION=4343949]PecanCM[/MENTION] and addon.d script added by [MENTION=5037002]Bonoboo[/MENTION]. I can confirm this new patch works on stock kernel on any Lollipop ROM, not just CM. Hope this helps you :good:
[Sony Xperia M] Garv Maggu:
[MENTION=4929675]thichthat[/MENTION] When will you release the next version?

Eagerly waiting for it. :) :)
[Sony Xperia M] thichthat:
I've just uploaded new version to the play store. I'll take about 2-3hrs for google to verify it.

And don't forget forum's rule: "Never ask for ETAs". Moderator may remove your post.

Anyway, this is the change log:
[Sony Xperia M] Agu_Ra:
But why?
[Sony Xperia M] SunitTalwar:
nice kernel but just one bug (though its a major one) no signal on aokp 4.4 rom after boot maybe its only on my phone using dual sim phone with single firmware flashed
[Sony Xperia M] Agu_Ra:
[MENTION=4929675]thichthat[/MENTION]

And what is swipe2wake_oneswipe in /sys/android_touch folder? What if I switch it from 0 to 1?
[Sony Xperia M] itsnie:
I'm not sure, but change 0 to 1 is for enable s2w ..

Sent from my waifu
[Sony Xperia M] Agu_Ra:
No, s2w is triggered by swipe2wake file in sysfs.
[Sony Xperia M] thichthat:
In lollipop, the unlock gesture is swiping up. This option allow we to do both turning on screen and unlocking your phone in one swipe...

But wait... it seems to be not working. I still have some problem in the code, so I didn't make an turnable tweak for it in the app.
[Sony Xperia M] thichthat:
In some ROMs, vibration intensity and screen color control in settings always FCs. Many custom kernels change selinux to permissive to fix it. This change didn't give me any error.
[Sony Xperia M] dim^n:
Yeah, on AICP 4.4.4 the same, single sim. [MENTION=4929675]thichthat[/MENTION], please, fix it!
[Sony Xperia M] thichthat:
Do you have signal on older version?

Can you send me the radio log?
[Sony Xperia M] Agu_Ra:
But for me it works. But only if I swipe through all screen and not too fast.
[Sony Xperia M] thichthat:
[MENTION=4528550]SunitTalwar[/MENTION] [MENTION=5988636]dim^n[/MENTION] Can you try newest radio firmware here: http://xdaforums.com/showthread.php?t=2703161

Also radio blobs from MI2, for single sim: http://www.mediafire.com/download/61k8u7uk0d4z817/radio_blobs_single_MI2.zip
[Sony Xperia M] icoolguy1995:
thichat I installed the kernel but only tweaks related to screen brightness/colour are applying. When I try to thick overclock option it ticks but I press the back button and then again visit the same option I find it untick.

Same with the dt2w and s2w, there states remains unknown in the app.

What I am doing wrong here?

BTW I flashed through manual method by flashing method.zip.

I also tried kernel tunner and trickstermod, in them no dt2w or s2w option appears.
[Sony Xperia M] mszain:
Maybe you flashed the wrong or the previous version of method.zip.check the size, the newest method.zip is 12.18 mb i use the manual method too and everything works fine.
[Sony Xperia M] icoolguy1995:
That's not possible! Because that was the first time I downloaded kernel for playstore.

And yah its around 12 MB.
[Sony Xperia M] thichthat:
Can you run the app, go to tweaks and send me the logcat?

Edit: Can you check if files in /sys/android_touch and /sys/nui are exist? Maybe that's because the app can't read saved settings.
[Sony Xperia M] mszain:
[MENTION=4929675]thichthat[/MENTION],can you fix the app that still saying to flash instal.zip.zip instead of method.zip for the manually method and it can make people confused.
[Sony Xperia M] icoolguy1995:
Yes, they exist. Attaching log.
[Sony Xperia M] thichthat:
Thanks. I'll try to fix.

Today was a bad day. My screen was broken and it should take a few days to be repaired :(
[Sony Xperia M] icoolguy1995:
Ohhh!! BTW what is the problem?

Now some weird things are happening, like, sometimes swipe2wake works but when it open screen then touch screen stops working, I had to take out battery.
[Sony Xperia M] Agu_Ra:
And "manually method" to "manual method", it would be correct in English. But it is not so important.

---------- Post added at 11:17 ---------- Previous post was at 11:14 ----------

We all hope it will be fixed soon. BTW, does your screen still work? How is this sent from your nicki?
[Sony Xperia M] thichthat:
My phone was dropped when I was going upstair. The digitizer was broken, but it still works.

I'm having same problem. Still trying to fix it.

Btw, can you give me the list of files in /system/kernel/ ? All settings are saved there and the kernel will read it everytime your phone boot up.
[Sony Xperia M] thichthat:
Hello everyone. I'm back here.

I had a very busy week. As you know, my phone was broken on monday. In the next day I take it to an unauthorized phone store. It was fixed on wednesday and costed me 350.000VND ($16.1).

They replaced the digitizer, but then it worked inaccurately. So I decided to buy a 2nd hand XM, and then sell my phone to ones who need its parts like mainboard or screen. I bought the new XM for 1.200.000VND ($55.2) and sold the old one for 500.000VND ($23).

At the end, I've spend 1.050.000VND($48.3). It's 250.000VND($11.5) more expensive than authorized warranty. But I learned something from that: NEVER use your phone when you're going upstairs. And the final thing is that Murphy's law is ALWAYS true.

So the next story I'm going to tell you should be about new features in the next update. Keep following the thread ;)
[Sony Xperia M] Agu_Ra:
We're glad you're back, [MENTION=4929675]thichthat[/MENTION]. And I have one idea that you can easily implement. Reducing min brightness is good idea, but the screen is too dim when using autobrightness, it is only useful in the night, but going to app everytime you want to change min brightness is kinda irritating. Can you add key combo for reducing brightness to the lower than stock level? E. g., focus + vol-, or maybe force brightness control with volume rocker when focus key is pressed? BTW, your vol- + focus brightness tweak works even in recovery.
[Sony Xperia M] thichthat:
This feature is already added. You can write a value from 1 to 255 to "/sys/nui/brlock". This will force your brightness to a fixed level, even when you change brightness level from android side. To disable this feature, you can reboot your phone or easily write 0 to "/sys/nui/brlock".

I'll add an option for it in next version.
[Sony Xperia M] Agu_Ra:
But it needs to be written via terminal emulator and can't be quickly accessed like via key combo.
[Sony Xperia M] mszain:
Btw can you add shortcut to camera app using camera button just like on stock rom?
[Sony Xperia M] thichthat:
It should be supported in ROM side. You can use xposed module to enable it.
[Sony Xperia M] mszain:
Nah i am not going to use xposed due to some reasons and i dont see any apps on playstore to toggle it.

Btw this device has good build quality thou....

Ive dropped it many times but only got cracked corner frame.
[Sony Xperia M] thichthat:
Including this feature to kernel is not easy at all. AFAIK, there's no method to open an app in android side from kernel side. The kernel only do things related to hardware.

I've dropped my phone many times. Only the time that I dropped it from over 3 meters, the screen glass was broken.
[Sony Xperia M] Agu_Ra:
AFAIK, it is fixed in new CM builds. And also third-party camera apps support it, e.g. Snap Camera.
[Sony Xperia M] Agu_Ra:
I caught screen not responding bug for first time, but I don't really know if it is kernel problem, 'cause lock screen didn't respond, but volume menu and power menu worked, so it is surely not touch driver bug, but it can be kinda overlay kernel-caused bug.
[Sony Xperia M] ndrancs:
Add more

Yeah that's what happen to me, just hold 8seconds to reboot the phone. But I can't upload the last kmsg for now.

And one more thing try to clear all recent apps before you lock the screen. I not facing this bug again.
[Sony Xperia M] thichthat:
I fixed this bug on my phone now, but still have to test. If you face the problem again, there's a trick: put 5 fingers on screen and release, then you can use your phone again.
[Sony Xperia M] thichthat:
Duplicated post
[Sony Xperia M] thichthat:
New version!

Planned for next version:

Add intelimm and i/o boost (thanks to [MENTION=5359154]ndrancs[/MENTION] )

Some fix for s2w

Can someone tell me if you see an update message when opening the app?

Edit: I can confirm that forever deep sleep bug is still there (with dt2w or s2w is on). The bug have came back since I used gcc 4.9.4. Still need time to fix it.
[Sony Xperia M] C25:
Yes update message is working.
[Sony Xperia M] Agu_Ra:
Just caught the same bug on new version, lol. And touching with 3 fingers was enough. And maybe 2 would be enough too.
[Sony Xperia M] thichthat:
Can you give me kmsg? Or can you enable Show touches in Settings>Developer options to see if there're fingers sticked on screen.

Btw, I'm testing intellimm. I works very smoothly and save battery.

Acording to this post, I'll try to add zzmoove governor in next version: xdaforums.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957/post59289777#post59289777
[Sony Xperia M] Agu_Ra:
I captured kmsg, but I think it is already outdated.
[Sony Xperia M] thichthat:
I rebuilt the kernel with gcc 4.9.3. Have tested for 16hrs and no problem yet. Maybe that's because of the new gcc?
[Sony Xperia M] mszain:
Hi im going to change my rom and ive disabled the emulated storage,AFAIK that mod only change how the system see the storage. So do i need to do something to my sdcard before flashing?.
[Sony Xperia M] thichthat:
No. Just flash new rom. After flashing you can reinstall the kernel and the mod. Don't flash the old install_zip.zip or nui_mod.zip, this will cause bootloop.
[Sony Xperia M] itsnie:
It's strange !

My dalvik cache wiped automaticly after use v4.4 for some hours ..

Does anyone have a proble like me ?

Sent from my waifu
[Sony Xperia M] dim^n:
[MENTION=4929675]thichthat[/MENTION], thanks for updates! and also for usefull link to governors guide! zzmoove is very interesting, but it http://xdaforums.com/showpost.php?p=59289780&postcount=2 says that hyper, based on ondemand is the best for performance and performance/battery. So it will be great to use it. I use hard interface, so even interactive is not enough. smartassV2 is good but not best for battery.
[Sony Xperia M] allrested:
XMD Support :)

Thanks, this kernel work on my XMD with Dual Sim rom based on AOSP. :good:

But the disable_emulated_storage make the phone not recognized dual sim card.

Anyway, thanks for sharing this great kernel :)

[IMG="some SS :)"]http://i.imgur.com/hBCTAvo.png[/IMG]
[Sony Xperia M] thichthat:
Oh I forgot to update the file. I'll fix this on next version.
[Sony Xperia M] manal.21sinha:
Which ROM and dual sim patch are you using? Are you able to make and receive calls? When i tested, I could also get dual sim but when receiving or making a call as soon as i placed my phone near my ear and activate the proximity sensor, my phone would freeze and reboot. Please check this and let me know if it works for you because if it does then i will happily install this wonderful kernel :)
[Sony Xperia M] Damian11131:
Can you optimize your kernel for stock ROM?
[Sony Xperia M] thichthat:
No. I don't have time or device to test it on stock rom. My device is running 5.1.1. It will be very terrible if I have to test the kernel on both 2 roms.