tslib: 선택 상자의 반대 방향으로 마우스 커서를 이동합니다.

tslib: 선택 상자의 반대 방향으로 마우스 커서를 이동합니다.

저는 Debian 7 ARM 머신에서 tslib/xf86-input-tslib를 사용하고 있습니다.ts_보정그리고ts_테스트잘 작동합니다. Xfce에 문제가 있습니다. 화면을 터치하고 손가락을 움직이면 마우스 커서가 손가락을 따라가는 것을 볼 수 있지만 Y축에서 오프셋된 선택 상자가 나타난 다음 마우스 커서를 향해 이동합니다. 내 xorg.conf:

Section "InputDevice"
    Identifier "tslib"
    Driver "tslib"
    Option "Device"    "/dev/input/event1"
    Option "ScreenNumber"  "0"
    Option "Width" "0"
    Option "Height"    "0"
    Option "Rotate"    "NONE"
    Option "EmulateRightButton"    "1"
EndSection

Section "ServerLayout"
     Identifier      "Default Layout"
     InputDevice     "tslib" "CorePointer"
EndSection      

tslib 버전은 1.1이고 xf86-input-tslib는 Ubuntu에서 제공됩니다.https://code.launchpad.net/~ubuntu-branches/ubuntu/saucy/xf86-input-tslib/saucy

USB 마우스가 예상대로 작동합니다.

고양이 /proc/버스/입력/장치

I: Bus=0018 Vendor=0000 Product=fe2e Version=0100
N: Name="TPS6507x Touchscreen"
P: Phys=1-0048/input0
S: Sysfs=/devices/platform/omap/omap_i2c.1/i2c-1/1-0048/input/input1
U: Uniq=
H: Handlers=mouse0 event1
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003

이 문제를 어떻게 해결할 수 있나요?

답변1

문제는 Xorg가 동일한 장치에 대해 evdev 및 tslib 드라이버를 모두 사용한다는 것입니다.

표준 Xorg 구성 파일은 입력 장치를 검색하며 터치 스크린인 경우 기본적으로 evdev가 사용됩니다.

Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
EndSection

Xorg는 장치가 이미 다른 드라이버와 함께 사용되고 있는지 확인하지 않는 것 같습니다. 그래서 두 개의 드라이버를 사용합니다. 해결책은 이 섹션에 주석을 다는 것입니다 /usr/share/X11/xorg.conf.d/10-evdev.conf.

관련 정보