hmm, the displacement cannot be solved by a simple linear transformation. it's very weird actually. I added some debugging lines to the driver to print out the X and Y values it reads from the serial port (testing on a PM9000 here) and when I'm following the far left border of the screen with the pen, my cursor makes a circular movement towards the inside of the screen. it's hard to explain. the same happens at the far right edge of the screen. the top and bottom line are just fine, so there seems to be something wrong with reading the X values from the port.
the code for this is: x = ( priv->packet[1] & 0x00000FFF ); x <<= 7; x += ( priv->packet[2] & 0x0FFFFFFF ); y = ( priv->packet[3] & 0x00000FFF ); y <<= 7; y += ( priv->packet[4] & 0x0FFFFFFF ); very similar for X and Y, but X isn't giving me satisfying results. I'm also wondering why it maps with 0x00000FFF, only to do a 7-bit left-shift straight afterwards. why not just map with 0x0000000F ? I'll try to dig deeper into this. -- no calibration tool https://bugs.launchpad.net/bugs/227183 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs