https://bugs.kde.org/show_bug.cgi?id=528729

            Bug ID: 528729
           Summary: Dual touchscreens on ASUS ROG Zephyrus Duo GX651AR not
                    mapped to their own outputs
    Classification: Plasma
           Product: kwin
      Version First 6.8.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: multi-screen
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 198387
  --> https://bugs.kde.org/attachment.cgi?id=198387&action=edit
Patch built by LLM

The ASUS ROG Zephyrus Duo GX651AR has two built-in touchscreens, one per
display. KWin does not map each touchscreen to its own display.

STEPS TO REPRODUCE
1. Use the GX651AR with both internal displays enabled.
2. Touch the secondary screen.
3. Responds on Main screen.

OBSERVED RESULT
Touch input lands on the wrong output.

EXPECTED RESULT
Each touchscreen controls only the display it is physically attached to.

HARDWARE
- Laptop: ASUS ROG Zephyrus Duo GX651AR
- DMI: sys_vendor "ASUS", product_name "ROG Zephyrus Duo GX651AR",
  board_name "GX651AR"
- Two ELAN touchscreens on separate I2C controllers:
  Main panel:     
/sys/devices/pci0000:00/0000:00:19.0/i2c_designware.0/i2c-0/i2c-ELAN9008:00/
                   (HID 04F3:451D)
  Secondary panel:
/sys/devices/pci0000:00/0000:00:19.1/i2c_designware.1/i2c-1/i2c-ELAN9009:00/
                   (HID 04F3:451E)
- Each panel exposes several event nodes; the touch node is the one KWin
  treats as a touch device.

SOFTWARE
- Distro: [Fedora 45] 
- KWin version: [6.8.2]
- Plasmashell version: [6.8.2]
- Session: Wayland
- Output names seen by KWin: [output of kscreen-doctor -o, e.g. eDP-1, DP-1]

ADDITIONAL INFORMATION
I wrote a possible fix and attached it. It adds a DMI-guarded lookup in the
libinput backend
that matches the two I2C paths above and maps them to eDP-1 and DP-1. The
unit tests (testLibinputDevice and the other four libinput tests) pass, and
the patch is clang-format and REUSE clean. I have NOT yet run the patched
KWin on the hardware.

I am not sure a hardcoded DMI/path quirk is the right approach for KWin, and
the connector names are not guaranteed stable. Would a hwdb/udev rule setting
WL_OUTPUT be preferred, or is there a better way to match each touchscreen
to its display (e.g. by EDID)?


Attachment is a patch that i just dont think i fully written correctly

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to