News for hackers. Stuff that matters.
Re:Hey Synaptics, Can You Please Stop Polling by mjg59 on Tuesday September 05, 2017 @03:42PM (#15178475)
That's because it's reporting input events at high resolution. The alternative is jerky input. And if you're moving a pointer around the screen then you're going to be keeping the CPU and GPU powered up anyway which means the interrupts from the trackpad really aren't the problem.
Re:Hey Synaptics, Can You Please Stop Polling by verandaguys_alt on Tuesday September 05, 2017 @04:01PM (#15178624)
Honest question: is there any need to poll the touchpad more often than the screen's refresh rate (usually 144Hz or below as of this post)?
Re:Hey Synaptics, Can You Please Stop Polling by nodja on Tuesday September 05, 2017 @04:35PM (#15178885)
Yes.

On windows, if you have a logitech gaming mouse, you can set the polling rate. The default USB is 125Hz IIRC, on my mouse you can up it up to 1000Hz. For gaming it helps reduce input lag as much as possible since 125Hz is 8ms of input lag. For desktop usage, about 125Hz works fine.

For what it's worth, on my 120Hz screen, I can tell a difference between 125Hz and 250Hz polling rates, from 500Hz upwards I think I can tell but it might be placebo.

Re:Hey Synaptics, Can You Please Stop Polling by dyladan on Tuesday September 05, 2017 @04:06PM (#15178669)
Yes there is. Humans are normally not very responsive to the time between when an action is started and when it is carried out on the screen, but this changes for actions like drawing and dragging. This is the reason for the new Pro Motion behavior on the recently released iPad Pro models. For more information, this video [1] is a good place to start.

[1] https://www.youtube.com/watch?v=vOvQCPLkPt4

Re:Hey Synaptics, Can You Please Stop Polling by njarboe on Tuesday September 05, 2017 @10:37PM (#15180795)
"not very responsive"? I'm responsive. I mutter things like, "Shit, why does it seem that the amount of lag in my computer's response to my inputs get worse and worse as its physical components get faster and faster."
Re:Hey Synaptics, Can You Please Stop Polling by dyladan on Monday September 11, 2017 @04:38PM (#15222076)
I think you misunderstood what I meant by non-responsive. 10ms latency from click to action is nowhere near as noticeable as 10ms latency when dragging, because the mouse visibly lags behind.
Re:Hey Synaptics, Can You Please Stop Polling by rcthompson on Tuesday September 05, 2017 @04:07PM (#15178671)
I think there might be. If your polling is not frequent enough, then if you observed a finger touch disappear from one spot and appear at another spot, you have no way to know whether the finger moved there in the span of one polling period or if the finger was lifted and a second finger placed at the new location during that polling period. So a high polling rate might be essential to disambiguate cases like this, especially for many-finger multi-touch situations.
Re:Hey Synaptics, Can You Please Stop Polling by legulere on Tuesday September 05, 2017 @04:12PM (#15178708)
Couldn't this be processed directly in the touchpad controller, which probably contains a microcontroller nowadays anyway?
Re:Hey Synaptics, Can You Please Stop Polling by TheAceOfHearts on Tuesday September 05, 2017 @05:36PM (#15179325)
Can you clarify which part you think could be handled by the touchpad's microcontroller? In order to implement modern gestures and interactions you need full access to all input events, otherwise you'd lose the ability to customize or adequately handle changes to context.
Re:Hey Synaptics, Can You Please Stop Polling by khedoros1 on Tuesday September 05, 2017 @06:32PM (#15179633)
A finger touching and leaving would be a high-priority event for the controller to output, and it should probably internally monitor events at a high resolution.

For position, as reported to the OS: what use would actually need a report every 2 milliseconds? Intuitively, I'd think that motions that matter wouldn't need that many datapoints to reliably differentiate.

Re:Hey Synaptics, Can You Please Stop Polling by mjg59 on Tuesday September 05, 2017 @06:44PM (#15179705)
Remember that 500 interrupts per second isn't the same as a report every 2 milliseconds - reading status from a device may involve more than one interrupt.
Re:Hey Synaptics, Can You Please Stop Polling by khedoros1 on Tuesday September 05, 2017 @06:53PM (#15179761)
True. And for some kinds of work, input latency probably becomes noticeable on a subconscious level quicker than one would guess.
Re:Hey Synaptics, Can You Please Stop Polling by ghusbands on Wednesday September 06, 2017 @09:21AM (#15183430)
It's often used to compensate for the fact that you want an up-to-date reading at arbitrary points within a frame. If you only update once per frame, and some code reads the position just before that every frame, that's going to give a full extra frame of lag, rather than just an extra 2ms.
Re:Hey Synaptics, Can You Please Stop Polling by derefr on Tuesday September 05, 2017 @05:15PM (#15179187)
Indeed; in fact, that microcontroller could conceivably do the same thing programs like Synergy do with the input events: namely, converting them into a stream of bezier-curve-based gesture-motion events and reporting those to the OS. I can't imagine you'd need to report those at more than 5Hz or so (Synergy manages to have smooth multitouch movement across a LAN just fine with an even-lower update rate.)
Re:Hey Synaptics, Can You Please Stop Polling by brians on Tuesday September 05, 2017 @10:01PM (#15180628)
Try using a tablet, or even Photoshop, through a 5 Hz synergy connection
Re:Hey Synaptics, Can You Please Stop Polling by ghusbands on Wednesday September 06, 2017 @09:18AM (#15183395)
Humans can't lift and replace a finger in the 17ms that even a 60Hz polling rate would give, so no, this isn't the reason.
Re:Hey Synaptics, Can You Please Stop Polling by rcthompson on Thursday September 07, 2017 @01:03AM (#15189250)
You can lift one finger and place another finger quickly enough to fool some older touchpads. I was able to do it fairly consistently with my old Dell laptop.
Re:Hey Synaptics, Can You Please Stop Polling by mdwrigh2 on Thursday September 07, 2017 @07:20AM (#15190733)
That's not necessarily because you could do it in a single frame; a lot of the old touch controllers would maintain high levels of hysteresis as a really crude technique to mitigate low SNR. Couple that with a fairly dumb implementation of pointer tracking and you end up easily fooling touchpad into thinking the two pointers are the same. Note also that this is a much rarer and more user-friendly failure scenario than choosing to have the software err in the other direction (erroneously splitting a moving finger into two separate pointers, one of which may look like a tap gesture).

Source: I occasionally work with touchscreens, many of which experienced the same issue in early devices.

Re:Hey Synaptics, Can You Please Stop Polling by ghusbands on Wednesday September 06, 2017 @09:26AM (#15183470)
It's a cheap/easy way to minimise the input lag. It's otherwise complicated to know exactly when updates should arrive, as different programs might fetch it at different times in each frame, giving you up to a full frame of extra lag if you're only doing it once per frame.
Re:Hey Synaptics, Can You Please Stop Polling by andrepd on Wednesday September 06, 2017 @09:42AM (#15183569)
Yes. Suppose you poll at 120Hz. That is a maximum of 8ms between you moving your mouse and the input being registered. Suppose now you poll at 1000Hz. Input lag is now 1ms.
Re:Hey Synaptics, Can You Please Stop Polling by tinus_hn on Wednesday September 06, 2017 @11:51AM (#15184593)
It's not polling, the device is sending interrupts.