Skip to content

Instantly share code, notes, and snippets.

@grafov
Created June 24, 2014 18:06
Show Gist options
  • Save grafov/e8148f879356a1065048 to your computer and use it in GitHub Desktop.
Save grafov/e8148f879356a1065048 to your computer and use it in GitHub Desktop.
Patch for synaptics.c for report finger width (still actual for 3.14.3). Taken from http://pastebin.com/rjGyM5pC
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -702,6 +702,8 @@
input_report_abs(dev, ABS_MT_POSITION_X, hw->x);
input_report_abs(dev, ABS_MT_POSITION_Y, synaptics_invert_y(hw->y));
input_report_abs(dev, ABS_MT_PRESSURE, hw->z);
+ if (hw->w >= 4)
+ input_report_abs(dev, ABS_TOOL_WIDTH, hw->w);
}
static void synaptics_report_mt_data(struct psmouse *psmouse,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment