summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-03-13 08:26:08 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-03-14 16:05:26 +1000
commit4122db68f61c695eae3a65aec18db08b29898b6a (patch)
tree323ef369bc15e6b6960c16011d1f93856db31220
parent18dae625eada20c4486542f9bb037fa2782d75bd (diff)
conf: automatically enable the top softbutton area for the new Lenovos
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--conf/11-x11-synaptics.fdi8
-rw-r--r--conf/50-synaptics.conf15
2 files changed, 23 insertions, 0 deletions
diff --git a/conf/11-x11-synaptics.fdi b/conf/11-x11-synaptics.fdi
index ba79849..a898875 100644
--- a/conf/11-x11-synaptics.fdi
+++ b/conf/11-x11-synaptics.fdi
@@ -35,5 +35,13 @@
<merge key="input.x11_options.SoftButtonAreas" type="string">0 0 0 0 0 0 0 0</merge>
</match>
</match>
+
+ <match
+ key="/org/freedesktop/Hal/devices/computer:system.hardware.version" contains_outof="T440;X240;T540;Helix;S1Yoga">
+ <match key="input.product" contains="Synaptics">
+ <merge key="input.x11_options.ClickPad" type="string">on</merge>
+ <merge key="input.x11_options.SecondarySoftButtonAreas" type="string">58% 0 0 8% 42% 58% 0 8%</merge>
+ </match>
+ </match>
</device>
</deviceinfo>
diff --git a/conf/50-synaptics.conf b/conf/50-synaptics.conf
index dd16ca2..d808e6f 100644
--- a/conf/50-synaptics.conf
+++ b/conf/50-synaptics.conf
@@ -45,3 +45,18 @@ Section "InputClass"
MatchDriver "synaptics"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
+
+# The Lenovo *40 series has no physical button for the TrackPoint and needs
+# the top softbutton area enabled by default.
+# Affected devices and their PNPIDs
+# LEN0033: Helix
+# LEN0034: T540
+# LEN0035: X240
+# LEN0036: T440
+# LEN0042: Yoga
+Section "InputClass"
+ Identifier "Lenovo TrackPoint top software buttons"
+ MatchDriver "synaptics"
+ MatchPnPID "LEN0033*|LEN0034*|LEN0035*|LEN0036*|LEN0042*"
+ Option "SecondarySoftButtonAreas" "58% 0 0 8% 42% 58% 0 8%"
+EndSection