<div dir="ltr"><div>Hi,</div><div><br></div><div>We are facing few issues with the absolute pointer protocol on Microsoft surface pro 4 in the UEFI pre-boot environment. So I am sending this email looking for some guidance/ recommendations on how to resolve them.</div><div><br></div><div>- In order to query the protocol interface handle we are currently calling HandleProtocol(). The UEFI specification (2.6) recommends using OpenProtocol in place on HandleProtocol. Does it really matter which one we use?</div><div>- Once we get the absolute pointer protocol interface handle, is there any guidance on when to call the Reset() function? We are seeing inconsistent behavior with the Reset function on different hardware models such as Microsoft surface pro 1 and pro 3.</div><div>- For example, on one model calling Reset is giving the desired behavior while on the other model, not calling it is working.</div><div><br></div><div>- When calling GetState function on the protocol interface, how do you differentiate between finger touch/ press and release events?</div><div>This is what we are currently doing in our code, pseudo code:</div><div><br></div><div>while (true)</div><div>{</div><div>    status = BS-&gt;WaitForEvent(&lt;Array containing &quot;WaitForInput&quot; event of the protocol interface&gt;);</div><div><br></div><div>    if (status is successful)</div><div>    {</div><div>        EFI_ABSOLUTE_POINTER_STATE PointerState;</div><div>        status = GetState(pAbsolutePointerProtocol, &amp;PointerState);</div><div><br></div><div>        // Check return value of GetState and process the touch/ release event.</div><div>        if (PointerState.ActiveButtons &amp; EFI_ABSP_TouchActive)</div><div>        {</div><div>            // This is the finger touch/ press event.</div><div>        }</div><div>        else if (PointerState.ActiveButtons &amp; EFI_ABS_AltActive)</div><div>        {</div><div>            // We ignore this event.</div><div>        }</div><div>        else</div><div>        {</div><div>            // This is the finger release event.</div><div>        }</div><div>    }</div><div>}</div><div><br></div><div>- Our expectation is that every time you touch and release, we should be getting *two* events that get processed by our code.</div><div>- However on Microsoft surface pro 4, we are not always getting the touch and release events in pairs and that is throwing off our code.</div><div><br></div><div>- Looking at the pseudo code is there something that is missing that could be causing this behavior?</div><div>- Additionally are there any known touch related issues with surface pro 4 and is there any specific guidance on how to resolve them?</div><div><br></div><div>Please let me know if you need any additional info to help answer my questions.</div><div><br></div><div>Thanks,</div><div>    Venkat</div><div><br></div></div>