Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Touchscreen for Finger on ThinkPad x200 Tablet

  1. #1
    Join Date
    Feb 2012
    Beans
    14

    Touchscreen for Finger on ThinkPad x200 Tablet

    Hi all

    I have problem to calibrate touchscreen for finger. I used xinput_calibrator but it didn't help.
    Stylus works perfectly but finger is way off at edges.

    Any help would be much appreciated. Thanx

    Lenovo x200 Tablet running 11.10 Oneiric Ocelot with latest update

  2. #2
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    Hi artmind,

    Welcome to Ubuntu forums!

    Let's see if the Wacom X driver has the touchscreen or if it is on the evdev driver. Run the following commands in a terminal and post the outputs.
    Code:
    xinput list
    
    xsetwacom list

  3. #3
    Join Date
    Feb 2012
    Beans
    14

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    xinput list
    Code:
    ⎡ Virtual core pointer                        id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
    ⎜   ↳ TPPS/2 IBM TrackPoint                       id=11    [slave  pointer  (2)]
    ⎜   ↳ Serial Wacom Tablet stylus                  id=13    [slave  pointer  (2)]
    ⎜   ↳ Serial Wacom Tablet eraser                  id=14    [slave  pointer  (2)]
    ⎜   ↳ Serial Wacom Tablet touch                   id=15    [slave  pointer  (2)]
    xsetwacom list
    Code:
    Serial Wacom Tablet stylus          id: 13    type: STYLUS    
    Serial Wacom Tablet eraser          id: 14    type: ERASER    
    Serial Wacom Tablet touch           id: 15    type: TOUCH
    thank you for the your help
    Last edited by artmind; February 24th, 2012 at 01:29 AM.

  4. #4
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    Well, you are on the Wacom driver so that isn't the problem.

    Let's try to see what coordinates X is using for your touchscreen. What is the output of?
    Code:
    xinput list-props "Serial Wacom Tablet touch"
    Then let's compare it to the coordinates in Xorg.0.log in /var/log. Compress it by right clicking it and Create Archive and attach it to your next post.

  5. #5
    Join Date
    Feb 2012
    Beans
    14

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    xinput list-props "Serial Wacom Tablet touch"
    Code:
    Device 'Serial Wacom Tablet touch':
        Device Enabled (132):    1
        Coordinate Transformation Matrix (134):    1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (250):    0
        Device Accel Constant Deceleration (251):    1.000000
        Device Accel Adaptive Deceleration (252):    1.000000
        Device Accel Velocity Scaling (253):    10.000000
        Device Node (274):    "/dev/ttyS4"
        Wacom Tablet Area (275):    0, 0, 1024, 1024
        Wacom Rotation (276):    0
        Wacom Pressurecurve (277):    0, 0, 100, 100
        Wacom Serial IDs (278):    147, 0, 3, 0
        Wacom Serial ID binding (279):    0
        Wacom Pressure Threshold (280):    27
        Wacom Sample and Suppress (281):    2, 4
        Wacom Enable Touch (282):    1
        Wacom Enable Touch Gesture (284):    0
        Wacom Touch Gesture Parameters (285):    0, 0, 250
        Wacom Tool Type (286):    "TOUCH" (292)
        Wacom Button Actions (287):    "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0)
        Device Product ID (288):    1386, 147
        Wacom Debug Levels (289):    0, 0
    Attached Files Attached Files

  6. #6
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    The Xorg.0.log shows the Area the serial digitizer is returning on isdv4GetRanges in wcmISDV4.c (which is in xf86-input-wacom):
    Code:
    [    18.962] (--) Serial Wacom Tablet touch: Wacom General ISDV4 tablet maxX=26312 maxY=16520 maxZ=255 resX=100000 resY=100000  tilt=disabled
    And it is the same for the stylus, eraser, and touch. Then it steps down the resolution for touch:
    Code:
    /* resolution in points/m */
    #define ISDV4_PEN_RESOLUTION    100000
    #define ISDV4_TOUCH_RESOLUTION  10000
    and after further processing around line #500 in the code we end up with:
    Code:
        Wacom Tablet Area (275):    0, 0, 1024, 1024
    Presumably if you did xinput list-props on the stylus you'd get the original values unchanged.

    I'm wondering why it is square? The screen isn't square. It isn't exactly on my USB tablet PC where the numbers are something like:
    Code:
    0, 0, 4000, 3875
    But close. Is there one direction where the alignment at the screen edges is worse? Say horizontal or vertical?

    What values is xinput_calibrator telling you the touchscreen should have?

  7. #7
    Join Date
    Feb 2012
    Beans
    14

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    Stylus works pefectly!

    xinput list-props "Serial Wacom Tablet stylus"

    Code:
    Wacom Tablet Area (275):	0, 0, 26312, 16520

    xinput_calibrator

    Code:
    Warning: multiple calibratable devices found, calibrating last one (Serial Wacom Tablet touch)
    	use --device to select another one.
    Calibrating standard Xorg driver "Serial Wacom Tablet touch"
    	current calibration values: min_x=0, max_x=1024 and min_y=0, max_y=1024
    	If these values are estimated wrong, either supply it manually with the --precalib option, or run the 'get_precalib.sh' script to automatically get it (through HAL).
    
    
    --> Making the calibration permanent <--
      copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
    Section "InputClass"
    	Identifier	"calibration"
    	MatchProduct	"!!Name_Of_TouchScreen!!"
    	Option	"MinX"	"43"
    	Option	"MaxX"	"947"
    	Option	"MinY"	"86"
    	Option	"MaxY"	"943"
    EndSection
    
    Change '!!Name_Of_TouchScreen!!' to your device's name in the config above.
    I tried to set values from xinput_calibrator and values from "xinput list-props "Serial Wacom Tablet stylus""
    to /etc/X11/xorg.conf.d and /usr/share/X11/xorg.conf.d/ dirs to
    99-calibration.conf and 50-wacom.conf files, but it didn't help

  8. #8
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    That helps. The xinput_calibrator indicate changes from the perfect 1024 x 1024 that list-props is giving you, which are consistent with problems at the screen edges.

    Rather than using TopX and Y and Bottom X and Y in .conf files in xorg.conf.d, clear that coordinate stuff out. Try xsetwacom first to find the values before trying that. Just type the command in a terminal and enter it and it should instantly apply. So you can find the right values much more quickly, rather than logging out and in all the time.
    Code:
    xsetwacom set "Serial Wacom Tablet touch" Area 43 86 947 943
    While the x1 and y1 values are suppose to be 0,0 with the default they can be negative numbers if need, i.e. -43 -86.

  9. #9
    Join Date
    Feb 2012
    Beans
    14

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    Is there one direction where the alignment at the screen edges is worse? Say horizontal or vertical?
    No, it's equally from each side.

    As I said my stylus works perfectly

    here is the output

    xinput list-props "Serial Wacom Tablet stylus"
    Code:
    Wacom Tablet Area (275):	0, 0, 26312, 16520
    xinput_calibrator
    Code:
    Warning: multiple calibratable devices found, calibrating last one (Serial Wacom Tablet touch)
    	use --device to select another one.
    Calibrating standard Xorg driver "Serial Wacom Tablet touch"
    	current calibration values: min_x=0, max_x=1024 and min_y=0, max_y=1024
    	If these values are estimated wrong, either supply it manually with the --precalib option, or run the 'get_precalib.sh' script to automatically get it (through HAL).
    
    
    --> Making the calibration permanent <--
      copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
    Section "InputClass"
    	Identifier	"calibration"
    	MatchProduct	"!!Name_Of_TouchScreen!!"
    	Option	"MinX"	"39"
    	Option	"MaxX"	"948"
    	Option	"MinY"	"93"
    	Option	"MaxY"	"946"
    EndSection
    
    Change '!!Name_Of_TouchScreen!!' to your device's name in the config above.
    "

    I tried to set values from xinput_calibrator and values from "xinput list-props "Serial Wacom Tablet stylus"" to 99-calibration.conf and 50-wacom.conf files in /etc/X11/xorg.conf.d/ and /usr/share/X11/xorg.conf.d/ dirs, but it didn't help

    PS
    sorry.. it's duplicate post
    Last edited by artmind; February 25th, 2012 at 06:29 AM.

  10. #10
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Touchscreen for Finger on ThinkPad x200 Tablet

    I think you missed my reply in post #8. Now you have a second set of xinput_calibrator values you can test for touch.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •