2011. november 17.

Workaround with TwinView

ATTENTION! THIS POST IS OUTDATED!

FINALLY:

xsetwacom --set "Serial Wacom Tablet" "TwinView" horizontal
xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" -24780, -12390, 0, 18630
xsetwacom --set "Serial Wacom Tablet eraser" "TwinView" none
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" -24780, -12390, 24780, 18630

or, sometimes they work with the same settings... still testing... still testing...:


xsetwacom --set "Serial Wacom Tablet" "TwinView" none
xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" -24780, -12390, 24780, 18630
xsetwacom --set "Serial Wacom Tablet eraser" "TwinView" none
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" -24780, -12390, 24780, 18630

-----------------------------

Let's pretend we are surprised that the whole thing does not work if we want to rotate the display of the tablet..

So these will work for the tablet screen rotated upside down:

xsetwacom --set "Serial Wacom Tablet" twinview none
xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" -24780, -12390, 24780, 18630
xsetwacom --set "Serial Wacom Tablet eraser" twinview none
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" -24780, -12390, 24780, 18630

Amazing, these are the same settings :-)
------------------------------------------------
Let's pretend we are surprised when turning back, some other settings apply correctly:

xsetwacom --set "Serial Wacom Tablet" twinview none
xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" -24780, -12390, 24780, 18630
xsetwacom --set "Serial Wacom Tablet eraser" twinview horizontal
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" -24780, -12390, 24780, 18630
:-)
this will be fun, setting it up every time differently.
--------------------------------------------------


WORKAROUND:

Written here wisely:


UPDATE: since version 0.10.11
support for TwinView and Multimonitor has been removed from the driver.
to map the tablet to only one screen use something similar to this:

xsetwacom get "Wacom BambooFun 2FG 4x5 Pen stylus" Area
0 0 14720 9200

to map it to the left screen, double the third value and set like:
xsetwacom set "Wacom BambooFun 2FG 4x5 Pen stylus" Area "0 0 29440 9200"
for the right screen use the negative third value as the first:
xsetwacom set "Wacom BambooFun 2FG 4x5 Pen stylus" Area "-14720 0 14720 9200"


If I want to apply it for my 1024x768 Tablet PC environment with a 1024x1280 Monitor on the left side, I'll have to:

xsetwacom --set "Serial Wacom Tablet" "TwinView" horizontal

Now, for some reason xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" 0, 0, 12390, 18630 maps my tablet monitor in single view.
And it maps the complete 2048x1280 area in twin view.

In theory these numbers are: TopX, TopY, BottomX, BottomY
Where X is the horizontal and Y is the vertical value.

xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" 0, 0, 24780, 18630
this maps the 1024x1280 screen, which is to the left of the tablet monitor.

xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" -24780, -12390, 0, 18630
for some reason this maps the stylus tablet area :-)

I have to map the eraser separately
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" 0, 0, 24780, 18630
this maps my eraser in singleview. (white stylus is in twinview)
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" -24780, -12390, 24780, 18630
for some reason this maps the eraser tablet area in singleview :-)


Nincsenek megjegyzések: