Sorry, forgot my attachment! 2010/11/18 Leo <[email protected]>
> Dear Peter: > I attach my evtest&&xev log. it seems to work ok. > But there's something intersting, I just repeat operation on the different > place of touch screen. > Evtest can distinguish the position, you can have a look at the log, the > ABS coordinate keep changing, > While XEV I run on my device, this test seems not as what we want, it can > distinguish the BTN_PRESS && BTN_RELEASE or > motion, but the position never changed. > > I guess there's some place to transform the event as user want in Xorg. > evtest may read from the /dev/input/event3 directly, it's ok. But XEV Which > may depends on X11's transformation, so appears the different situation. > > Please give some hints, thanks [?] > > BTW: I can not open the LINK [?] > > http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html > Is there any other website ? > > > > > 2010/11/18 Peter Hutterer <[email protected]> > > On Wed, Nov 17, 2010 at 09:34:49AM +0800, Leo wrote: >> > I prepare to port Meego(Linux based) to my devkit8000, follow the >> porting >> > guide >> > http://wiki.meego.com/ARM/Meego_on_B...d_from_scratch< >> http://wiki.meego.com/ARM/Meego_on_Beagleboard_from_scratch> >> > everything seems ok: show the home screen, launch the application, >> > But there's problem about touch screen. Meego can not recognize my >> behavior. >> > I'm not sure it's related with Xorg or driver. Here is my Xorg log: >> > >> > 59.837] (II) config/udev: Adding input device ADS7846 Touchscreen >> (/dev/i) >> > [ 59.837] (**) ADS7846 Touchscreen: Applying InputClass "default" >> > [ 59.841] (**) ADS7846 Touchscreen: Applying InputClass "evdev >> touchscreen " >> > [ 59.842] (**) ADS7846 Touchscreen: always reports core events >> > [ 59.842] (**) ADS7846 Touchscreen: Device: "/dev/input/event3" >> > [ 59.842] (--) ADS7846 Touchscreen: Found absolute axes >> > [ 59.842] (--) ADS7846 Touchscreen: Found x and y absolute axes >> > [ 59.842] (--) ADS7846 Touchscreen: Found absolute touchscreen >> > [ 59.843] (II) ADS7846 Touchscreen: Configuring as touchscreen >> > [ 59.843] (**) ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5 >> > [ 59.843] (**) ADS7846 Touchscreen: EmulateWheelButton: 4, >> EmulateWheelIner0 >> > [ 59.845] (II) XINPUT: Adding extended input device "ADS7846 >> Touchscreen" () >> > [ 59.851] (II) ADS7846 Touchscreen: initialized for absolute axes. >> > [ 59.854] (II) config/udev: Adding input device ADS7846 Touchscreen >> (/dev/i) >> > [ 59.854] (**) ADS7846 Touchscreen: Applying InputClass "default" >> > [ 59.855] (**) ADS7846 Touchscreen: always reports core events >> > [ 59.855] (**) ADS7846 Touchscreen: Device: "/dev/input/mouse0" >> > [ 59.855] (EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device >> > [ 59.856] (II) UnloadModule: "evdev" >> > [ 59.856] (EE) PreInit returned NULL for "ADS7846 Touchscreen" >> > [ 60.102] (NI) OMAPFBSaveScreen: Dim backlight? >> > >> > who has the experience about these kind of problem, pls talk to me! >> > thanks very much >> >> does it work at all? do you see events come out of the device when you run >> evtest against it? >> >> as for the error message: >> http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html >> >> Cheers, >> Peter >> > >
<<1E3.gif>>
<<33A.gif>>
----------------------------------------------------------------------------------
Here is evtest output, I just download the source code and compile with arm-gcc
Run on my device, that seems ok! Next part is my xev test.
----------------------------------------------------------------------------------
Input driver version is 1.0.0
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "ADS7846 Touchscreen"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 330 (Touch)
Event type 3 (Absolute)
Event code 0 (X)
Value 6153
Min 0
Max 4095
Event code 1 (Y)
Value 6152
Min 0
Max 4095
Event code 24 (Pressure)
Value 0
Min 0
Max 255
Testing ... (interrupt to exit)
Event: time 946685328.999538, type 1 (Key), code 330 (Touch), value 1
Event: time 946685328.999844, type 3 (Absolute), code 0 (X), value 6152
Event: time 946685328.999966, type 3 (Absolute), code 1 (Y), value 6923
Event: time 946685329.000057, type 3 (Absolute), code 24 (Pressure), value 254
Event: time 946685329.000149, -------------- Report Sync ------------
Event: time 946685329.094268, type 1 (Key), code 330 (Touch), value 0
Event: time 946685329.094299, type 3 (Absolute), code 24 (Pressure), value 0
Event: time 946685329.094329, -------------- Report Sync ------------
Event: time 946685336.278636, type 1 (Key), code 330 (Touch), value 1
Event: time 946685336.278880, type 3 (Absolute), code 0 (X), value 4867
Event: time 946685336.279002, type 3 (Absolute), code 1 (Y), value 7694
Event: time 946685336.279094, type 3 (Absolute), code 24 (Pressure), value 254
Event: time 946685336.279185, -------------- Report Sync ------------
Event: time 946685336.309272, type 1 (Key), code 330 (Touch), value 0
Event: time 946685336.309302, type 3 (Absolute), code 24 (Pressure), value 0
Event: time 946685336.309302, -------------- Report Sync ------------
Event: time 946685353.693651, type 1 (Key), code 330 (Touch), value 1
Event: time 946685353.693925, type 3 (Absolute), code 0 (X), value 5638
Event: time 946685353.694017, type 3 (Absolute), code 1 (Y), value 7437
Event: time 946685353.694139, type 3 (Absolute), code 24 (Pressure), value 254
Event: time 946685353.694230, -------------- Report Sync ------------
Event: time 946685353.723399, type 1 (Key), code 330 (Touch), value 0
Event: time 946685353.723429, type 3 (Absolute), code 24 (Pressure), value 0
Event: time 946685353.723429, -------------- Report Sync ------------
Event: time 946685353.736885, type 1 (Key), code 330 (Touch), value 1
Event: time 946685353.737099, type 3 (Absolute), code 24 (Pressure), value 254
-----------------------------------------------------------------------------------
//Xev init output:
-----------------------------------------------------------------------------------
Outer window is 0xa00001, inner window is 0xa00002
PropertyNotify event, serial 8, synthetic NO, window 0xa00001,
atom 0x27 (WM_NAME), time 90079, state PropertyNewValue
PropertyNotify event, serial 9, synthetic NO, window 0xa00001,
atom 0x22 (WM_COMMAND), time 90079, state PropertyNewValue
PropertyNotify event, serial 10, synthetic NO, window 0xa00001,
atom 0x28 (WM_NORMAL_HINTS), time 90079, state PropertyNewValue
CreateNotify event, serial 11, synthetic NO, window 0xa00001,
parent 0xa00001, window 0xa00002, (10,10), width 50, height 50
border_width 4, override NO
PropertyNotify event, serial 14, synthetic NO, window 0xa00001,
atom 0xfd (WM_PROTOCOLS), time 90083, state PropertyNewValue
MapNotify event, serial 15, synthetic NO, window 0xa00001,
event 0xa00001, window 0xa00002, override NO
MapNotify event, serial 23, synthetic NO, window 0xa00001,
event 0xa00001, window 0xa00001, override NO
VisibilityNotify event, serial 23, synthetic NO, window 0xa00001,
state VisibilityFullyObscured
Expose event, serial 23, synthetic NO, window 0xa00001,
(0,0), width 178, height 10, count 3
Expose event, serial 23, synthetic NO, window 0xa00001,
(0,10), width 10, height 58, count 2
Expose event, serial 23, synthetic NO, window 0xa00001,
(68,10), width 110, height 58, count 1
Expose event, serial 23, synthetic NO, window 0xa00001,
(0,68), width 178, height 110, count 0
ConfigureNotify event, serial 23, synthetic NO, window 0xa00001,
event 0xa00001, window 0xa00001, (0,122), width 800, height 398,
border_width 2, above 0x100000e, override NO
Expose event, serial 23, synthetic NO, window 0xa00001,
(0,0), width 800, height 10, count 3
Expose event, serial 23, synthetic NO, window 0xa00001,
(0,10), width 10, height 58, count 2
Expose event, serial 23, synthetic NO, window 0xa00001,
(68,10), width 732, height 58, count 1
Expose event, serial 23, synthetic NO, window 0xa00001,
(0,68), width 800, height 330, count 0
EnterNotify event, serial 23, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 91205, (797,395), root:(799,519),
mode NotifyNormal, detail NotifyAncestor, same_screen YES,
focus NO, state 0
KeymapNotify event, serial 23, synthetic NO, window 0x0,
keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ConfigureNotify event, serial 23, synthetic NO, window 0xa00001,
event 0xa00001, window 0xa00001, (0,122), width 800, height 398,
border_width 2, above 0x800019, override NO
FocusIn event, serial 23, synthetic NO, window 0xa00001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 23, synthetic NO, window 0x0,
keys: 68 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
VisibilityNotify event, serial 23, synthetic YES, window 0xa00001,
state VisibilityUnobscured
PropertyNotify event, serial 23, synthetic NO, window 0xa00001,
atom 0x16c (_NET_WM_ICON_GEOMETRY), time 93784, state PropertyNewValue
--------------------------------------------------------------------------------------
here is my touch screen test:
--------------------------------------------------------------------------------------
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186592, (797,395), root:(799,519),
state 0x0, is_hint 0, same_screen YES
ButtonPress event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186592, (797,395), root:(799,519),
state 0x0, button 1, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186601, (797,395), root:(799,519),
state 0x100, is_hint 0, same_screen YES
ButtonRelease event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186601, (797,395), root:(799,519),
state 0x100, button 1, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186614, (797,395), root:(799,519),
state 0x0, is_hint 0, same_screen YES
ButtonPress event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186614, (797,395), root:(799,519),
state 0x0, button 1, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186620, (797,395), root:(799,519),
state 0x100, is_hint 0, same_screen YES
ButtonRelease event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 186620, (797,395), root:(799,519),
state 0x100, button 1, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187840, (797,395), root:(799,519),
state 0x0, is_hint 0, same_screen YES
ButtonPress event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187840, (797,395), root:(799,519),
state 0x0, button 1, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187896, (797,395), root:(799,519),
state 0x100, is_hint 0, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187905, (797,395), root:(799,519),
state 0x100, is_hint 0, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187914, (797,395), root:(799,519),
state 0x100, is_hint 0, same_screen YES
MotionNotify event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187928, (797,395), root:(799,519),
state 0x100, is_hint 0, same_screen YES
ButtonRelease event, serial 24, synthetic NO, window 0xa00001,
root 0x44, subw 0x0, time 187928, (797,395), root:(799,519),
state 0x100, button 1, same_screen YES
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
