Date: Thu, 1 Oct 2009 20:50:02 GMT From: David Horn <dhorn2000@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/139272: [patch] [psm] disable synaptics mouse taps Message-ID: <200910012050.n91Ko2F5039394@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/139272; it has been noted by GNATS. From: David Horn <dhorn2000@gmail.com> To: bug-followup@freebsd.org Cc: Subject: Re: kern/139272: [patch] [psm] disable synaptics mouse taps Date: Thu, 1 Oct 2009 16:47:14 -0400 --00504502c8b39412c90474e5c0d0 Content-Type: text/plain; charset=ISO-8859-1 Updated patch to check for synaptics_support tunable, and only act on force_tap_events tunable if synaptics_support is disabled. (attached) Since this is gmail, the attachment will likely show up garbled in gnats web ui, so feel free to email me if you need a copy of the updated patch, but it is a 1 line change from the original patch to prevent a conflict : - if(force_tap_events > 0) { + if(force_tap_events > 0 && ! synaptics_support) { without this change, setting both tunables caused the mouse to not work at all, when the intention is to allow synaptics_support to win the tie. Thanks! --Dave H --00504502c8b39412c90474e5c0d0 Content-Type: text/plain; charset=US-ASCII; name="mouse_taps.patch2.txt" Content-Disposition: attachment; filename="mouse_taps.patch2.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g09z33up0 SW5kZXg6IHNoYXJlL21hbi9tYW40L3BzbS40Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHNoYXJlL21hbi9tYW40 L3BzbS40CShyZXZpc2lvbiAxOTc2ODIpCisrKyBzaGFyZS9tYW4vbWFuNC9wc20uNAkod29ya2lu ZyBjb3B5KQpAQCAtMzU5LDYgKzM1OSwzMyBAQAogVGhpcyB3aWxsIGVuYWJsZQogLk5tCiB0byBo YW5kbGUgcGFja2V0cyBmcm9tIGd1ZXN0IGRldmljZXMgKHN0aWNrcykgYW5kIGV4dHJhIGJ1dHRv bnMuCisKK0lmIHlvdSB3aXNoIHRvIGRpc2F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hdGljIHZvaWQKIHBzbWludHIodm9pZCAqYXJnKQo= --00504502c8b39412c90474e5c0d0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910012050.n91Ko2F5039394>