)]}'
{
  "commit": "fc937f9c78a43e56cda41bdcdc258cd84ddf85fa",
  "tree": "e2670593f9da60cc21abcab0d4a84c304c4133f8",
  "parents": [
    "18125b556c0197ae696894b9558f08d0b69c584c"
  ],
  "author": {
    "name": "Joseph Hwang",
    "email": "josephsih@chromium.org",
    "time": "Tue Oct 22 08:20:59 2013"
  },
  "committer": {
    "name": "chrome-internal-fetch",
    "email": "chrome-internal-fetch@google.com",
    "time": "Tue Nov 05 12:16:08 2013"
  },
  "message": "Sync with kernel about slot info when started\n\nWhen mtplot is started, the slot info is initialized to be 0,\nincluding x, y, pressure, and the current slot number. Sometimes,\nthis may result in a problem. For example, if the last tap\noccurs at\n\n  (x, y) \u003d (1020, 500)\n\nAnd then a new tap occurs at\n\n  (x, y) \u003d (1000, 500)\n\nThe kernel will only report x value but not y value. Since y is\ninitialized to be 0, the tap position is mistakenly interpreted by\nmtplot as\n\n  (x, y) \u003d (1000, 0)\n\nThis patch fixes this problem by sync-ing with kernel about the last\nslot info.\n\nBUG\u003dchromium:307817\nTEST\u003dPerform the following tests on a link chromebook.\nIt is easier to verify it using a host opening two terminals and do\nssh-ing to the chromebook.\n\nOn terminal 1:\n--------------\nStep 1:\nDownload the test raw data file, one_finger_tap.link.dat,from\nIssue 307817 Comment #5 to /tmp of the chromebook.\n\nStep 2:\nThen login to the chromebook:\n$ ssh root@${MACHINE_IP}\n\nStep 3:\nLaunch mtplot on the chromebook.\n$ DISPLAY\u003d:0 DISPLAY\u003d:0 /usr/bin/mtplot\nChoose the appropriate device number on the prompt. Press Enter.\n\nOn terminal 2:\n--------------\nLogin to the chromebook too as root by following the instruction at step 2.\n\nStep 4:\nReplay the raw data file.\n(Assume that the device you choose at Step 3 is /dev/input/event8)\n$ evemu-play --insert-slot0 /dev/input/event8 \u003c /tmp/one_finger_tap.link.dat\n\nYou could observe two dots around the center of the screen.\n\nStep 5:\nPress ctrl-c to quit mtplot on terminal 1.\n\nStep 6:\nPerform Step 3 on terminal 1, and Step 4 on terminal 2 again.\nYou could still observe two dots around the center of the screen.\n\nFurther Optional tests:\nPerform all the steps above with an old-version mtplot. You could\nobserve that the two dots shown on the top edge of the screen. This\nis the problem this patch attempts to fix.\n\nChange-Id: I59caaf129489b8cfaf8576a221d748ff1b9386fc\nReviewed-on: https://chromium-review.googlesource.com/174878\nReviewed-by: Andrew de los Reyes \u003cadlr@chromium.org\u003e\nTested-by: Shyh-In Hwang \u003cjosephsih@chromium.org\u003e\nCommit-Queue: Shyh-In Hwang \u003cjosephsih@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fad91923db12fa820efff7937a4516887c4a3017",
      "old_mode": 33188,
      "old_path": "mtplot.c",
      "new_id": "185c4d39fa62bb9acbebfca9288a2f1945f68f56",
      "new_mode": 33188,
      "new_path": "mtplot.c"
    }
  ]
}
