Touch input offset using extended desktop (DualMonitor)

Hi All,
after connecting a second screen, my main screen’s touch input is offset by a huge amount in the x-axis. How can I fix it?

Wrong category?

Nope, your question is just unclear…

  1. You have 2 monitors of which one is a touchscreen and the other is not and the touch is offset by exactly half of the second screen?
  2. If yes: did you extend desktops over 2 screens?
  3. All applications or just Google Chrome?
  4. If all applications: an inxi --admin --verbosity=7 --filter --no-host, xrandr and xinput list would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
  5. If only Google Chrome: Use FireFox! :stuck_out_tongue_winking_eye:

:innocent:

Sorry for the late reply.
The laptop has a touchscreen and I am connecting a second monitor without one.
Global Scale is at 225%, but setting it to 100% (and rebooting) did not solve the issue.

  1. Yes, but I can’t say if it is exactly half of the screen, lets say it is 1 KCalc in StatisticMode
  2. I used extend
  3. all applications
  4. inxi --admin --verbosity=7 --filter --no-host (removed some irrelevant stuff)
System:    Kernel: 5.7.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 root=UUID=.... rw quiet 
           Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.1 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: Dell product: XPS 13 9350 v: N/A serial: <filter> Chassis: type: 9 serial: <filter> 
           Mobo: Dell model: 07TYC2 v: A01 serial: <filter> UEFI: Dell v: 1.12.2 date: 12/15/2019 
CPU:       Topology: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP arch: Skylake family: 6 model-id: 4E (78) 
           stepping: 3 microcode: D6 L2 cache: 3072 KiB bogomips: 19204 
           Speed: 467 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 500 2: 500 3: 500 4: 500 
           Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art avx avx2 bmi1 bmi2 bts clflush 
           clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c 
           flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt 
           invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe 
           pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap 
           smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx 
           vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:1916 
           Device-2: Microdia Integrated Webcam HD type: USB driver: uvcvideo bus ID: 1-5:4 chip ID: 0c45:670c 
           Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: intel unloaded: modesetting alternate: fbdev,vesa 
           display ID: :0 screens: 1 
           Screen-1: 0 s-res: 5120x1800 s-dpi: 96 s-size: 1353x475mm (53.3x18.7") s-diag: 1434mm (56.5") 
           Monitor-1: eDP1 res: 3200x1800 hz: 60 dpi: 280 size: 290x170mm (11.4x6.7") diag: 336mm (13.2") 
           Monitor-2: DP1 res: 1920x1200 hz: 60 dpi: 83 size: 590x370mm (23.2x14.6") diag: 696mm (27.4") 
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.1.8 direct render: Yes 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-2: 1-4:3 info: Elan Micro Touchscreen type: HID driver: hid-multitouch,usbhid interfaces: 1 rev: 2.0 
           speed: 12 Mb/s chip ID: 04f3:20d0 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-1: 3-1:2 info: NXP s PTN5002 [Startech VGA/DVI-D adapter] type: N/A driver: N/A interfaces: 1 rev: 2.0 
           speed: 12 Mb/s chip ID: 1fc9:5002 serial: <filter>

xrandr output:

 Screen 0: minimum 8 x 8, current 5120 x 1800, maximum 32767 x 32767
 eDP1 connected primary 3200x1800+0+0 (normal left inverted right x axis y axis) 290mm x 170mm
    3200x1800     59.98*+  59.94  
    2880x1620     59.97  
    2560x1600     59.99    59.97  
    2560x1440     59.96    60.00    59.95  
    2048x1536     60.00  
    1920x1440     60.00  
    1856x1392     60.01  
    1792x1344     60.01  
    2048x1152     60.00    59.90    59.91  
    1920x1200     59.88    59.95  
    1920x1080     59.96    60.00    59.93  
    1600x1200     60.00  
    1680x1050     59.95    59.88  
    1400x1050     59.98  
    1600x900      60.00    59.95    59.82  
    1280x1024     60.02  
    1400x900      59.96    59.88  
    1280x960      60.00  
    1368x768      60.00    59.88    59.85  
    1280x800      59.81    59.91  
    1280x720      59.86    60.00    59.74  
    1024x768      60.00  
    1024x576      60.00    59.90    59.82  
    960x540       60.00    59.63    59.82  
    800x600       60.32    56.25  
    864x486       60.00    59.92    59.57  
    640x480       59.94  
    720x405       59.51    60.00    58.99  
    640x360       59.84    59.32    60.00  
 DP1 connected 1920x1200+3200+0 (normal left inverted right x axis y axis) 590mm x 370mm
    1920x1200     59.95*+
    1600x1200     60.00  
    1280x1024     75.02    60.02  
    1440x900      74.98    59.89  
    1280x960      60.00  
    1152x864      75.00  
    1024x768      75.03    70.07    60.00  
    832x624       74.55  
    800x600       72.19    75.00    60.32    56.25  
    640x480       75.00    72.81    66.67    59.94  
    720x400       70.08  
 DP2 disconnected (normal left inverted right x axis y axis)
 HDMI1 disconnected (normal left inverted right x axis y axis)
 HDMI2 disconnected (normal left inverted right x axis y axis)
 VIRTUAL1 disconnected (normal left inverted right x axis y axis)

