OSDN Git Service

start tablet-mode later and wait less
authorStefan Seidel <android@stefanseidel.info>
Thu, 1 Mar 2012 22:27:39 +0000 (23:27 +0100)
committerStefan Seidel <android@stefanseidel.info>
Thu, 1 Mar 2012 22:27:39 +0000 (23:27 +0100)
init.thinkpad_x41t.rc
tablet-mode/tablet-mode.c

index 4971709..03bf754 100755 (executable)
@@ -18,7 +18,7 @@ service tablet-mode /system/bin/tablet-mode
     disabled
     oneshot
 
-on property:init.svc.zygote=running
+on property:sys.boot_completed=1
     start tablet-mode
 
 service amixer-pcm /system/bin/alsa_amixer set PCM 100 on
@@ -27,6 +27,7 @@ service amixer-pcm /system/bin/alsa_amixer set PCM 100 on
 
 on property:dev.bootcomplete=1
     start wacom-input
+#    start tablet-mode
     start amixer-pcm
 
     chmod 660 /sys/class/rfkill/rfkill0/state
index 1ce4bed..ffe82f5 100644 (file)
@@ -84,7 +84,7 @@ int main(void)
                return -1;
        }
 
-       sleep(15); //wait some time or otherwise EventHub might not pick up our events correctly!?
+       sleep(10); //wait some time or otherwise EventHub might not pick up our events correctly!?
 
        int ufd = open("/dev/uinput", O_WRONLY | O_NDELAY);
        if (ufd >= 0) {