Page 3 of 10 FirstFirst 12345 ... LastLast
Results 21 to 30 of 98

Thread: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

  1. #21
    Join Date
    Jan 2011
    Beans
    8

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Thanks Favus for putting it up. My desktop monitor is 1600x1200 and my tablet is 1280x800 and located to the right. I've attached a screenshot of the geometry I use for inverted and portrait.

    So,if I want a portrait orientation, we have sinA = -1 and cosA==0

    This gives

    xinput set-prop "Serial Wacom Tablet stylus" --type=float "Coordinate Transformation Matrix" 0 .33334 .66667 -1 0 1 0 0 1

    Note that here, to determine the offset and scaling in the horizontal direction, you have to use the X resolution of the desktop display and the Y resolution of the tablet. So, the X-offset is 1600/(1600+800)
    and the X-scaling is 800/(1600+800).

    For inverted, see the three previous posts.

    There does however seem to be some issues with the above configuration, so not sure I have it right. For example, Xournal with Xinput and the gnome panel seems to be using a different set of coordinates. So, if I click on the gnome panel, it interprets the click as coming from a place which is different to where the mouse pointer is. Likewise, Xournal works fine if I unclick the Xinput option, but if I leave the Xinput option checked, then the mouse is interpreted as being somewhere other than where the pointer is.
    Attached Images Attached Images
    Last edited by lejono; January 31st, 2011 at 08:56 PM.

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

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hi lejono,

    Thank you for the additional information. I think I need to process it for a bit. Do you mind going over what you've posted, esp. in terms of the xinput matrix commands, and confirm them?
    Likewise, Xournal works fine if I unclick the Xinput option, but if I leave the Xinput option checked, then the mouse is interpreted as being somewhere other than where the pointer is.
    This is ringing a dim bell somewhere but I can't pull it up right now.

    How bad is the offset? Is it consistent in one direction? Along the X or Y axis?

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

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hi lejono,

    I finally put up all your stuff, i.e. portrait too. Please check it over and make sure I got it right.

  4. #24
    Join Date
    Nov 2007
    Beans
    21

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hey all, I was thinking of writing a script that does the maths automatically for this. Has anyone tried this yet?

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

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hi Ambush Commander,

    Sounds like a good idea. I don't think I've seen anybody do a script for this stuff yet. Just the C code in xsetwacom.c for the "MaptoOutput" parameter.

  6. #26
    Join Date
    Jul 2009
    Beans
    74

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Great Howto, thank you very much!

  7. #27
    Join Date
    Jul 2009
    Location
    Netherlands
    Beans
    69
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    For what it's worth, I had some trouble getting the aspect of the tablet right and because I use nVidia the multiple monitor config isn't really an issue for me because of twinview, but the aspect ratio is. I have a combined resolution of 3840x1200 and a A5 sized Wacom tablet.
    Since the provided aspect option doesn't seem to work properly I decided to make a shell script to resize the sensitive area of the tablet to match the screen resolution based on width and height of both devices.
    Hope it's gonna be useful to others..

    Code:
    #!/bin/bash
    
    # Config active tablet area position
    positionX=center    #left, center, right
    positionY=top         #top, center, left
    
    # Start script
    precision=10000
    resolution=`/usr/bin/xrandr -q | grep "connected [0-9]\+x[0-9]\+" -o | tr -d "connected "`
    resX=`echo $resolution | grep "^[0-9]\+" -o`
    resY=`echo $resolution | grep "[0-9]\+$" -o`
    resRatio=$(((resX*precision)/resY))
    echo Wacom Aspectratio script 0.1 \(ReasonNL\)
    echo ""
    echo Trying to match aspect ratio of $resolution to the tablet
    echo Positioning area on horizontal $positionX and vertical $positionY
    echo ""
    xsetwacom --list | while read line; do
        device=`echo $line | grep "id: [0-9]\+" -o | tr -d "id: "`
        xsetwacom set "$device" ResetArea 1
        area=`xsetwacom get "$device" Area | grep "[0-9]\+ [0-9]\+$" -o`
        areaX=`echo $area | grep "^[0-9]\+" -o`
        areaY=`echo $area | grep "[0-9]\+$" -o`
        if [ "$areaX" != "" -a "$areaY" != "" ]; then
            if [ $resRatio -gt $precision ]; then
                newAreaX=$areaX
                newAreaY=$(( (areaX*precision)/resRatio ))
            elif [ $resRatio -lt $precision ]; then
                newAreaX=$(( (areaY*resRatio)/precision ))
                newAreaY=$areaY
            else
                if [ $areaX -gt $areaY ]; then
                    newAreaX=$areaY
                    newAreaY=$areaY
                else 
                    newAreaX=$areaX
                    newAreaY=$areaX
                fi
            fi
            newTop=0
            newLeft=0
            if [ $areaX -gt $newAreaX ]; then
                if [[ $positionX == center ]]; then
                    newLeft=$(( (areaX-newAreaX)/2 ))
                elif [[ $positionX == right ]]; then
                    newLeft=$(( areaX-newAreaX ))
                fi
                newAreaX=$((newAreaX+newLeft))
            fi
            if [ $areaY -gt $newAreaY ]; then
                if [[ $positionY == center ]]; then
                    newTop=$(( (areaY-newAreaY)/2 ))
                elif [[ $positionY == bottom ]]; then
                    newTop=$(( areaY-newAreaY ))
                fi
                newAreaY=$((newAreaY+newTop))
            fi
            xsetwacom set "$device" Area "$newLeft $newTop $newAreaX $newAreaY"
            echo Area of $line set to `xsetwacom get "$device" Area`
        else
            echo $line doesn\'t have an area
        fi
    done

  8. #28
    Join Date
    Jul 2009
    Beans
    74

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hello,

    this is a really gread thread.

    Is there a way to transfer the command e.g.

    Code:
    xinput set-prop "WALTOP International Corp. Slim Tablet stylus" --type=float "Coordinate Transformation Matrix" 0.5 0 0.5 0 1 0 0 0 1
    into an xorg.conf.d file? So that I can place it in /usr/share/X11/xorg.conf.d/ and set the options automatically?

    Bye
    MPW

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

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hi mpw,

    Glad you like it.
    Is there a way to transfer the command into an xorg.conf.d file? So that I can place it in /usr/share/X11/xorg.conf.d/ and set the options automatically?
    Not that I'm aware of. Xinput requires that X is running. The same is true of the xsetwacom MapToOutput parameter.

  10. #30
    Join Date
    Feb 2008
    Beans
    24

    Re: HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty

    Hey guys!
    I just went trough the nightmare of calculating this stuff for my two monitors.
    Since I'm a lazy person I though I would help a fellow lazy person out
    In the attachment is a LibreOffice Calc file (Excel) where you can input the resolution of your monitors and it will give you the values in the order needed for your case.
    This is only for two monitors with no rotations and so on...
    Feel free to expand on it like i said I'm lazy ^-^v
    Take care!
    Attached Files Attached Files

Page 3 of 10 FirstFirst 12345 ... LastLast

Tags for this Thread

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
  •