How enable "tap to wake" on startup
-
If you already created a systemd user service to execute some commands on startup you must only add this line to bash script :
dbus-send --system --print-reply --dest=com.canonical.Unity.Screen /com/canonical/Unity/Screen com.canonical.Unity.Screen.setDoubleTapToWakeEnabled boolean:true
-
Thanks @Br1.
Then how to create a systemd user if not ? -
@AmauryDBZ I just put the command into a systemd service file under
/home/phablet/.config/systemd/user/enable-doubletap.service
[Unit] Description=Enable Double Tap to Wake on Unity Screen after D-Bus is ready Requires=dbus.socket After=dbus.socket [Service] ExecStart=dbus-send --system --print-reply --dest=com.canonical.Unity.Screen /com/canonical/Unity/Screen com.canonical.Unity.Screen.setDoubleTapToWakeEnabled boolean:true Type=oneshot RemainAfterExit=yes [Install] WantedBy=dbus.socket
After that enable with
systemctl --user enable enable-doubletap.service
-
@lkroll doesn't work for me. Could it be because I have a FP4 ? (this topic is tagged Pixel 3a)
-
@AmauryDBZ said in How enable "tap to wake" on startup:
@lkroll doesn't work for me. Could it be because I have a FP4 ? (this topic is tagged Pixel 3a)
yes FP4 don't support double tap to wake.
fyi persistant dt2w will be on next OTA -
@lduboeuf ok thanks !!
-
@lduboeuf said in How enable "tap to wake" on startup:
fyi persistant dt2w will be on next OTA
Hurray!
-
Thanks for your help, this works perfectly.
code_textphablet@ubuntu-phablet:~$ systemctl --user status enable-doubletap.service ā enable-doubletap.service - Enable Double Tap to Wake on Unity Screen after D-Bus is ready Loaded: loaded (/home/phablet/.config/systemd/user/enable-doubletap.service; enabled; vendor preset: enabled) Active: active (exited) since Thu 2024-01-04 15:35:53 +03; 20min ago Main PID: .......