LCD Touchscreen in Debian

Started by martinayotte, July 07, 2013, 08:16:33 PM

Previous topic - Next topic

martinayotte

Is someone got the TS running on Debian, especially for LCD 10inch ?
The display is working fine, but I would like to have TS as InputDevice on X11...

Update : I've found the answer by following recipe originally for A13 :

https://www.olimex.com/forum/index.php?topic=444.30

Everything is working by executing startx, although lightdm doesn't want to start anymore, maybe question of environment, I will search further.


martinayotte

Hi,

Yes, I've tried this version also, but /usr/sbin/lightdm still crashing trying to load the driver. But "startx" continue to work well.

HeHoPMaJIeH

Quote from: martinayotte on July 11, 2013, 08:16:22 PM
Hi,

Yes, I've tried this version also, but /usr/sbin/lightdm still crashing trying to load the driver. But "startx" continue to work well.
Can you post Xorg.log file ?

martinayotte

#4
Sure ! here is the tail of the Xorg.log :

[    27.546] (II) AIGLX: Screen 0 is not DRI2 capable
[    27.546] (II) AIGLX: Screen 0 is not DRI capable
[    27.648] (II) AIGLX: Loaded and initialized swrast
[    27.648] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    28.282] (II) config/udev: Adding input device sun4i-ts (/dev/input/event1)
[    28.283] (**) sun4i-ts: Applying InputClass "Sun4iTouchscreen"
[    28.283] (II) LoadModule: "tslib"
[    28.283] (II) Loading /usr/lib/xorg/modules/input/tslib_drv.so
[    28.296] (II) Module tslib: vendor="X.Org Foundation"
[    28.296]    compiled for 1.12.4, module version = 0.0.1
[    28.296]    Module class: X.Org XInput Driver
[    28.296]    ABI class: X.Org XInput driver, version 16.0
[    28.296] (II) Using input driver 'tslib' for 'sun4i-ts'
[    28.297] (**) sun4i-ts: always reports core events
[    28.297] (**) sun4i-ts: always reports core events
[    28.305] ts_config failed
[    28.305] (II) UnloadModule: "tslib"
A    28.305] (EE) PreInit returned 2 for "hy
A`o
   A
A�q
   A�q
      A��
         A��
            A�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@�2J@"
[    28.305] xf86TslibUninit
[    28.305] xf86TslibControlProc
[    28.305]
[    28.305] Backtrace:
[    28.306]
[    28.306] Segmentation fault at address (nil)
[    28.306]
Fatal server error:
[    28.306] Caught signal 11 (Segmentation fault). Server aborting
[    28.306]
[    28.306]

And here is the same tail when executing "startx" directly :

[   639.904] (II) AIGLX: Screen 0 is not DRI2 capable
[   639.904] (II) AIGLX: Screen 0 is not DRI capable
[   639.919] (II) AIGLX: Loaded and initialized swrast
[   639.919] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   640.158] (II) config/udev: Adding input device sun4i-ts (/dev/input/event1)
[   640.159] (**) sun4i-ts: Applying InputClass "Sun4iTouchscreen"
[   640.159] (II) LoadModule: "tslib"
[   640.160] (II) Loading /usr/lib/xorg/modules/input/tslib_drv.so
[   640.161] (II) Module tslib: vendor="X.Org Foundation"
[   640.161]    compiled for 1.12.4, module version = 0.0.1
[   640.161]    Module class: X.Org XInput Driver
[   640.161]    ABI class: X.Org XInput driver, version 16.0
[   640.161] (II) Using input driver 'tslib' for 'sun4i-ts'
[   640.161] (**) sun4i-ts: always reports core events
[   640.161] (**) sun4i-ts: always reports core events
[   640.167] (**) Option "config_info" "udev:/sys/devices/platform/sun4i-ts/input/input1/event1"
[   640.167] (II) XINPUT: Adding extended input device "sun4i-ts" (type: TOUCHSCREEN, id 6)
[   640.168] xf86TslibControlProc
[   640.168] (**) sun4i-ts: (accel) keeping acceleration scheme 1
[   640.168] (**) sun4i-ts: (accel) acceleration profile 0
[   640.168] (**) sun4i-ts: (accel) acceleration factor: 2.000
[   640.168] (**) sun4i-ts: (accel) acceleration threshold: 4
[   640.169] xf86TslibControlProc
[   640.170] (II) config/udev: Adding input device axp15-supplyer (/dev/input/event0)
[   640.171] (**) axp15-supplyer: Applying InputClass "evdev keyboard catchall"
[   640.171] (II) LoadModule: "evdev"
[   640.171] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so


martinayotte

#5
I've found the solution :

with "startx", it load the environment according to environment variables correctly, such as :

export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf               

But "lightdm" seems to ignore those variables, and it try to load those two files from /usr/local/etc/ instead.
(maybe hardcoded somehow)

So, my solution was to put symbolic links. It doesn't crash anymore and pointercal is also found.

rspock

I'm using the board with qt embedded but I get a strange behaviors, sometimes when i click the cursor move randomly far from the finger.

Is it a tslib bug? qt? or touchscreen problem?