Probably one of the most sought after features of the LG G2 is its "Knock Knock" capabilities. Rather than dealing with that pesky power button, you simply double-tap portions of the screen to either sleep or wake your device.
The G2 is the Nexus 5's bigger brother of sorts, as it was developed by the same manufacturer at the same time. Aside from a slightly larger screen, most all of the internals are virtually identical to those of the Nexus 5.
Today, we'll bring the similarities one step closer by porting all of those Knock Knock features to the Nexus 5, much like Andrew showed how to do for the HTC One.
What Exactly Is Knock Knock?
Both waking the phone and putting it back to sleep can be done through a simple double-tap gesture. Depending on the screen you're currently in, the placement of this gesture varies. These are the four main Knock Knock gestures:
- Knock On: When your phone is asleep (screen off), simply double-tap anywhere on the screen to wake it.
- Home Screen Knock Off: From anywhere on your home screen, double-tap an empty space to turn your screen off.
- Status Bar Knock Off: If you're in an app and the home screen is not immediately accessible to you, double-tap on the status bar at the top of the screen to put your device to sleep.
- Lock Screen Knock Off: If you've just double-tapped the screen to wake your device, but just wanted to glance at the time or your notifications, you can double-tap again on the lock screen to put the phone back to sleep.
What You'll Need for This softMod
- Rooted Nexus 5
- Custom recovery
- Xposed Framework
- Custom launcher
The custom launcher must allow home screen gestures. Nova and Apex are the most popular today, but only Apex offers the required gesture with the free version.
Step 1: Install GravityBox
From the Xposed Installer app, head into the Downloads section and search "GravityBox [KK]". Make sure to select the "[KK]" (KitKat) version, as this is the correct module for your Nexus 5. From there, tap Download and follow the prompts for installation.
Once installed, be sure to activate the module to get things up and running.
Step 2: Configure GravityBox
From the main page of GravityBox, tap Lockscreen tweaks. Find the option titled Enable double-tap to sleep and tick the box next to it. Hit the back button on your phone to head back to GravityBox's main settings page.
Next, tap Statusbar tweaks and tick the box for the setting labeled Enable double-tap to sleep once again.
Step 3: Install Apex Launcher
As I said earlier, this feature is available on several different launchers. For example, if you're a die-hard Nova fan who paid for a Prime Unlocker key, you can still accomplish this without switching home screen apps. But since Apex offers this feature for free, we'll guide you through this process using it as the example.
First, head on over to the Google Play page for Apex Launcher to install the home screen replacement app.
Once installed, tap your phone's home button. A dialog will appear asking you to Select a home app. Tap Apex Launcher, then hit Always.
Step 4: Configure Apex Settings
From the home screen, double-tap any empty space to bring up the Apex Menu, then tap Apex settings. Now head into Behavior settings on the next screen.
Scroll down a bit and hit Desktop double tap. Select Launch shortcut from the next list.
On the next screen, select GravityBox Actions, then scroll down to the bottom of the list and tap Go to sleep.
Since we've now overtaken the gesture that normally takes you into Apex settings with our Go to sleep function, we'll have to add a new way to access this menu in case we need to in the future.
Tap Desktop long press, then select Show Apex menu. This will allow you to get back into these settings by long-pressing any open space on your home screen.
Step 5: Download the ElementalX Kernel
In order to get the Knock On features, we'll need to install a custom kernel. ElementalX offers a nice, graphical installer interface that will walk you through enabling Knock On.
For those of you using the stock firmware, or any other AOSP-based ROM on your Nexus 5, hit this link to download the kernel. If you are using CyanogenMod, tap this link instead.
If you are unsure of which file to download, go to Settings, then tap About Phone. If the entry under Android Version says Cyanogen Version, use the second link. Otherwise, use the first link.
Step 6: Boot into Recovery
Once you've got the kernel file downloaded, long-press the Power button on your phone. Select Power Off, hit OK, then wait for the screen to go completely black.
Next, hold the Volume Down button with one finger, then hold down the Power button with another. On the screen that appears, tap the Volume Down button twice to select Recovery mode, then tap the Power button.
Step 7: Install the ElementalX Kernel
Now that you've booted into TWRP Recovery, be sure to make a backup of your existing setup if you haven't already done so, then hit the Install button. Navigate to your Download folder to find the ElementalX installer file. Tap that, then swipe the graphic on the bottom to start the install process.
These next several screens are the ElementalX installation GUI. They allow you to configure several optional settings. Tap Next, then tick the box next to I agree with these Terms of Use and hit Next again.
Most of these options can be left on their default values for our purposes today. Tap Next without making any changes to these pages until you arrive at a screen titled Sleep/Wake Settings.
From the Sleep/Wake Settings page, tick the box next to DoubleTap2Wake fullscreen. Then hit Next two more times.
Tap Install ElementalX to finish the process, then tap Next and Finish. On the following screen, hit Reboot System.
Touring the Knock Knock Features
Once you're booted back up, you will be ready to use all of the Knock Knock features. Double-tap the screen to wake your Nexus 5, then double-tap the lock screen, home screen, or status bar to put it back to sleep.
If you decide to return to your Power button for sleep and wake functionality, simply deactivate GravityBox, turn of the features in Apex, and flash the stock Nexus 5 kernel from recovery.
If you really dig the Knock Knock features, try combing them with the entire LG G2 look and feel. Check out the full guide on turning the Nexus 5 into an LG G2 clone by Jesse for more info.
Just updated your iPhone? You'll find new Apple Intelligence capabilities, sudoku puzzles, Camera Control enhancements, volume control limits, layered Voice Memo recordings, and other useful features. Find out what's new and changed on your iPhone with the iOS 18.2 update.
21 Comments
Great work buddy, thanks.
How can I use this at the same time as the LG G2 clone / Lockscreen mods?
At this time, you can't use all of these sotftMods with the G2 Launcher from that tutorial, because that launcher doesn't offer a customizable "desktop double-tap" gesture.
You can definitely use all of the rest of these softMods together with the ones from that tutorial though. Just follow the steps in the "G2 Clone" tutorial, then follow all of the steps here.
You'd either have to sacrifice the Homescreen Knock Off feature (Steps 3 & 4 here) in favor of the G2 Launcher (Step 2, 3 & 4 in the other one), or use Apex to get that one extra feature at the expense of losing the G2 Launcher.
Hi dallas,
I still didn't try this, but if my main purpose is to get the double tap to wake the screen, can I begin only from the fifth step and avoid the other launcher stuff?
Thanks.
Thanks buddy I'll have a play around and see which one to sacrifice.
I want to remove the knock knock feature from my nexus 5 as it is draining the battery lot faster. How can i remove it?
Just flash the Stock Nexus 5 Kernel using the same method as you used to install ElementalX. The link is in the second to last paragraph of the article
Thanks a lot for replying! And sorry for asking the already answered Question. By the way I love your work! keep posting Tweaks like these! Keep up the good work!
Thank you!
Hi dallas,
I still didn't try this, but if my main purpose is to get the double tap to wake the screen, can I begin only from the fifth step and avoid the other launcher stuff?
Thanks.
Yup, all you'll need is the kernel to get the "knock ON" feature.
thanks
I would love to have this feature but I'm afraid it will drain a lot of battery. Is that true?
For me, at least, it's not that bad. Maybe an extra 5% per day. In the end, I definitely find the tradeoff worthwhile.
Fantastic! Thanks for your quick reply. I love your tutorials!
I have another question though. Do you know if Franco Kernel has support for this feature?
It doesn't have it out of the box, but there's a kanged version here that can do it. It's exactly the same as Franco's releases, but with Knock Knock added.
You do have to create a folder named fkSettings on your SD card to get it working. Then inside that folder, make an empty file titled fkdt2w. This can be done with almost any file explorer, usually by pressing "Add..." or "New...", then selecting "File".
Awesome! Just installed it. Thanks so much for the help!
PS: had to reboot after creating the file you mentioned for it to work.
I managed to do everything properly up until step 7. My problem is that when I try to boot into recovery mode, I get a screen on my Nexus 5 that says "no command" and I don't know how to get to step 7 now. I've done some Google research with no luck so far so I hope someone else has a solution to my problem, thanks!
hey there! I currently have stock andriod on my nexus 4 (4.4.3). I really want the knock knock feature of lg G2 as my power button is giving me troubles unlocking the screen. I dont wanna mess up my N4, so could someone help me with step by step instructions because I am new to rooting. TIA
I got to step seven too; when I try to boot into recovery mode it says 'no command' also? Any ideas?
can i do this on nexus 7 2012 ??
Hello Dallas, yesterday I have installed Android 5.0 to my Nexus 5; so can I do the same procedure showing above to have the "Knock Knock" feature now to my Nexus 5? (also I have rooted with CF-Auto-Root but didn't proceed to further steps), please advice...
Share Your Thoughts