ts_calibrate with rotated display

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ts_calibrate with rotated display

3,591 次查看
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!


标签 (3)
6 回复数

1,515 次查看
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 项奖励
回复

1,515 次查看
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 项奖励
回复

1,515 次查看
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 项奖励
回复

1,515 次查看
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 项奖励
回复

1,515 次查看
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 项奖励
回复

1,515 次查看
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 项奖励
回复