[Request] Source code for knock on/off

Search This thread

optimus975

Senior Member
Mar 4, 2014
78
13
Hi,

Does anyone have the source code or kernel module for knock on/off feature from G2?

I am looking to build the module from scratch for E975 KK Kernel or if the module has already been extracted then re-build it on E975 kernel.

I am not interested in using the exposed framework modules touch2wake or anything of that sort.

Thanks,
 

mathsz

Senior Member
Mar 6, 2012
913
434
Quebec
Well it's available in a lot of Git repos. Look in lge touch core. And the defconfig

Sent from my LG-D803 using Tapatalk
 

mathsz

Senior Member
Mar 6, 2012
913
434
Quebec
Thanks again.

Does this sound like a correct source for the knock on/off code ?

Also could you help me in compiliing this for lg optimus g kit kat kernel ?

Cheers,
OP



Not quite.
:)
1- geeb defconfig.
https://github.com/mathsz/kernel_msm/blob/matr1xuntouched/arch/arm/configs/geeb_defconfig

2- lge_touch_core.c
https://github.com/mathsz/kernel_msm/blob/matr1xuntouched/drivers/input/touchscreen/lge_touch_core.c

3- sweep2wake code
https://github.com/mathsz/kernel_msm/blob/matr1xuntouched/drivers/input/touchscreen/sweep2wake.c

I'm not compiling anything for a very long while. I've spent too much life-time on android as of now. Good time spent, good stuff learned, not doing it again. Besides, I don't have the OG anymore.

Check out xboxfanj for help on this forum. He may point you to the optimus G group, lots of help in there.

Have fun!

---------- Post added at 09:06 AM ---------- Previous post was at 09:05 AM ----------

Thanks again.

Does this sound like a correct source for the knock on/off code ?

Also could you help me in compiliing this for lg optimus g kit kat kernel ?

Cheers,
OP

SORRY,

the lge touch core you sent is OK.
 

optimus975

Senior Member
Mar 4, 2014
78
13
Not quite.
:)
1- geeb defconfig.
https://github.com/mathsz/kernel_msm/blob/matr1xuntouched/arch/arm/configs/geeb_defconfig

2- lge_touch_core.c
https://github.com/mathsz/kernel_msm/blob/matr1xuntouched/drivers/input/touchscreen/lge_touch_core.c

3- sweep2wake code
https://github.com/mathsz/kernel_msm/blob/matr1xuntouched/drivers/input/touchscreen/sweep2wake.c

I'm not compiling anything for a very long while. I've spent too much life-time on android as of now. Good time spent, good stuff learned, not doing it again. Besides, I don't have the OG anymore.

Check out xboxfanj for help on this forum. He may point you to the optimus G group, lots of help in there.

Have fun!

---------- Post added at 09:06 AM ---------- Previous post was at 09:05 AM ----------



SORRY,

the lge touch core you sent is OK.

Thanks a lot again.

Just one last query - Do you think I can compile these as modules for other non-lg device (just to test, i don't want to break my phone straightaway) and install them to enable the knock on/off feature, or are these hardware dependent modules?
 

mathsz

Senior Member
Mar 6, 2012
913
434
Quebec
Thanks a lot again.

Just one last query - Do you think I can compile these as modules for other non-lg device (just to test, i don't want to break my phone straightaway) and install them to enable the knock on/off feature, or are these hardware dependent modules?

well.

since it's lg g2 code ported to OG, my guess is you can. If the sensor are the same or respond the same way. Nothing like trying.

Worst case scenario is : you'll just have to reflash everything.


EDIT :
seems it's already been ported.
http://gs3.wonderhowto.com/how-to/g...3-for-increased-lock-screen-security-0155280/
 

optimus975

Senior Member
Mar 4, 2014
78
13
well.

since it's lg g2 code ported to OG, my guess is you can. If the sensor are the same or respond the same way. Nothing like trying.

Worst case scenario is : you'll just have to reflash everything.


ok..brill. one thing though what sensors do you think it's using...i guess touchscreens should be more or less similar across the manufacturers..


i guess this is just a workaround to get the feature...not really a kernel mod...
 
Last edited:

Top Liked Posts