ARMCPU(ARMv4)が載っているボードmini2440に付属している
タッチパネルの設定で正解を見つけたのでメモを残しておく。
/etc/X11/xorg.conf
----
section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Touchpad0" "CorePointer"
Option "OffTime" "10"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
EndSection
Section "InputDevice"
Identifier "Touchpad0"
Driver "evtouch"
Option "CorePointer" "true"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/event1"
Option "DeviceName" "touchscreen"
Option "Rotate" "CW"
"/etc/X11/xorg.conf" 81L, 2247C
section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Touchpad0" "CorePointer"
Option "OffTime" "10"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Touchpad0" "CorePointer"
Option "OffTime" "10"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
EndSection
Section "InputDevice"
Identifier "Touchpad0"
Driver "evtouch"
Option "CorePointer" "true"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/event1"
Option "DeviceName" "touchscreen"
Option "Rotate" "CW"
Option "MoveLimit" "10"
Option "Calibrate" "0"
Option "ReportingMode" "Raw"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
Option "MinX" "110"
Option "MinY" "107"
Option "MaxX" "899"
Option "MaxY" "916"
Option "x0" "4"
Option "y0" "2"
Option "x1" "0"
Option "y1" "5"
Option "x2" "-5"
Option "y2" "5"
Option "x3" "-26"
Option "y3" "0"
Option "x4" "1"
Option "y4" "0"
Option "x5" "-2"
Option "y5" "0"
Option "x6" "4"
Option "y6" "-5"
Option "x7" "2"
Option "y7" "-5"
Option "x8" "-3"
Option "y8" "-4"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
EndSection
Section "Monitor"
Identifier "Monitor0"
ModelName "Monitor Model"
DisplaySize 120 160
# DisplaySize 240 320
EndSection
Section "Device"
Identifier "Card0"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
EndSection
----
ポイントは、
Option "Rotate" "CW"
を追加して画面を回転させているところ。
もし、キャリブレーションするなら赤いX印通りだとうまくいかない。
どうすればいいのかというと、X印の順を逆らって
「FriendlyARM」文字が下になるようにして
258
147
036
[FriendlyARM]
のように押すと正しい値でout.txtが出力される。
(X印の進行は2,5,8,1,4、、、6の順に進んでいく。)
知らないと嵌るので要注意。
0 件のコメント:
コメントを投稿