[KERNEL] Chroma.Kernel r4 | Stable

JoaoPaulo

Senior Member
Feb 9, 2013
649
873
0
Porto
True, but the driver is universal and supports a wide range of fpc1XXX devices. And the driver is called fpc1020. ;)
That i didnt knew, i will try to do it then ;)

EDIT: look at this commit, CM is already using fpc1020 driver ;) (https://github.com/CyanogenMod/andr...mmit/a2eaa438d10f3fbfaad02e1a45d824cb78f64bb8)

EDIT2: But it seems its not all implemented. I will try to port that feature, as soon as i get the device, it doesnt take much long now, as i ordered it yesterday.
 
Last edited:
  • Like
Reactions: luiseteyo

MrColdbird

Senior Member
Nov 25, 2011
1,178
2,195
0
www.black-seraph.com
That i didnt knew, i will try to do it then ;)

EDIT: look at this commit, CM is already using fpc1020 driver ;) (https://github.com/CyanogenMod/andr...mmit/a2eaa438d10f3fbfaad02e1a45d824cb78f64bb8)

EDIT2: But it seems its not all implemented. I will try to port that feature, as soon as i get the device, it doesnt take much long now, as i ordered it yesterday.
I know but as I said OnePlus has modified the driver with extra code for the OP2 so they can simulate capacitive buttons.

That is exactly what we want.
I've already ported over the driver from the OP2 kernel but as of now it fails to start with a 22 error in dmesg.
 

JoaoPaulo

Senior Member
Feb 9, 2013
649
873
0
Porto
I know but as I said OnePlus has modified the driver with extra code for the OP2 so they can simulate capacitive buttons.

That is exactly what we want.
I've already ported over the driver from the OP2 kernel but as of now it fails to start with a 22 error in dmesg.
drivers/input/misc/fpc1020_nav.c
You only need to add this file to your source, and fix some bugs that might appear (if they appear, i am 90% sure thats no problem)

I searched in source, and that is the file that report gestures to system as a key pressed
 
Last edited:

MrColdbird

Senior Member
Nov 25, 2011
1,178
2,195
0
www.black-seraph.com
drivers/input/misc/fpc1020_nav.c
You only need to add this file to your source, and fix some bugs that might appear (if they appear, i am 90% sure thats no problem)

I searched in source, and that is the file that report gestures to system as a key pressed
I know. :)

Edit: We don't even need the whole fpc1020_nav.c file... that one seems to be there for full fledged touchpad emulation.
For our needs we can simplify it a bit more and just dumb it down to a regular tap -> simulate keycode one.

Edit2: I think I busted something in my port. The interrupts are going crazy now. :/
 
Last edited:

JoaoPaulo

Senior Member
Feb 9, 2013
649
873
0
Porto
I know. :)

Edit: We don't even need the whole fpc1020_nav.c file... that one seems to be there for full fledged touchpad emulation.
For our needs we can simplify it a bit more and just dumb it down to a regular tap -> simulate keycode one.

Edit2: I think I busted something in my port. The interrupts are going crazy now. :/
I will port the all file so i can get other cool features and create a useful app that allows user to use gestures to open apps or something like that :)
I will use generic codes like KEYCODE, so it dont override with some buttons or special features
 

MrColdbird

Senior Member
Nov 25, 2011
1,178
2,195
0
www.black-seraph.com
Bro, 2 hours of coding and always getting missing functions (trying to port gestures), this will be so hardcore!
I got a minimal port (just single button, no full touchpad emulation) done but it interrupts like crazy, so yeah I know why I didn't bother with a full port. :)

You can do it, if you need mental or other support just say so.
 

adanoss

Senior Member
Nov 16, 2009
130
27
58
Moscow
OK! I'm on latest MOKEE and kernel seemed to fit perfectly, thought deep sleep became terrible, phone doesn't seem to sleep at all...
Screenshot_2015-12-08-22-10-36.png

In CPU settings page I've noticed that 2nd core doesn't unplug even at low CPU load.
Screenshot_2015-12-08-22-11-07.png

And if manually unplugged any of secondary cores seems not to plug-in and CPU works on 1st single core
Screenshot_2015-12-08-22-20-50.png

Can it be due to custom hotplug? Or mb it's settings?
 
Last edited:

JoaoPaulo

Senior Member
Feb 9, 2013
649
873
0
Porto
OK! I'm on latest MOKEE and kernel seemed to fit perfectly, thought deep sleep became terrible, phone doesn't seem to sleep at all...

In CPU settings page I've noticed that 2nd core doesn't unplug even at low CPU load.

And if manually unplugged any of secondary cores seems not to plug-in and CPU works on 1st single core

Can it be due to custom hotplug? Or mb it's settings?
I am experiencing that too, its hotplug problem, but as far as i tested until now, stock mpdec seems to have a great battery too, and a good performance (got 55746k in antutu 6.0). So i will revert hotplug to stock one and make our experience even better ;)