[KERNEL][CAF][5.1.1][TW / MIUI / ColorOS] Tensei_r5 [24/06/2017]

Demicro

Senior Member
Aug 10, 2015
659
318
0
Mahon
The source code is uploaded to AFH and Mediafire. It isn't on Github anymore. Sharing the source code as I did is allowed. You can download and check it.
It's of no use a source code that is not to be able to appreciate the changes that have been applied. I have seen some people that have done that. An act a little selfish, and can only serve a limited group of people.

Anyway, thank you very much for sharing it.?

Sent from my Samsung SM-G955F using XDA Labs
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
It's of no use a source code that is not to be able to appreciate the changes that have been applied. I have seen some people that have done that. An act a little selfish, and can only serve a limited group of people.

Anyway, thank you very much for sharing it.?

Sent from my Samsung SM-G955F using XDA Labs
I had a reason why I've switched to share the source like this. Anyway, the source is available and can be downloaded and used the way an user wants, just that he doesn't see the commits :p.

Thank you for your opinion though! If you still wanna talk about this, you can PM me.
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
Touchwiz

Sent from my SM-J500F using Tapatalk
Hmm, that's strange. I've tested the kernel myself before and the wifi works fine. Also, @updesh94 and other people didn't encounter such issue and there shouldn't be any issue since the wifi module is getting flashed along with the kernel.

Try to flash the kernel again or take pronto_wlan.ko from modules in zip file, place it in /system/lib/modules/pronto, set the correct permission (0644) and reboot.
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
Hi plz chek camera for j500h not work
Plz fix bug
Tell me more details.
So, you've flashed it on Touchwiz 5.1.1 and camera doesn't work? If yes, then share me a logcat (Google will tell you how to take one).


EDIT:

He contacted me through PM and he shared me a picture taken with the phone and it seems that is blurred, but i don't think it's related to the kernel since there isn't any change regarding camera and J500FN source should be same on the other models. CM12.1 is using J500FN source too and there isn't any such problem. Maybe he has a hardware problem or something else. Beats me.
 
Last edited:

Shahroz Ahmed

Senior Member
Feb 24, 2016
236
31
0
Karachi
@#Henkate Tried again and it worked.
I would like to ask you if you would build for marshmallow as well. You're right that lollipop is better than marshmallow for our device but talking about marshmallow based Grace ux, it is very good and features rich and probably many users prefer it on aosp, lineage based roms.
Hope you will consider it

Sent from my SM-J500F using Tapatalk
 
  • Like
Reactions: #Henkate

updesh94

Senior Member
Dec 5, 2012
500
449
83
Noida
@#Henkate It seems that there is some problem with the latest tensei r4, I might have changed some settings and now the phone restarts as soon as it locks!! I tried so many things but the problem was not solved so I Changed back to v 3.0 and problem is gone..
 
  • Like
Reactions: #Henkate

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
@#Henkate It seems that there is some problem with the latest tensei r4, I might have changed some settings and now the phone restarts as soon as it locks!! I tried so many things but the problem was not solved so I Changed back to v 3.0 and problem is gone..
What settings did you change?
Would you flash latest version again and share me last_kmsg (kernel log) after the random reboot occurs?

If it restarts right when is getting locked, maybe the problem is the I/O sched switcher which change the scheduler to noop when screen gets locked. I might have missed some commits regarding I/O sched switcher, not sure yet, but it does work as I've tested myself. It switch to noop scheduler right when screen gets locked and switch back to previous scheduler when 10 seconds has passed after screen is turned on.

You can check that I/O sched switcher is working by typing following commands in terminal on PC:


Code:
[B][COLOR="Blue"]// You gotta spam second command or make a small script to spam it every second, so you see it in real time[/COLOR][/B]

adb shell
cat /sys/block/mmcblk0/queue/scheduler
The output will be (example):

