Add device-specific tunings for external touchpads
These are copied over from the ChromiumOS tunings [0], translated from their Xorg-style configuration syntax into IDC syntax. In a couple of places I've included context for property changes from the commit history of the source file. [0]: https://crsrc.org/o/src/platform/xorg-conf/40-touchpad-cmt.conf;drc=e51f71c8cae6da8ce073ed10b03dedfbee476b9e Bug: 271251605 Test: connect Apple Magic Trackpad 2, check properties are set correctly in dumpsys input Change-Id: I590f3b40440c13c8a0b50d699fabd27a118d9a10
This commit is contained in:
1
data/keyboards/Vendor_004c_Product_0265.idc
Symbolic link
1
data/keyboards/Vendor_004c_Product_0265.idc
Symbolic link
@@ -0,0 +1 @@
|
||||
Vendor_05ac_Product_0265.idc
|
||||
22
data/keyboards/Vendor_03f6_Product_a001.idc
Normal file
22
data/keyboards/Vendor_03f6_Product_a001.idc
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Brydge Touchpad
|
||||
#
|
||||
|
||||
# Reports from this touchpad sometimes get bunched together due to Bluetooth
|
||||
# batching, leading to bad timestamps that mess up finger velocity calculations.
|
||||
# To fix this, set a fake delta using the touchpad's known report rate.
|
||||
gestureProp.Fake_Timestamp_Delta = 0.010
|
||||
32
data/keyboards/Vendor_046d_Product_4011.idc
Normal file
32
data/keyboards/Vendor_046d_Product_4011.idc
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Logitech Wireless Touchpad
|
||||
#
|
||||
|
||||
gestureProp.Touchpad_Stack_Version = 1
|
||||
gestureProp.IIR_b0 = 1
|
||||
gestureProp.IIR_b1 = 0
|
||||
gestureProp.IIR_b2 = 0
|
||||
gestureProp.IIR_b3 = 0
|
||||
gestureProp.IIR_a1 = 0
|
||||
gestureProp.IIR_a2 = 0
|
||||
gestureProp.Pressure_Calibration_Offset = -313.240741792594
|
||||
gestureProp.Pressure_Calibration_Slope = 4.39678062436752
|
||||
gestureProp.Max_Allowed_Pressure_Change_Per_Sec = 100000.0
|
||||
gestureProp.Max_Hysteresis_Pressure_Per_Sec = 100000.0
|
||||
gestureProp.Palm_Pressure = 100000.0
|
||||
gestureProp.Two_Finger_Vertical_Close_Distance_Thresh = 35.0
|
||||
gestureProp.Fling_Buffer_Suppress_Zero_Length_Scrolls = 0
|
||||
31
data/keyboards/Vendor_046d_Product_4101.idc
Normal file
31
data/keyboards/Vendor_046d_Product_4101.idc
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Logitech T650
|
||||
#
|
||||
|
||||
gestureProp.Touchpad_Stack_Version = 1
|
||||
gestureProp.IIR_b0 = 1
|
||||
gestureProp.IIR_b1 = 0
|
||||
gestureProp.IIR_b2 = 0
|
||||
gestureProp.IIR_b3 = 0
|
||||
gestureProp.IIR_a1 = 0
|
||||
gestureProp.IIR_a2 = 0
|
||||
gestureProp.Pressure_Calibration_Offset = -0.439288351750068
|
||||
gestureProp.Pressure_Calibration_Slope = 3.05998553523335
|
||||
gestureProp.Max_Allowed_Pressure_Change_Per_Sec = 100000.0
|
||||
gestureProp.Max_Hysteresis_Pressure_Per_Sec = 100000.0
|
||||
gestureProp.Two_Finger_Vertical_Close_Distance_Thresh = 35.0
|
||||
gestureProp.Fling_Buffer_Suppress_Zero_Length_Scrolls = 0
|
||||
24
data/keyboards/Vendor_046d_Product_4102.idc
Normal file
24
data/keyboards/Vendor_046d_Product_4102.idc
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Logitech TK820
|
||||
#
|
||||
|
||||
gestureProp.Touchpad_Stack_Version = 2
|
||||
# Pressure jumps around a lot on this touchpad, so allow that:
|
||||
gestureProp.Max_Allowed_Pressure_Change_Per_Sec = 100000.0
|
||||
gestureProp.Max_Hysteresis_Pressure_Per_Sec = 100000.0
|
||||
gestureProp.Pressure_Calibration_Offset = -18.8078435
|
||||
gestureProp.Pressure_Calibration_Slope = 2.466208137
|
||||
31
data/keyboards/Vendor_046d_Product_b00c.idc
Normal file
31
data/keyboards/Vendor_046d_Product_b00c.idc
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Logitech T651
|
||||
#
|
||||
|
||||
gestureProp.Touchpad_Stack_Version = 1
|
||||
gestureProp.IIR_b0 = 1
|
||||
gestureProp.IIR_b1 = 0
|
||||
gestureProp.IIR_b2 = 0
|
||||
gestureProp.IIR_b3 = 0
|
||||
gestureProp.IIR_a1 = 0
|
||||
gestureProp.IIR_a2 = 0
|
||||
gestureProp.Pressure_Calibration_Offset = -4.46520447177073
|
||||
gestureProp.Pressure_Calibration_Slope = 3.21071719332644
|
||||
gestureProp.Max_Allowed_Pressure_Change_Per_Sec = 100000.0
|
||||
gestureProp.Max_Hysteresis_Pressure_Per_Sec = 100000.0
|
||||
gestureProp.Two_Finger_Vertical_Close_Distance_Thresh = 35.0
|
||||
gestureProp.Fling_Buffer_Suppress_Zero_Length_Scrolls = 0
|
||||
34
data/keyboards/Vendor_05ac_Product_0265.idc
Normal file
34
data/keyboards/Vendor_05ac_Product_0265.idc
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Apple Magic Trackpad 2 configuration file
|
||||
# Bluetooth vendor ID 004c
|
||||
# USB vendor ID 05ac
|
||||
#
|
||||
|
||||
gestureProp.Pressure_Calibration_Offset = 30
|
||||
gestureProp.Palm_Pressure = 250.0
|
||||
gestureProp.Palm_Width = 20.0
|
||||
gestureProp.Multiple_Palm_Width = 20.0
|
||||
|
||||
# Enable Stationary Wiggle Filter
|
||||
gestureProp.Stationary_Wiggle_Filter_Enabled = 1
|
||||
gestureProp.Finger_Moving_Energy = 0.0008
|
||||
gestureProp.Finger_Moving_Hysteresis = 0.0004
|
||||
|
||||
# Avoid accidental scroll/move on finger lift
|
||||
gestureProp.Max_Stationary_Move_Speed = 47
|
||||
gestureProp.Max_Stationary_Move_Speed_Hysteresis = 1
|
||||
gestureProp.Max_Stationary_Move_Suppress_Distance = 0.2
|
||||
38
data/keyboards/Vendor_05ac_Product_030e.idc
Normal file
38
data/keyboards/Vendor_05ac_Product_030e.idc
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 2023 The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#
|
||||
# Apple Magic Trackpad
|
||||
#
|
||||
|
||||
gestureProp.Touchpad_Stack_Version = 1
|
||||
# We are using raw touch major value as pressure value, so set the Palm
|
||||
# pressure threshold high.
|
||||
gestureProp.Palm_Pressure = 1000
|
||||
gestureProp.Compute_Surface_Area_from_Pressure = 0
|
||||
gestureProp.IIR_b0 = 1
|
||||
gestureProp.IIR_b1 = 0
|
||||
gestureProp.IIR_b2 = 0
|
||||
gestureProp.IIR_b3 = 0
|
||||
gestureProp.IIR_a1 = 0
|
||||
gestureProp.IIR_a2 = 0
|
||||
# NOTE: bias on X-axis is uncalibrated
|
||||
gestureProp.Touchpad_Device_Output_Bias_on_X-Axis = -283.3226025266607
|
||||
gestureProp.Touchpad_Device_Output_Bias_on_Y-Axis = -283.3226025266607
|
||||
gestureProp.Max_Allowed_Pressure_Change_Per_Sec = 100000.0
|
||||
gestureProp.Max_Hysteresis_Pressure_Per_Sec = 100000.0
|
||||
# Drumroll suppression causes janky movement on this touchpad.
|
||||
gestureProp.Drumroll_Suppression_Enable = 0
|
||||
gestureProp.Two_Finger_Vertical_Close_Distance_Thresh = 35.0
|
||||
gestureProp.Fling_Buffer_Suppress_Zero_Length_Scrolls = 0
|
||||
Reference in New Issue
Block a user