Summary: | [PATCH]Enable clicking/tapping but no motion with TouchpadOff=3 | ||
---|---|---|---|
Product: | xorg | Reporter: | John Pham <jhnphm> |
Component: | Input/synaptics | Assignee: | Peter Hutterer <peter.hutterer> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | CC: | benjamin.tissoires, bernat, peter.hutterer |
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 74544 | ||
Attachments: |
Description
John Pham
2013-12-30 15:17:19 UTC
Created attachment 91335 [details] [review] Update man pages Please don't use atoi() for conversion, use strtol instead. Make sure you keep the correct indentation levels (tabs vs spaces) where appropriate. Also, isn't optarg always 0? getopt would require a colon after "t" to require an argument, otherwise it won't parse it. We don't want to require an argument though, it would break the current interface and needs to be optional. The commit message needs some serious rework too, it needs an explanation why this is needed and what the (intended) interactions are with other parts, tapping, scrolling, etc. Might be worth reading through Bug 66658 as well, it's somewhat related. Created attachment 93423 [details] [review] 0001-Add-another-third-state-to-TouchpadOff-for-disabling.patch Updated patch based on John's patch. This only adds the property and the in-driver hookups as well as the syndaemon -t toggle. The other features are tracked in Bug 74544. Benjamin, when you get to test this check if we need to disable tapping and scrolling too in the new "motion" mode, gut feeling tells me it may be necessary. Peter, the proposed patch is lacking the synclient.c update to change the param[] array: "TouchpadOff" should get a max of 3 instead of 2. Regarding the question if we need to disable the wheel, the answer is yes, I managed to get some scrolling events while laying my palm on the touchpad (1st touch) and clicking on the software button (2nd click). It sometimes makes the raw ABS_X|Y events jumps from one coordinate to the other, sending a huge scroll event. Tapping events may not be a problem though. But maybe this is because I do not have tapping enabled :-P So I just added the patch regarding the secondary soft buttons area (#74543), and found something "funny": if you lay down your palm on the touchpad while using the trackstick (Off=3), ABS_X|Y are pointing to the palm area, not the finger you may land after. So basically, when I clicked on the top left button area, I got a right click, because the touchpad thinks I have my finger on the bottom right area. This might not be very easy to fix given that synaptics does not track each finger individually. what's the location of the palm vs the software buttons? maybe we need to make TouchpadOff into a top-softbutton-only option if we can differ this way. Created attachment 93815 [details] [review] 0001-Add-another-third-state-to-TouchpadOff-for-disabling.patch Updated patch. Option renamed to "click-only", now only allows physical clicks (including softbuttons) but no scrolling/tapping. commit eea73358760c7ff9c9dac061f265753637c6f25c Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Fri Feb 21 10:31:37 2014 +0100 Add another third state to TouchpadOff for disabling all but button clicks Note: this patch was reverted again, with the current git master 17bbcad28000bbd896a33047c0720ada89e05f5d the touchpad should behave well enough that no extra state is needed. Changing from FIXED to WONTFIX since the state is not necessary anymore. Related to #70780, it would be convenient to have an option to disable motion while enabling special gestures like scrolling. This would allow scrolling with the touchpad which is better than no scrolling at all. I didn't test your patch, maybe it would work out of the box with it. that was the original intent of the patch but since we don't need this patch anymore we don't have this option. I'd rather have the driver fixed to provide proper detection of palm and accidental touches so we don't need a custom option that disables motion. Created attachment 101208 [details] [review] Alternative implementation of touchpad off=3 with gestures still enabled Well, yes, perfect palm detection would render mooth such tentatives. However, it may also never happen. Currently, I am using the attached patch which is smaller than other patches and work fine for me while keeping the ability to use gestures. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.