Code:
[B][COLOR="Blue"]// the scheduler with brackets ( [ ] )is the current scheduler being used[/COLOR][/B]
[cfq] sio sioplus noop deadline row

[B][COLOR="Blue"]// When noop will be used, it'll be:[/COLOR][/B]

cfq sio sioplus [noop] deadline row


I need to see the kernel log.
 
Last edited:

souvikpal

Senior Member
Oct 11, 2015
77
22
0
Kolkata
@#Henkate It seems that there is some problem with the latest tensei r4, I might have changed some settings and now the phone restarts as soon as it locks!! I tried so many things but the problem was not solved so I Changed back to v 3.0 and problem is gone..
Same here... the phone restarts as soon as screen gets off.
Forced to flash another kernel.
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
Don't know why i am getting random reboots after flashing this kernel in my j500f
Thank you for your feedback!

It's a known problem.
Please read my post here: https://forum.xda-developers.com/showpost.php?p=72385626&postcount=150 .

Unfortunately, I didn't have time at all to take a look at it. Also, I haven't experienced random reboot on my J5, but it was in idle.

Please share me the kernel logs as I'm not using my J5.

I can build the kernel without the i/o sched switcher to test if the problem still persists. But is anybody interested in testing it?
 

kumarsuraj005

Member
Jan 26, 2016
11
0
0
What settings did you change?
Would you flash latest version again and share me last_kmsg (kernel log) after the random reboot occurs?

If it restarts right when is getting locked, maybe the problem is the I/O sched switcher which change the scheduler to noop when screen gets locked. I might have missed some commits regarding I/O sched switcher, not sure yet, but it does work as I've tested myself. It switch to noop scheduler right when screen gets locked and switch back to previous scheduler when 10 seconds has passed after screen is turned on.

You can check that I/O sched switcher is working by typing following commands in terminal on PC:


Code:
[B][COLOR="Blue"]// You gotta spam second command or make a small script to spam it every second, so you see it in real time[/COLOR][/B]

adb shell
cat /sys/block/mmcblk0/queue/scheduler
The output will be (example):

Code:
[B][COLOR="Blue"]// the scheduler with brackets ( [ ] )is the current scheduler being used[/COLOR][/B]
[cfq] sio sioplus noop deadline row

[B][COLOR="Blue"]// When noop will be used, it'll be:[/COLOR][/B]

cfq sio sioplus [noop] deadline row


I need to see the kernel log.
Every time i need to clear dalvik catch and catch then phone boots properly
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
Lol my friend with J500F tried this kernel and now he gets random reboots

Thank you for your feedback!

It's a known problem.
Please read my post here: https://forum.xda-developers.com/showpost.php?p=72385626&postcount=150 .

Unfortunately, I didn't have time at all to take a look at it. Also, I haven't experienced random reboot on my J5, but it was in idle.

Please share me the kernel logs as I'm not using my J5.

I can build the kernel without the i/o sched switcher to test if the problem still persists. But is anybody interested in testing it?

Another giveaway? :laugh:
For real.
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
No, for real. When will the reboot bug be fixed? He likes Lollipop for some reason and this kernel should give him the best performance and battery.
@kumarsuraj005 shared me the log of kernel and at this moment im taking a look at it.

Considering the reports which says that the random reboot occurs when the screen goes off, its most likely this issue will be solved by disabling the i/o sched switcher since this is changing the scheduler to noop when the screen goes off and thats when the random reboot occurs too.

I wont leave the kernel with random reboot.
 

Amarius1

Senior Member
Aug 7, 2016
612
181
0
Craiova
@kumarsuraj005 shared me the log of kernel and at this moment im taking a look at it.

Considering the reports which says that the random reboot occurs when the screen goes off, its most likely this issue will be solved by disabling the i/o sched switcher since this is changing the scheduler to noop when the screen goes off and thats when the random reboot occurs too.

I wont leave the kernel with random reboot.
Ok waiting