To enable double tap to wake functionality on your HTC One M7 running LineageOS 14.1, you have several options. Since this feature isn't natively enabled in LineageOS 14.1 for the HTC One M7, you'll need to use one of the following methods:
Method 1: Using ADB Command
This is one of the simplest methods if you have ADB set up:
Connect your phone to your computer
Open a command prompt or terminal
Enter ADB shell mode by typing:
bash
adb shell
Execute the following command:
bash
settings put secure double_tap_to_wake 1
This method used to work on earlier LineageOS versions, though you may need to verify if it works specifically on your device[3].
Method 2: Manual File Editing (Root Required)
Download Root Explorer and QuickEdit apps from the Play Store
Open Root Explorer and navigate to the system path where the wake configuration is stored
The typical path might be similar to: /sys/bus/i2c/devices/12-0038/wakeup-mode
Note that the exact path may differ on the HTC One M7
Open the file with QuickEdit
Change the value from "0" to "1"
Save the file[1]
Keep in mind that with this method, the setting will revert back to "0" after each reboot, requiring you to repeat these steps[1].
Method 3: Flash a Custom Kernel
The most permanent solution is to flash a kernel that supports double tap to wake functionality:
Download the Bulletproof kernel specifically made for HTC One (M7)
Boot your phone into recovery mode (TWRP)
Flash the Bulletproof kernel .zip file
During the installation process, you'll be prompted with options in the AROMA installer
Select "DoubleTap2Wake" from the available wake options
Complete the installation and reboot[7]
This method provides a more permanent solution as the feature becomes integrated at the kernel level.
Install the "Wake Gestures" Xposed module by developer C3C076
Enable the module in Xposed and reboot
Open the Wake Gestures app and configure the double-tap gesture to wake your device[18]
Additional Information
Some HTC One M7 users have reported that the double tap to wake functionality works best with custom kernels like ElementalX or Bulletproof, which are specifically designed to support these features[18][7].
If you're comfortable with more advanced modifications, you could also create an init.d script that automatically sets the wakeup-mode value to "1" on every boot, which would solve the issue of the setting reverting after reboot.
Remember that enabling this feature may slightly increase battery consumption as the touchscreen digitizer remains partially active to detect taps even when the screen is off.