From: Chih-Wei Huang Date: Mon, 20 Nov 2017 10:44:40 +0000 (+0800) Subject: init.x86.rc: add ctrl-alt-del service X-Git-Tag: android-x86-7.1-r1~7 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=commitdiff_plain;h=a1b5651e006cb0fddc324506185ff757fc6de4cf init.x86.rc: add ctrl-alt-del service Use the keychord driver to trap ctrl-alt-del event and transform it to a long-press power key. Unfortunately init only supports one keycodes set. So only the set is supported: right ctrl (97), right alt (100) and delete (111). The other combinations will be trapped and handled by init directly. --- diff --git a/init.x86.rc b/init.x86.rc index bd6d033..7169bd6 100644 --- a/init.x86.rc +++ b/init.x86.rc @@ -83,6 +83,11 @@ service tablet-mode /system/bin/tablet-mode disabled oneshot +service ctrl-alt-del /system/bin/input keyevent --longpress POWER + disabled + oneshot + keycodes 97 100 111 + on property:system_init.startsurfaceflinger=0 # disable cursor blinking write /dev/tty0 "[?17;0;0c"