Touch screen is not functional with Linux images 11.05 build version

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

Touch screen is not functional with Linux images 11.05 build version

1,506 Views
nagesha71
Contributor I

Hello,

I am using a i.MX53 based SABRE tablet (SMD) board. 
The issue is, touch screen is not functional when I booted with Linux images from MMC card.

I have tried with 11.05_images and 11.05_source bundle (using ltib), but no luck.

I have exported below tslib env variables:

export TSLIB_CALIBFILE=/usr/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=/dev/tty
export TSLIB_TSDEVICE=/dev/input/ts0

ts_print_raw giving all zeros.
Below is the output of ts_print_raw and dmesg log.

root@freescale ~$ ts_print_raw
864.987672:      0      0      0
864.987674:      0      0      0
864.998603:      0      0      0
864.998604:      0      0      0
865.029458:      0      0      0
865.029459:      0      0      0
865.030772:      0      0      0
865.030773:      0      0      0

root@freescale ~$ dmesg
[  330.678063]  4
[  330.678077]  83
[  330.678081]  b0
[  330.678085]  71
[  330.678089]  90
[  330.678093]  70
[  330.678097]  8d
[  330.678101]  1
[  330.678105]  0
[  330.678108]  0
[  330.689014]  4
[  330.689020]  83
[  330.689024]  b0
[  330.689028]  71
[  330.689032]  90
[  330.689036]  70
[  330.689040]  76
[  330.689044]  1
[  330.689048]  0
[  330.689052]  0
[  330.719874]  4
[  330.719881]  83
[  330.719885]  d0
[  330.719888]  71
[  330.719893]  90
[  330.719896]  70
[  330.719900]  1
[  330.719904]  0
[  330.719908]  0
[  330.719911]  0
[  330.721193]  4
[  330.721198]  82
[  330.721202]  d0
[  330.721207]  71
[  330.721211]  90
[  330.721215]  70
[  330.721219]  1
[  330.721223]  0
[  330.721227]  0
[  330.721230]  0
root@freescale ~$

Below are the bootargs_mmc:
bootargs_mmc=setenv bootargs ${bootargs} console=tty1 root=/dev/mmcblk0p1 rootwait rw video=mxcdi1fb:RGB666,XGA di1_primary ldb=di1 ip=none

 

Beside this, observed that p1003 driver is failed in loading during boot up.  dmesg-boot.log is attached for you reference.

[    2.812222] p1003_fwv33 2-0041: couldn't read panel infomation.
[    2.821631] p1003_fwv33: probe of 2-0041 failed with error -5

 

Please let me know if you need any logs or info.

Please any one help me in getting out of this issue.

 

regards,

-Nagesh A

0 Kudos
6 Replies

957 Views
nagesha71
Contributor I

Thats great!

Actually when Xfbdev server runs with ts and mouse devices, when we shake the mouse it jumps to mouse protocol.

So, the calibrated values are becoming wrong for the ts. 

Need to find out a way of working Xfbdev with combination of ts and mouse devices simultaneously ?

Please update if you ever find a solution for that.

thanks,

-Nagesh A

0 Kudos

957 Views
Swamy
Contributor III

Hi Nagesh,

I changed the line

Xfbdev -mouse tslib,0,device=/dev/input/ts0 -mouse mouse,0,device=/dev/input/mice&

to

Xfbdev -screen 1024x768 -mouse tslib,,device=/dev/input/ts0 &

Now it works fine..

Thanks a lot for your help.

Regards,
Swamy

0 Kudos

957 Views
Swamy
Contributor III

Thanks for the reply.

Please see my startx file. I replaced

        Xfbdev -keybd keyboard,,device=/dev/input/keyboard0 -mouse mouse,2,device=/dev/input/mice &

with

Xfbdev -screen 1024x768 -mouse tslib,,device=/dev/input/event0  & 

I did not see any change. Can you please suggest here, if there any other way? 
Is there any other patch in egalax driver?

Regards,
Swamy

#!/bin/sh
IS_BABBAGE=NO
grep Babbage /proc/cpuinfo > /dev/null 2>&1
if [ $? = 0 ]; then
        IS_BABBAGE=YES
        Xfbdev -keybd keyboard,,device=/dev/input/keyboard0 -mouse mouse,2,device=/dev/input/mice &
fi

if [ -L /dev/input/ts0 ]; then
        Xfbdev -mouse tslib,2,device=/dev/input/ts0 -mouse mouse,2,device=/dev/input/mice&
else
        Xfbdev -mouse mouse,2,device=/dev/input/mice&
fi

sleep 8

matchbox-window-manager -d :0 -use_lowlight no -use_titlebar yes -use_cursor yes&
matchbox-desktop&
matchbox-panel  --bgtrans yes  &
sleep 5
# Calibrate when using the rootfs the first time
# Check whether the touch screen exists
if [ -L /dev/input/ts0 ]; then
        ls /usr/etc | grep pointercal > /dev/null 2>&1
        if [ $? = 1 ]; then
                ts_calibrate
        fi
fi

0 Kudos

957 Views
nagesha71
Contributor I

Hello Swamy,

I didn't do anything beyond applying a patch to egalax driver, and used Xfbdev as,

Xfbdev -screen 1024x768 -mouse tslib,,device=/dev/input/event0  & .
Can you try to run Xfbdev server, as mentioned above instead of,
Xfbdev -mouse tslib,2,device=/dev/input/mouse0 -mouse mouse,2,device=/dev/input/mice&
0 Kudos

957 Views
Swamy
Contributor III

Hi Nagesh,

I am able to configure the egalax driver for 11.05 build, but the touch is not accurate, it always selects the wrong folder for the first time..I have calibrated the touch, but still it fails.

Please tell me if you have any solution for this.

Regards,

Swamy

0 Kudos

957 Views
nagesha71
Contributor I

Touch screen is working fine with 11.05 build images.

Applied a patch to egalax driver as given in the below link:

http://www.imxdev.org/wiki/index.php?title=I.MX53_Qt_LVDS_display

 

Thanks,

-Nagesh A

0 Kudos