Re: eGalax touchscreen and RandR rotation

2013-10-22 Thread Sandeep
Here's touch calculations taken from Android documentation on Linux touch input: xScale = output.width / raw.width yScale = output.height / raw.height If not orientation aware or screen rotation is 0 degrees: output.x = (raw.x - raw.x.min) * xScale output.y = (raw.y - raw.y.min) * yScale Else If

Re: eGalax touchscreen and RandR rotation

2013-10-21 Thread Sandeep
For input, I am using xf86-input-evdev . I am not using the proprietary eGalax driver. I might be wrong about the input rotating with the screen. The problem is the mouse cursor/pointer location does not correspond to the touch input. The movement of the cursor does correspond to the touch input,

Re: eGalax touchscreen and RandR rotation

2013-10-21 Thread Peter Hutterer
On Fri, Oct 04, 2013 at 05:36:00PM -0700, Sandeep wrote: > Hi, > > I have an Acer Iconia Tab W500. It has an eGalax touchscreen. Single touch > input works. > > I mainly use KDE, and when I rotate the screen using the Krandrtray > application, the mouse input works fine, but the touchscreen inpu

Re: eGalax touchscreen and RandR rotation

2013-10-20 Thread Sandeep
Ok, I was wrong. Looked at Xorg logs, and it shows that the /dev/input/mouse* devices that correspond to the touchscreen are not picked up by any of the existing configurations in xorg.conf.d On Thu, Oct 10, 2013 at 11:48 PM, Sandeep wrote: > I think I figured out what's wrong. > > udev creates

Re: eGalax touchscreen and RandR rotation

2013-10-11 Thread Sandeep
I think I figured out what's wrong. udev creates two input devices for the touchscreen: - Touch input - Mouse input I guess this is done to emulate the touchscreen as a mouse so that it can be used with existing GUI's without requiring applications to handle touch input. Mouse input is configure