Xorg configuration for working driver?

Marvin Gülker quintus at quintilianus.eu
Thu Aug 2 15:03:27 PDT 2012


Hi there,

It has taken me a good amount of time, but finally I got an (Arch)
Linux system running on my ARCHOS 101G9 tablet (ARMv7 processor).
Everything works fine, except for the touchscreen. The kernel
recognises the screen and adds a device for it as /dev/input/event8
when I load the pixcir_i2c_tsp kernel module. I can even see event data
arriving at that device file using the "evtest" program. However, I
don’t get it to work with X, it just is as if the device wouldn’t even
exist for X. I’m sure it’s just some little line in
my /etc/X11/xorg.conf.d/30-pixcir.conf I created for this devise, but I
can’t figure out what exactly I need.

Here’s my current setup:

===================================================
$ X -version

X.Org X Server 1.12.3
Release Date: 2012-07-09
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.38-6-ARCH armv7l 
Current Operating System: Linux walhalla 3.0.8-QUINTUS-TABLET+ #12 SMP
PREEMPT Thu Aug 2 12:20:53 CEST 2012 armv7l Kernel command line:
mem=512M init=/linuxrc debug omapdss.debug=0 omapfb.debug=0 Build Date:
10 July 2012  03:32:49PM 
Current version of pixman: 0.26.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.

$ ls /etc/X11/xorg.conf.d/
10-evdev.conf  10-quirks.conf  10-synaptics.conf  20-fbdev.conf
30-pixcir.conf  50-final.conf
===================================================

I did not modify the 10-*.conf files. Here are the contents of the
other three ones:

===================================================
$ cat /etc/X11/xorg.conf.d/20-fbdev.conf 
Section "Module"

EndSection

Section "Device"
        Identifier "Builtin Default fbdev Device 0"
	Driver "fbdev"
	Option "fb" "/dev/fb0"
EndSection

# cat /etc/X11/xorg.conf.d/30-pixcir.conf 
Section "InputDevice"
        Identifier "Pixcir Internal Touchscreen"
#        MatchIsTouchscreen "on"
        Option "DeviceName" "Pixcir Internal Touchscreen"
        Option "Device" "/dev/input/event8"
#        MatchDevicePath "/dev/input/event8"
        Driver "evdev"
#	Option "AbsoluteScreen" "1"
#	Option "XAbsoluteAxisMap" "1"
#	Option "YAbsoluteAxisMap" "0"
        Option "Emulate3Buttons" "On"
        Option "SendCoreEvents" "On"
EndSection

$ cat /etc/X11/xorg.conf.d/50-final.conf 
Section "Monitor"
        Identifier "Builtin Default Monitor"
EndSection

Section "Screen"
        Identifier "Builtin Default fbdev Screen 0"
        Device "Builtin Default fbdev Device 0"
        Monitor "Builtin Default Monitor"
EndSection

Section "ServerLayout"
        Identifier "Builtin Default Layout"
        Screen "Builtin Default fbdev Screen 0"
        InputDevice "Pixcir Internal Touchscreen" "CorePointer"
EndSection
===================================================

I’m by no means an export of X configuration and most of the directives
you see above are a result of various searches across the Internet.
I’ve tried several different tings in 30-pixcir.conf, but I cannot get
X to react in any way to using the touchscreen.

Here’s an except from what "evtest" outputs:

===================================================
# evtest /dev/input/event8
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "pixcir_i2c_tsp"
Supported events:
  Event type 0 (EV_SYN)
  Event type 3 (EV_ABS)
    Event code 47 (ABS_MT_SLOT)
      Value      0
      Min        0
      Max        3
    Event code 48 (ABS_MT_TOUCH_MAJOR)
      Value      0
      Min        0
      Max      128
    Event code 50 (ABS_MT_WIDTH_MAJOR)
      Value      0
      Min        0
      Max      128
    Event code 53 (ABS_MT_POSITION_X)
      Value      0
      Min        0
      Max     1280
    Event code 54 (ABS_MT_POSITION_Y)
      Value      0
      Min        0
      Max      800
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max    65535
Properties:
Testing ... (interrupt to exit)
Event: time 4152.393829, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID),
value 32 Event: time 4152.393859, type 3 (EV_ABS), code 53
(ABS_MT_POSITION_X), value 803 Event: time 4152.393890, type 3
(EV_ABS), code 54 (ABS_MT_POSITION_Y), value 579 Event: time
4152.393890, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 18
Event: time 4152.393920, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR),
value 29 Event: time 4152.393920, -------------- SYN_REPORT
------------ Event: time 4152.400573, type 3 (EV_ABS), code 48
(ABS_MT_TOUCH_MAJOR), value 19 Event: time 4152.400573, type 3
(EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 31
===================================================

Attached is my Xorg.0.log and the output of "dmesg". Note that I
plugged/unplugged my mouse a few times when switching to my main box
(and yes, I do feel silly using a mouse with a touchscreen tablet
device...).

So, how do I tell X to use the touchscreen? I don’t mind for multitouch
support (yet), I just want to be able to use the touchscreen as a kind
of mouse replacement for now.

Greetings,
Marvin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmesg
URL: <http://lists.x.org/archives/xorg/attachments/20120803/47b112c1/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log
Type: text/x-log
Size: 25234 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20120803/47b112c1/attachment.bin>


More information about the xorg mailing list