Screen rotation with touch screen issue

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help

Screen rotation with touch screen issue

Postby samandiriel on Sat Nov 17, 2012 2:23 pm

I've just gotten a Windpad 110W from a friend and have been playing with it. Very happy with Linux Mint, which worked flawlessly out of the box and is far snappier than Windows.

I'd like to use this as an eReader as well, which ideally means rotating the screen 90 degrees. I can rotate the screen no probem, but the touch screen sensing (eGalax) doesn't seem to follow the monitor rotation. I tried installing xinput_calibrator and recalibrating, but (unsurprisingly) that doesn't affect the touch sensing orientation. I suspect I need to diddle with my xorg.conf or xinput somehow, but I could really use a pointer in the right direction!

I've tried several things to no avail, such as

Code: Select all
xrandr -o left
xinput set-int-prop 10 "Evdev Axes Swap" 8 1
xinput set-int-prop 10 "Evdev Axis Calibration" 32 4052 36 35 4156


and

Code: Select all
xrandr -o left
xinput --set-prop "eGalax Inc. USB TouchController" "Evdev Axes Swap" 1
xinput --set-prop "eGalax Inc. USB TouchController" "Evdev Axis Inversion" 1, 0


Any insights?
Tyler Style
User avatar
samandiriel
Level 1
Level 1
 
Posts: 33
Joined: Sat Nov 17, 2012 1:57 pm

Linux Mint is funded by ads and donations.
 

Re: Screen rotation with touch screen issue

Postby Favux on Sun Nov 18, 2012 2:46 pm

Hi samandiriel,

Are there two touch events in 'xinput list'? What is its output? You might be using the wrong device name if there is both a single finger (1FGT) and multi-touch event (>= 2FGT). Which I believe the recent eGalax driver supports.

You could take a peek at a HP TX2z evdev touch rotation script here: http://ubuntuforums.org/showpost.php?p= ... count=1084 Might be helpful.


Also for Natty 11.04 evdev axis inversion and swap was broken and Ubuntu said they wouldn't fix it. So we had to go to the CTM (coordinate transformation matrix) method. But I think they relented and inversion and swap work now. Not sure.
Favux
Level 3
Level 3
 
Posts: 199
Joined: Fri Jul 01, 2011 1:20 am

Re: Screen rotation with touch screen issue

Postby samandiriel on Mon Nov 19, 2012 11:20 am

Favux wrote:Hi samandiriel,

Are there two touch events in 'xinput list'? What is its output? You might be using the wrong device name if there is both a single finger (1FGT) and multi-touch event (>= 2FGT). Which I believe the recent eGalax driver supports.

You could take a peek at a HP TX2z evdev touch rotation script here: http://ubuntuforums.org/showpost.php?p= ... count=1084 Might be helpful.


Also for Natty 11.04 evdev axis inversion and swap was broken and Ubuntu said they wouldn't fix it. So we had to go to the CTM (coordinate transformation matrix) method. But I think they relented and inversion and swap work now. Not sure.

Thanks for the link Favux, but unfortunately the script uses more or less the same commands I've already tried, and so unsurprisingly doesn't work. Touches still don't correspond to anyplace rational on the display.

And I definitely only have a single touch device listed on xinput, the eGalax Inc. USB TouchController. Aside from that there's just the virtual core xtext pointer and something called "MSI EPF USB", which I think is the backlight controller.
Tyler Style
User avatar
samandiriel
Level 1
Level 1
 
Posts: 33
Joined: Sat Nov 17, 2012 1:57 pm

Re: Screen rotation with touch screen issue

Postby Favux on Mon Nov 19, 2012 12:41 pm

Alright. What release are you using?
Code: Select all
Xorg -version

cat /etc/issue


You could try the CTM method detailed on the Multi-monitor HOW TO: viewtopic.php?f=42&t=112852 Tablet PC matrices are in Appendix 1. Unfortunately you'll probably run into the X Server bug that causes the pointer to jump around when an input tool is using xf86-input-evdev. They fixed the static unrotated masked valuator case for it upstream (X Server 1.13.0) but apparently the fix doesn't work for rotation and/or touchscreens. A patch to fix that was submitted to the original bug report.
Favux
Level 3
Level 3
 
Posts: 199
Joined: Fri Jul 01, 2011 1:20 am

Re: Screen rotation with touch screen issue

Postby samandiriel on Mon Nov 19, 2012 1:37 pm

Favux wrote:Alright. What release are you using?
Code: Select all
Xorg -version

cat /etc/issue


You could try the CTM method detailed on the Multi-monitor HOW TO: viewtopic.php?f=42&t=112852 Tablet PC matrices are in Appendix 1. Unfortunately you'll probably run into the X Server bug that causes the pointer to jump around when an input tool is using xf86-input-evdev. They fixed the static unrotated masked valuator case for it upstream (X Server 1.13.0) but apparently the fix doesn't work for rotation and/or touchscreens. A patch to fix that was submitted to the original bug report.

I'm on Xorg v1.11.3 + Mint v13
I've also tried fiddling with the matrices (found a tutorial elsewhere), but to no good effect yet :( I'll read thru the one you've linked to and see if it offers any new insight, but a quick skim doesn't look hopeful :(
Tyler Style
User avatar
samandiriel
Level 1
Level 1
 
Posts: 33
Joined: Sat Nov 17, 2012 1:57 pm

Re: Screen rotation with touch screen issue

Postby Favux on Mon Nov 19, 2012 2:07 pm

Could be rotation for the eGalax driver isn't working at all.

Depending on which eGalax driver you might have a file /etc/eGTouchL.ini. If so what happens if you turn rotation on (changing 0 to 1) in it?
Code: Select all
DetectRotation         1

Does that help or does it just complain you broke the daemon?
Favux
Level 3
Level 3
 
Posts: 199
Joined: Fri Jul 01, 2011 1:20 am


Return to Hardware Support

Who is online

Users browsing this forum: Bing [Bot] and 14 guests