Bug 86924

Summary: Microsoft Surface 3 Type Cover triggers BUG_RETURN_VAL
Product: xorg Reporter: Daniel Martin <consume.noise>
Component: Input/evdevAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: peter.hutterer
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
evemu description of the MS Surface 3 Cover none

Description Daniel Martin 2014-12-02 07:09:09 UTC
Created attachment 110349 [details]
evemu description of the MS Surface 3 Cover

The Microsoft Surface 3 Type(?) Cover triggers two BUG_RETURN_VAL in exevents.c at
    line 2086: BUG_RETURN_VAL(axnum >= dev->valuator->numAxes, FALSE);
and the same condition at
    line 2119: ...

It's a fake MT device like the MS Surface 2 Touch Cover. The evdev driver needs to be patched to handle this special condition. I.e. libinput contains such a patch:
    evdev: handle fake MT devices
    http://cgit.freedesktop.org/wayland/libinput/commit/?id=f04f582
Comment 1 Daniel Martin 2014-12-02 07:11:50 UTC
A workaround can be found here:
    https://github.com/rubiojr/surface3-kernel/blob/master/misc/xorg.conf
Comment 2 Peter Hutterer 2015-05-05 05:38:29 UTC
Sorry, missed this bug. Looks the same as Bug 89473 though, can we close this as dupe (even if it predates the other one).
Comment 3 Daniel Martin 2015-05-05 09:33:08 UTC
And I missed to keep track of it.

*** This bug has been marked as a duplicate of bug 89473 ***

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.