On your second tap, hold it on the screen for a millisecond longer.
This actually helped. For months the Knock On feature worked smoothly, as did the Off feature. Suddenly it stopped working so well. I had to tap very precisely and slowly, even then it was hit or miss. Better now. Off isn't an issue because I use Nova launcher gesture with Screen Off. Is there any way to adjust the sensitivity of the proximity sensor?
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?