Skip to content

Commit

Permalink
start tablet-mode later and wait less
Browse files Browse the repository at this point in the history
  • Loading branch information
seidler2547 committed Mar 1, 2012
1 parent 4ef9b1f commit e14340a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion init.thinkpad_x41t.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tablet-mode/tablet-mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e14340a

Please sign in to comment.