Enables uinput before we do anything. Fixes problem of non-working touchscreen because kbdshim detects and tries to enable it before uinput is ready. James 2014 diff -ur olpc-kbdshim-old/common.c olpc-kbdshim/common.c --- olpc-kbdshim-old/common.c 2013-09-21 00:19:06.028242961 +0700 +++ olpc-kbdshim/common.c 2014-02-12 13:28:51.982516519 +0700 @@ -1575,13 +1575,15 @@ report("starting %s version %d", me, VERSION); + /* james patch - setup uninput before we do anything */ + if (system("/sbin/modprobe uinput") == 0) + sleep(1); + if (!setup_input()) die("%s: unable to find input devices", me); /* initialize uinput, if needed */ if (!noxmit) { - if (system("/sbin/modprobe uinput") == 0) - sleep(1); if (setup_keyboard() < 0) die("unable to create keyboard device"); if (setup_mouse() < 0)