請先看『使用說明』
Touch Panel:USB
From LEXWiKi
How can I using touch panel in linux ?
Ans: |
plug in the PenMount USB controller in advance, then issuing more /proc/bus/input/devices should list something similiar to the following: T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=14e1 ProdID=5000 Rev=a5.b5 S: Manufacturer=Dialogue Inc S: Product=PenMount USB C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=penmountusb E: Ad=81(I) Atr=03(Int.) MxPS= 5 Ivl=10ms * More /proc/bus/input/devices gives you I: Bus=0003 Vendor=14e1 Product=5000 Version=a5b5 N: Name="Dialogue Inc PenMount USB" P: Phys=usb-0000:00:1d.0-1/input0 H: Handlers=event2 js0 # please record the event number of "Handlers" B: EV=b B: KEY=10000 0 0 0 0 0 0 0 0 B: ABS=3 Xorg Driver Module installation procedures: 1. copy penmount driver "penmount_drv.o" to "/usr/X11R6/lib/modules/input".
2. Edit X window configuration file to load driver.
InputDevice "Penmount" "AlwaysCore"
Section "InputDevice" Identifier "PenMount" Driver "penmount" Option "Protocol" "Auto" Option "Device" "/dev/input/event2" # this event number must be the same with "Handlers" Option "PMode" "1" Option "MinX" "10" Option "MaxX" "1000" Option "MinY" "10" Option "MaxY" "1000" Option "Beep" "1" # 0 = no beep, 1 = beep enabled Option "PressVol" "100" # volume of beep (press event) Option "PressPitch" "880" # pitch of beep (press event) Option "PressDur" "15" # length of beep in 10ms (press event) Option "ReleaseVol" "0" # volume of beep (release event) Option "ReleasePitch" "1200" # pitch of beep (release event) Option "ReleaseDur" "10" # length of beep in 10ms (release event) EndSection Utilities Installation procedures:
# mkdir /usr/local/pencal # cp * /usr/local/pencal
# cd /usr/local/pencal # ./adv-calib [4|9|16] ./adv-calib 4 (=calibration 4 point) ./adv-calib 9 (=calibration 9 point) ./adv-calib 16 (=calibration 16 point) |
---|---|
Patch File: | |
Defect: |
N/A |
Asker: |
Robert, April 07, 2008 |
Provider: |
Denny, April 07, 2008 |