[systemd-devel] [PATCH 6/6] hwdb: set the resoluton for a couple of bcm5974 touchpads

Peter Hutterer peter.hutterer at who-t.net
Sun Mar 22 18:30:42 PDT 2015


Verified for the 5,1 Macbook, the others are guesses based on the list of
supported devices of the moshi trackpad protector.
http://www.moshi.com/trackpad-protector-trackguard-macbook-pro#silver

Resolution calculated based on the min/max settings set in the kernel driver,
divided by the physical size. This is probably slightly off, but still better
than no resolution at all.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 hwdb/60-evdev.hwdb | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/hwdb/60-evdev.hwdb b/hwdb/60-evdev.hwdb
index 0d67f87..9a9018f 100644
--- a/hwdb/60-evdev.hwdb
+++ b/hwdb/60-evdev.hwdb
@@ -35,3 +35,43 @@
 # fields of the struct input_absinfo as listed in linux/input.h.
 # If a field is missing the field will be left as-is. Not all fields need to
 # be present. e.g. ::45 sets the resolution to 45 units/mm.
+
+# Macbook5,1 (unibody), aka wellspring3
+evdev:input:b0003v05ACp0236*
+evdev:input:b0003v05ACp0237*
+evdev:input:b0003v05ACp0238*
+ EV_ABS_OVERRIDE_00=::92
+ EV_ABS_OVERRIDE_01=::90
+ EV_ABS_OVERRIDE_35=::92
+ EV_ABS_OVERRIDE_36=::90
+
+# Macbook8 (unibody, March 2011)
+evdev:input:b0003v05ACp0245*
+evdev:input:b0003v05ACp0246*
+evdev:input:b0003v05ACp0247*
+ EV_ABS_OVERRIDE_00=::92
+ EV_ABS_OVERRIDE_01=::91
+ EV_ABS_OVERRIDE_35=::92
+ EV_ABS_OVERRIDE_36=::91
+
+# Macbook8,2 (unibody)
+evdev:input:b0003v05ACp0252*
+evdev:input:b0003v05ACp0253*
+evdev:input:b0003v05ACp0254*
+ EV_ABS_OVERRIDE_00=::94
+ EV_ABS_OVERRIDE_01=::92
+ EV_ABS_OVERRIDE_35=::94
+ EV_ABS_OVERRIDE_36=::92
+
+# MacbookPro10,1 (unibody, June 2012)
+evdev:input:b0003v05ACp0259*
+evdev:input:b0003v05ACp025a*
+evdev:input:b0003v05ACp025b*
+# MacbookPro10,2 (unibody, October 2012)
+evdev:input:b0003v05ACp0259*
+evdev:input:b0003v05ACp025a*
+evdev:input:b0003v05ACp025b*
+ EV_ABS_OVERRIDE_00=::94
+ EV_ABS_OVERRIDE_01=::92
+ EV_ABS_OVERRIDE_35=::94
+ EV_ABS_OVERRIDE_36=::92
-- 
2.3.2



More information about the systemd-devel mailing list