Hello,

I am using Wacom tablet on Ubuntu 15.04 and latest (0.4.8) version of
xournal from Ubuntu repository.

To make boundaries of tablet surface to match size of xournal window
(opposite to the situation when tablet surface matches entire desktop) I
run xsetwacom command to adjust "area" property reported to driver. It
works well and allows to use entire surface of the tablet for drawing.

This trick works fine but when (for reasons not discussed here) I have to
move xournal window or resize it, mapping needs to be repeated to adjust to
new coordinates of the xournal window withing the desktop. The mapping
script performs  calculation based on *original* (default, fresh) settings
of the tablet's "area" parameter which are no longer in place after
previous run of the script. To overcome this issue I need to disconnect the
tablet, connect it back, and re-run the script... but I really don't like
the "physical re-connect" component of the process.

I came up with using an approach to "emulate" USB devise unplug/replug
prior calling to my script... and it works almost fine: it sets "area"
parameter back to default value (i.e. 0 0 15200 9500) but it *reassigns
mapping of input devices* so xournal cannot use "stylus" for drawing. It
shows the cursor, but it that cursor doesn't draw. Here is an example of
changed mapping:

*Before:*
$ xinput list
⎡ Virtual core pointer                     id=2 [master pointer  (3)]
⎜   ↳ Wacom Intuos PT S Pen stylus             id=11 [slave  pointer  (2)]
⎜   ↳ Wacom Intuos PT S Pen eraser             id=12 [slave  pointer  (2)]
⎜   ↳ Wacom Intuos PT S Pad pad               id=14 [slave  pointer  (2)]
⎜   ↳ Wacom Intuos PT S Finger touch           id=15 [slave  pointer  (2)]

*After:*
$ xinput list
⎡ Virtual core pointer                     id=2 [master pointer  (3)]
⎜   ↳ Wacom Intuos PT S Pad pad             id=11 [slave  pointer  (2)]
⎜   ↳ Wacom Intuos PT S Pen eraser             id=12 [slave  pointer  (2)]
⎜   ↳ Wacom Intuos PT S Pen stylus              id=13 [slave  pointer  (2)]
⎜   ↳ Wacom Intuos PT S Finger touch           id=14 [slave  pointer  (2)]

Here mapping for stylus changed from device ID 11 to 13.

My *question*: can I somehow signal xournal to re-evaluate input device
mapping?

Thank you.

-- 
Simon
------------------------------------------------------------------------------
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to