Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c10f3f34 authored by Harry Cutts's avatar Harry Cutts
Browse files

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
parent 60d3c059
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
Vendor_05ac_Product_0265.idc
 No newline at end of file
+22 −0
Original line number Diff line number Diff line
# 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 −0
Original line number Diff line number Diff line
# 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 −0
Original line number Diff line number Diff line
# 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 −0
Original line number Diff line number Diff line
# 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
Loading