xinput list output:

  Virtual core pointer                          id=2    [master pointer  (3)]
 ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
 ⎜   ↳ DLL0704:01 06CB:76AE Mouse                id=11   [slave  pointer  (2)]
 ⎜   ↳ DLL0704:01 06CB:76AE Touchpad             id=12   [slave  pointer  (2)]
 ⎜   ↳ ELAN Touchscreen                          id=10   [slave  pointer  (2)]
 ⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
     ↳ Power Button                              id=6    [slave  keyboard (3)]
     ↳ Video Bus                                 id=7    [slave  keyboard (3)]
     ↳ Power Button                              id=8    [slave  keyboard (3)]
     ↳ Sleep Button                              id=9    [slave  keyboard (3)]
     ↳ Intel HID events                          id=13   [slave  keyboard (3)]
     ↳ Dell WMI hotkeys                          id=14   [slave  keyboard (3)]
     ↳ AT Translated Set 2 keyboard              id=15   [slave  keyboard (3)]
     ↳ Integrated_Webcam_HD: Integrate           id=16   [slave  keyboard (3)]```

It’s probably not exactly half but 3/5 of the screen looking at your resolutions and confirms my suspicion: the X screen is 5120 pixels wide and the touchscreen only 3200.

  1. That’s what I suspected.

  2. :sob:

  3. Kernel 5.7 is EOL please upgrade to an LTS or a higher version.

    Test 1: try setting the resolution of the first screen to 1280x800 (from 3200x1800 and see if that makes the touch screen available over the entire width, please?)

    For the next test, I’ll need the output of xinput list-props 10

  4. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

instead of like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

(as that makes our life much easier so you get helped more quickly and efficiently)

:innocent:

P.S. Nothing to do for you this time as I’m an editor on this site and have done that for you already… :stuck_out_tongue_winking_eye:

1 Like

Thanks for the heads-up, I’ll upgrade my kernel.
Setting the main screen resolution to 1280x800 did not solve it, unfortunately (also tested it with global scale 100%)

xinput list-props 10

Device 'ELAN Touchscreen':
        Device Enabled (174):   1
        Coordinate Transformation Matrix (176): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Calibration Matrix (314):      1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Calibration Matrix Default (315):      1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Send Events Modes Available (297):     1, 0
        libinput Send Events Mode Enabled (298):        0, 0
        libinput Send Events Mode Enabled Default (299):        0, 0
        Device Node (300):      "/dev/input/event5"
        Device Product ID (301):        1267, 8400```

:sob:

Unfortunately your touch screen doesn’t seem to have a scaling option neither, so the only thing I can tell you now is:

  • In dual-monitor mode, use the mouse and stay away from the touchscreen
    OR
  • Ensure the second monitor is a touch screen too…

:sob:

Well, too bad…
Do you happen to know how ubuntu handles this - it seems to work there (I really don’t want to go back).

Urgh… I migrated away from Ubuntu 9 months ago… Can you boot an Ubuntu Live USB and provide xrandr and xinput output from there???

:thinking:

Sure!

xrandr

Screen 0: minimum 320 x 200, current 5120 x 1800, maximum 16384 x 16384
eDP-1 connected primary 3200x1800+0+0 (normal left inverted right x axis y axis) 294mm x 165mm
   3200x1800     59.98*+  59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 connected 1920x1200+3200+0 (normal left inverted right x axis y axis) 593mm x 371mm
   1920x1200     59.95*+
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.89  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

xinput

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                        	id=10	[slave  pointer  (2)]
⎜   ↳ DLL0704:01 06CB:76AE Mouse              	id=12	[slave  pointer  (2)]
⎜   ↳ DLL0704:01 06CB:76AE Touchpad           	id=13	[slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                      	id=17	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=9	[slave  keyboard (3)]
    ↳ Integrated_Webcam_HD: Integrate         	id=11	[slave  keyboard (3)]
    ↳ Intel HID events                        	id=14	[slave  keyboard (3)]
    ↳ Dell WMI hotkeys                        	id=15	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=16	[slave  keyboard (3)]

No difference. I wouldn’t know where to look now…

:sob:

Ok, thank you!

Calibrating Touchscreen

https://wiki.archlinux.org/title/Calibrating_Touchscreen