<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 13-10-14 02:14 AM, Peter Hutterer
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1381731296-11006-1-git-send-email-peter.hutterer@who-t.net"
      type="cite">
      <pre wrap="">
libevdev fails to build or run on older kernels. This set of patches enables libevdev to build on
RHEL6 and anything later (I suspect). the runtime behaviour changes depending on the kernel but is
largely modelled on what makes sense.

Cheers,
  Peter
_______________________________________________
Input-tools mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Input-tools@lists.freedesktop.org">Input-tools@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/input-tools">http://lists.freedesktop.org/mailman/listinfo/input-tools</a>

</pre>
    </blockquote>
    <br>
    I have applied the patches and ran "sudo make check":<br>
    <blockquote><tt>Making check in test</tt><tt><br>
      </tt><tt>make  check-TESTS check-local</tt><tt><br>
      </tt><tt>Running suite(s): libevdev_has_event tests</tt><tt><br>
      </tt><tt> libevdev event tests</tt><tt><br>
      </tt><tt> libevdev init tests</tt><tt><br>
      </tt><tt>libevdev error in libevdev_change_fd: BUG: device not
        initialized. call libevdev_set_fd() first</tt><tt><br>
      </tt><tt>libevdev error in libevdev_set_fd: BUG: device already
        initialized.</tt><tt><br>
      </tt><tt>libevdev error in libevdev_grab: BUG: invalid grab
        parameter 0</tt><tt><br>
      </tt><tt>libevdev error in libevdev_grab: BUG: invalid grab
        parameter 0x1</tt><tt><br>
      </tt><tt> Event queue</tt><tt><br>
      </tt><tt> Event names</tt><tt><br>
      </tt><tt> libevdev uinput device tests</tt><tt><br>
      </tt><tt>libevdev error in libevdev_uinput_create_from_device:
        BUG: Invalid fd -1</tt><tt><br>
      </tt><tt>93%: Checks: 89, Failures: 5, Errors: 1</tt><tt><br>
      </tt><tt>test-libevdev-has-event.c:144:E:event
        codes:test_event_codes:0: (after this point) Test timeout
        expired</tt><tt><br>
      </tt><tt>test-libevdev-has-event.c:372:F:multitouch
        <a class="moz-txt-link-freetext" href="info:test_slot_init_value:0">info:test_slot_init_value:0</a>: Assertion
        'libevdev_get_slot_value(dev, 0, 0x35)==100' failed:
        libevdev_get_slot_value(dev, 0, 0x35)==0, 100==100</tt><tt><br>
      </tt><tt>test-libevdev-events.c:409:F:SYN_DROPPED
        deltas:test_syn_delta_mt:0: Assertion
        'rc==LIBEVDEV_READ_STATUS_SYNC' failed: rc==-22,
        LIBEVDEV_READ_STATUS_SYNC==1</tt><tt><br>
      </tt><tt>test-libevdev-init.c:62:F:device
        init:test_init_from_invalid_fd:0: Assertion 'rc==-25' failed:
        rc==-22, -25==-25</tt><tt><br>
      </tt><tt>test-libevdev-init.c:286:F:clock id:test_set_clock_id:0:
        Assertion 'rc==0' failed: rc==-22, 0==0</tt><tt><br>
      </tt><tt>test-libevdev-init.c:326:F:clock
        id:test_clock_id_events:0: Assertion 'rc==0' failed: rc==-22,
        0==0</tt><tt><br>
      </tt><tt>FAIL: test-libevdev</tt><tt><br>
      </tt><tt>==================</tt><tt><br>
      </tt><tt>1 of 1 test failed</tt><tt><br>
      </tt><tt>==================</tt><tt><br>
      </tt><tt>make[2]: *** [check-TESTS] Error 1</tt><tt><br>
      </tt><tt>make[1]: *** [check-am] Error 2</tt><tt><br>
      </tt><tt>make: *** [check-recursive] Error 1</tt><br>
    </blockquote>
    Linux memsize 3.2.0-54-generic #82-Ubuntu SMP Tue Sep 10 20:08:42
    UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
    <br>
    In the docs, it says the tests create lots of X devices. How can I
    see/remove those?<br>
  </body>
</html>