imx53qsb with ubuntu 10.04 and MCIMX-LVDS1 touchscreen

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx53qsb with ubuntu 10.04 and MCIMX-LVDS1 touchscreen

Jump to solution
1,908 Views
bamboosso
Contributor II

Hello,

I've seen a lot of posts in this forum on how to run MCIMX-LVDS touchscreen using ltib. I think I've managed to do this. With minimal distro build I get output of:

lucid@lucid-desktop:~$ sudo cat /dev/input/event2

there are a lot of binary data everytime I touch the screen.

So I took this kernel and applyed it to the ubuntu image that came with the board (dd it to sdcard) and copy compiled kernel modules.

Unfortunately under Ubuntu command:

lucid@lucid-desktop:~$ sudo cat /dev/input/event2

is totally quiet.

The behaviour of touchscreen changed after applying new kernel. Previously after touching it mouse cursor moved to the center of screen. Now it moves to the right bottom corner and generates mouse click (trash folder opens up).

I got:

lucid@lucid-desktop:~$ sudo lsinput

[...]

/dev/input/event2

   bustype : BUS_I2C

   vendor  : 0xeef

   product : 0x20

   version : 1

   name    : "eGalax Touch Screen"

   phys    : "I2C"

   bits ev : EV_SYN EV_KEY EV_ABS

[...]

Using evtest I get the event from eGalax but they are always in the same point: (9088, 12224)

lucid@lucid-desktop:~$ sudo evtest /dev/input/event2

Input driver version is 1.0.0

Input device ID: bus 0x18 vendor 0xeef product 0x20 version 0x1

Input device name: "eGalax Touch Screen"

Supported events:

  Event type 0 (Sync)

  Event type 1 (Key)

    Event code 330 (Touch)

  Event type 3 (Absolute)

    Event code 0 (X)

      Value   9088

      Min        0

      Max    32767

    Event code 1 (Y)

      Value  12224

      Min        0

      Max    32767

    Event code 24 (Pressure)

      Value      0

      Min        0

      Max        0

Testing ... (interrupt to exit)

eGalax is compiled as part of kernel not module.

Linux image generated by ltib is unusable for early development. Example ubuntu image has everything needed (besides working touchscreen) and working fine.

If someone have already configured MCIMX-LVDS1 to work with example Ubuntu 10.04 please help.

Regards

Maciej Łaski


Labels (4)
1 Solution
780 Views
bamboosso
Contributor II

Hello,

so i was easy... you just have to change records in /usr/lib/X11/xorg.conf.d

I deleted files (I do not need them):

/usr/lib/X11/xorg.conf.d/10-evtouch.conf

/usr/lib/X11/xorg.conf.d/10-synaptics.conf

/usr/lib/X11/xorg.conf.d/10-wacom.conf

And changed record in

/usr/lib/X11/xorg.conf.d/05-evdev.conf

to:

lucid@lucid-desktop:~$ cat /usr/lib/X11/xorg.conf.d/05-evdev.conf

# Catchall classes for input devices

# We don't simply match on any device since that also adds accelerometers

# and other devices that we don't really want to use. The list below

# matches everything but joysticks.

Section "InputClass"

   Identifier "eGalax"

   MatchProduct "eGalax"

   MatchDevicePath "/dev/input/event2"

   Driver "evdev"

   Option "SwapAxes" "off"

   Option "Calibration" "0 32767 0 32767"

EndSection

Section "InputClass"

Identifier "evdev pointer catchall"

MatchIsPointer "on"

MatchDevicePath "/dev/input/event7"

Driver "evdev"

EndSection

Section "InputClass"

Identifier "evdev keyboard catchall"

MatchIsKeyboard "on"

MatchDevicePath "/dev/input/event4"

Driver "evdev"

EndSection


I have mouse on event7, keyboard on event4 and touchscreen on event2. Others I don't need.

Hope it will help somebody, and save some time.

Regards

Maciek Łaski

View solution in original post

2 Replies
781 Views
bamboosso
Contributor II

Hello,

so i was easy... you just have to change records in /usr/lib/X11/xorg.conf.d

I deleted files (I do not need them):

/usr/lib/X11/xorg.conf.d/10-evtouch.conf

/usr/lib/X11/xorg.conf.d/10-synaptics.conf

/usr/lib/X11/xorg.conf.d/10-wacom.conf

And changed record in

/usr/lib/X11/xorg.conf.d/05-evdev.conf

to:

lucid@lucid-desktop:~$ cat /usr/lib/X11/xorg.conf.d/05-evdev.conf

# Catchall classes for input devices

# We don't simply match on any device since that also adds accelerometers

# and other devices that we don't really want to use. The list below

# matches everything but joysticks.

Section "InputClass"

   Identifier "eGalax"

   MatchProduct "eGalax"

   MatchDevicePath "/dev/input/event2"

   Driver "evdev"

   Option "SwapAxes" "off"

   Option "Calibration" "0 32767 0 32767"

EndSection

Section "InputClass"

Identifier "evdev pointer catchall"

MatchIsPointer "on"

MatchDevicePath "/dev/input/event7"

Driver "evdev"

EndSection

Section "InputClass"

Identifier "evdev keyboard catchall"

MatchIsKeyboard "on"

MatchDevicePath "/dev/input/event4"

Driver "evdev"

EndSection


I have mouse on event7, keyboard on event4 and touchscreen on event2. Others I don't need.

Hope it will help somebody, and save some time.

Regards

Maciek Łaski

780 Views
florianl
Contributor III

Hi Maciek,

I also try to get the MCIMX-LVDS to work with an imx6 board (SABRE Auto)

at the moment there is no /usr/lib/X11/xorg.conf.d in my build. I built my kernel and rootfs "fsl-image-gui" with YOCTO

Do you know why?

some background informations about the build:

I also get already input data over evtest

Kernel is 3.0.35-4.1.0

X.Org X Server is version 1.14.0

0 Kudos