lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B959F3C.3020701@seas.upenn.edu>
Date:	Mon, 08 Mar 2010 20:07:08 -0500
From:	Rafi Rubin <rafi@...s.upenn.edu>
To:	mickib1@...il.com
CC:	jkosina@...e.cz, chatty@...c.fr, peterhuewe@....de,
	micki@...rig.com, linux-input@...r.kernel.org,
	linux-kernel@...r.kernel.org, rafi@...s.upenn.edu
Subject: Re: [PATCH 2/7] HID: N-trig MTM Driver fix and cleanup patch 2

> -		case HID_DG_CONTACTID: /* Not trustworthy, squelch for now */

I squelched contact id because they don't actually track fingers, rather 
contacts are reported spatially (seems to be from the bottom to top) 
making this value useless for tracking (after all the user space tools 
can count contacts since the start of the group).

See the "Finger Tracking" section in
	Documentation/input/multi-touch-protocol.txt
When tracking id is incorrect its better to just leave it out.

> +		case HID_DG_INVERT: /* value is always 0 */
> +		case HID_DG_ERASER: /* value is always 0 */
> +		case HID_DG_CONTACTID: /* value is useless */
> +		case HID_DG_BARRELSWITCH:  /* doubtful */

Stephane put these here erroneously.  He was working with a firmware 
that didn't support the stylus at all when he made those observations. 
These events are useful and should not be squelched.

> +		case HID_DG_CONTACTCOUNT:

See the rdesc for the device.
"Digitizers.ContactCount ---> Sync.Report"

As the last event sent by a mt group, that is already mapped to 
input_sync().  If you don't squelch it, you don't need to implicitly add 
the sync.

>   		case HID_DG_HEIGHT:
>   			hid_map_usage(hi, usage, bit, max,
>   					EV_ABS, ABS_MT_TOUCH_MINOR);
> -			input_set_abs_params(hi->input, ABS_MT_ORIENTATION,
> -					0, 1, 0, 0);

Stephane added the orientation to height, I can't comment about the 
wisdom of pulling it.

Rafi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