터치스크린을 위한 커널 마우스 스크린 해상도 설정
리눅스 X Window 실행 시 터치스크린의 터치 좌표가
Input 모쥴에 따라 현재 화면 해상도에 맞게 자동 변환이 안 될 때가 있다.
이 때는 커널 옵션을 바꿔서 커널을 재 컴파일 하거나
리눅스 부팅 할 때 커널 부팅 파라미터 값을 임의로 추가 하여 문제를 해결 할 수 있다.
Kernel Boot Parameter : http://redsymbol.net/linux-kernel-boot-parameters/4.12/
Linux Kernel Parameters
Linux Kernel Boot Parameters Derived from kernel-parameters.txt in the Linux source acpi= [HW,ACPI,X86,ARM64] Advanced Configuration and Power Interface Format: { force | on | off | strict | noirq | rsdt | copy_dsdt } force -- enable ACPI if default was of
redsymbol.net
< Kernel Boot Parameter에서 터치스크린을 위한 마우스 스크린 해상도 설정 >
mousedev.xres= [MOUSE] Horizontal screen resolution, used for devices
reporting absolute coordinates, such as tablets
mousedev.yres= [MOUSE] Vertical screen resolution, used for devices
reporting absolute coordinates, such as tablets
예) mousedev.xres=1920 mousedev.yres=1080
< Kernel Build 마우스 스크린 해상도 설정 >
make menuconfig
Kernel : Device
-> Input : Horizontal / Vertical screen resolution 설정
Horizontal : 1920
Vertical : 1080
< 터치스크린에서 손가락 드래그 시에 마우스 포인터가 더 멀리 이동 하는 문제 해결 >
Xorg.conf 파일에서
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
#for PCAP Touch
#Option "Emulate3Buttons" "on"
#for 3M Micro Touch
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
# for Xinput
Option "ConstantDeceleration" "1.0"
Option "AdaptiveDeceleration" "1.0"
Option "VelocityScale" "1.0"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
Option "AccelSpeed" "-1"
EndSection
위의 InputDevice 항목에서 굵은 글씨로 표시된 Mouse Acceleration 관련 옵션을
1대1로 조절 하면 문제 해결 된다.