ts_calibrate with rotated display

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

ts_calibrate with rotated display

3,453 Views
roryhansen
Contributor II

We want to use our display in "portrait" mode.  Our command in startx is:

Xfbdev -kb -screen 800x480@90 -mouse tslib,2,device=/dev/input/ts0 &


The display itself works fine, but ts_calibrate seems to ignore the rotate parameter, always running in "portrait" (non-rotated) mode.  So therefore the touch screen doesn't work properly when @90 rotation is used.  Without the rotate parameter, the touch screen work fine.


Any suggestions on how to get ts_calibrate working correctly with the display "rotated" on the i.MX28 EVM?



Thanks all!


Labels (3)
6 Replies

1,377 Views
GraceH
Senior Contributor II

It is X-Window and tslib usage. Maybe you can refer below link.

http://boundarydevices.com/portrait-mode-x-on-i-mx51/

0 Kudos

1,377 Views
jimmychan
NXP TechSupport
NXP TechSupport

Have you try to use the command "xrandr"?

1. export DISPLAY=:0.0

2. xrandr -q     ( it will show out the screen information )

3. xrandr -o left    ( it will rotate left )

4. xrandr -o right 

0 Kudos

1,377 Views
YixingKong
Senior Contributor IV

Jimmy

This issue had been resolved in branch, but open here. PLease check with customer. If it was resolved please close it.

Thanks,

Yixing

0 Kudos

1,377 Views
roryhansen
Contributor II

No xrandr command with the MX28 linux kernel, don't see any way to build it in using ltib.

The screen rotation does happen with the "Xfbdev -kb -screen 800x480@90 -mouse tslib,2,device=/dev/input/ts0 &" in the startx script, but ts_calibrate doesn't seem to care that the screen has been rotated.

Would think this would be fairly easy.

0 Kudos

1,377 Views
LeonardoSandova
Specialist I

AFAIK, 'xrandr' is part of X11 RandR extension so this binary should constructed when building X11, but I have not verified this.

0 Kudos

1,377 Views
roryhansen
Contributor II

The 'xrandr' library is there, which I assume is what "xfbdev" is using with the "@90" rotate parameter, but no actual 'xrandr' command (that I can see).

I also got what I believe is the latest, or at least newer, version of tslib, but still no difference.

0 Kudos