<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Touch does not work in secondary display after calibration in multihead setup"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83954">83954</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Touch does not work in secondary display after calibration in multihead setup
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anasuyax.r.nannuri@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In multi display setup, when calibrating secondary display with touch device,
touch doesn’t not work. If I disconnect primary display, that makes secondary
display as new primary display and touch works just fine.

Steps to reproduce:
1. Identify primary display as display1, and secondary display as display2.
Here secondary display is a touch device.
2. Launch weston
3. Execute weston-calibrator on display2 and capture calibration values
4. Exit weston
5. Create a udev rule in /etc/udev/rules.d/weston.rules with calibration
values:
Example:
ENV{ID_VENDOR_ID}=="2149",ENV{ID_MODEL_ID}=="2122",ENV{WL_CALIBRATION}="0.994876
-0.013934 12.975220 -0.004180 1.008462 -3.079773"

(I tried udev rule with LIBINPUT_CALIBRATION_MATRIX, touch does not work.
Weston still using WL_CALIBRATION, I created udev rule with WL_CALIBRATION)

6. Unplug and replug touch device
7. Restart weston. 
8. Execute weston-simple-touch on display2. Observe touch does not work.
9. Disconnect display1. Observe touch works on display2.

Software Stack:
wayland (HEAD) remotes/origin/HEAD-0-gedf4e7a 
drm (HEAD) heads/master-16-gd686160 
mesa (HEAD) remotes/origin/10.2-0-ge475222 
libva (HEAD) libva-1.3.1-0-g053f70f 
intel-driver (HEAD) 1.3.1-0-ga720bc8 
cairo (HEAD) remotes/origin/1.12-0-g4b65497 
libinput (HEAD) remotes/origin/HEAD-0-g224f1d8 
weston (HEAD) remotes/origin/HEAD-0-gf1d2cc0</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>