Synfig Project Forum

Forums for Synfig Project
It is currently Wed May 22, 2013 4:02 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon May 17, 2010 8:13 am 
Offline
User avatar

Joined: Wed Feb 04, 2009 8:34 pm
Posts: 152
Location: France
Hi,

I'd like to discuss here about settings to get Wacom tablets working on Dual Screen configs on Linux.

First here is the material I use:
-Wacom intuos3 A4
-first screen : 1920x1080
-second screen : 1280x1024
-Graphic card : Nvidia geforce 9800 GT
OS: Ubuntu 10.04 x86_64

So here is a simple schema showing how the screens must be mapped on tablet to get a correct ratio:

Attachment:
wacomActiveArea.png
wacomActiveArea.png [ 6.33 KiB | Viewed 2310 times ]


to get this now I have to use those scripts to toggle screens:
script 1 :
#!/bin/sh
# Script Xsetwacom pour Intuos 3 A4, sous Ubuntu 10.04.

#tablette sur le Screen 0
xsetwacom set "Wacom Intuos3 9x12" Screen_No 0
xsetwacom set "Wacom Intuos3 9x12 eraser" Screen_No 0
xsetwacom set "Wacom Intuos3 9x12" TopX 0
xsetwacom set "Wacom Intuos3 9x12" TopY 0
xsetwacom set "Wacom Intuos3 9x12" BottomX 36586
xsetwacom set "Wacom Intuos3 9x12" BottomY 34290


xsetwacom set "Wacom Intuos3 9x12 eraser" TopX 0
xsetwacom set "Wacom Intuos3 9x12 eraser" TopY 0
xsetwacom set "Wacom Intuos3 9x12 eraser" BottomX 36586
xsetwacom set "Wacom Intuos3 9x12 eraser" BottomY 34290

script 2 :
#!/bin/sh
# Script Xsetwacom pour Intuos 3 A4, sous Ubuntu 10.04.

#tablette sur le Screen 1
xsetwacom set "Wacom Intuos3 9x12" Screen_No 1
xsetwacom set "Wacom Intuos3 9x12 eraser" Screen_No 1
xsetwacom set "Wacom Intuos3 9x12" TopX 34912
xsetwacom set "Wacom Intuos3 9x12" TopY 0
xsetwacom set "Wacom Intuos3 9x12" BottomX 58200
xsetwacom set "Wacom Intuos3 9x12" BottomY 43413

xsetwacom set "Wacom Intuos3 9x12 eraser" TopX 34912
xsetwacom set "Wacom Intuos3 9x12 eraser" TopY 0
xsetwacom set "Wacom Intuos3 9x12 eraser" BottomX 5820
xsetwacom set "Wacom Intuos3 9x12 eraser" BottomY 43413

Also I have to use Twinview mode, with screen 1 on the right of screen 0, because with Xinerama there's a strange Bug: when drawing in graphic apps like Mypaint, Gimp, and Synfig,
the line is offset far on the right from the cursor.


Please share your experience with dualscreen+wacom, I'm curious to know if there's a more simple way to get it working …

_________________
Illustrations, Comics, Animations


Last edited by Satrip on Mon May 24, 2010 3:54 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon May 17, 2010 3:03 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
Hi Satrip,
I've looked to my xorg.conf and I don't see anything special for the wacom setup for dual screens. All the relevant lines are commented out by hal.
Basically the thing is that I use the wacom device from time to time and I only use it on one of the monitors. I have a Tablet laptop where I squeeze my brain to produce "quality images" :lol: So the Graphire is a dust covered device latest days.
-G

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@crested)  Sun Feb  1 20:25:37 UTC 2009
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg
# commented out by update-manager, HAL is now used
# commented out by update-manager, HAL is now used
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Driver      "wacom"
#   Identifier   "stylus"
#   Option      "Device"   "/dev/input/wacom"
#   Option      "Type"      "stylus"
#   Option          "PressCurve"    "50,0,100,50"   # Custom preference
#   Option      "USB"      "on"
#EndSection
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Driver      "wacom"
#   Identifier   "eraser"
#   Option      "Device"   "/dev/input/wacom"
#   Option      "Type"      "eraser"
#   Option      "USB"      "on"
#EndSection
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Driver      "wacom"
#   Identifier   "cursor"
#   Option      "Device"   "/dev/input/wacom"
#   Option      "Type"      "cursor"
#   Option      "USB"      "on"
#EndSection
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Driver      "wacom"
#   Identifier   "pad"
#   Option      "Device"   "/dev/input/wacom"
#   Option      "Type"      "pad"
#   Option      "USB"      "on"
#EndSection
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Identifier   "Generic Keyboard"
#   Driver      "kbd"
#   Option      "XkbRules"   "xorg"
#   Option      "XkbModel"   "pc105"
#   Option      "XkbLayout"   "es"
#   Option      "XkbOptions"   "lv3:ralt_switch"
#EndSection
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Identifier   "Configured Mouse"
#   Driver      "mouse"
#   Option      "CorePointer"
#EndSection

Section "Monitor"
   Identifier     "Configured Monitor"
EndSection

Section "Monitor"
   Identifier     "Monitor0"
   VendorName     "Unknown"
   ModelName      "CRT-0"
   HorizSync       30.0 - 82.0
   VertRefresh     56.0 - 76.0
EndSection

Section "Screen"
   Identifier     "Default Screen"
   Device         "Configured Video Device"
   Monitor        "Configured Monitor"
   Option         "AddARGBGLXVisuals" "True"
   DefaultDepth   24
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "Device0"
   Monitor        "Monitor0"
   DefaultDepth    24
   Option         "TwinView" "1"
   Option         "TwinViewXineramaInfoOrder" "CRT-0"
   Option         "metamodes" "CRT-0: 1400x1050 +1280+0, CRT-1: nvidia-auto-select +0+0"
   # Removed Option "metamodes" "CRT-0: nvidia-auto-select +1280+0, CRT-1: nvidia-auto-select +0+20"
   SubSection "Display"
      Depth       24
   EndSubSection
EndSection

Section "Module"
   Load           "glx"
EndSection

# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#Section "InputDevice"
#   Identifier     "Keyboard0"
#   Driver         "kbd"
#EndSection

# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#Section "InputDevice"
#   Identifier     "Mouse0"
#   Driver         "mouse"
#   Option         "Protocol" "auto"
#   Option         "Device" "/dev/psaux"
#   Option         "Emulate3Buttons" "no"
#   Option         "ZAxisMapping" "4 5"
#   # generated from default
#EndSection

Section "Extensions"
   Option         "Composite" "Enable"
EndSection

Section "ServerLayout"
   Identifier     "Default Layout"
   Screen      0  "Screen0" 0 0
# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#   InputDevice    "Keyboard0" "CoreKeyboard"
# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#   InputDevice    "Mouse0" "CorePointer"
   # commented out by update-manager, HAL is now used
   #   InputDevice     "stylus"   "SendCoreEvents"
   # commented out by update-manager, HAL is now used
   #   InputDevice     "cursor"   "SendCoreEvents"
   # commented out by update-manager, HAL is now used
   #   InputDevice     "eraser"   "SendCoreEvents"
   # commented out by update-manager, HAL is now used
   #   InputDevice   "pad"
EndSection

Section "Device"
   Identifier     "Configured Video Device"
   Driver         "nvidia"
   Option         "NoLogo" "True"
EndSection

Section "Device"
   Identifier     "Device0"
   VendorName     "NVIDIA Corporation"
   BoardName      "GeForce 8800 GT"
   Driver   "nvidia"
   Option   "NoLogo"   "True"
EndSection

Section "ServerFlags"
   Option         "Xinerama" "0"
EndSection

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Mon May 24, 2010 4:07 pm 
Offline
User avatar

Joined: Wed Feb 04, 2009 8:34 pm
Posts: 152
Location: France
Thank you Genete for your reply.

I've edited my first post, there was wrong value for TopX on screen1.

Also after more research I've found the problem is there is no equivalent to the KeepShape option in xsetwacom,
the only way to get "KeepShape" is to set it on xorg.conf or, in Lucid, according to Ubuntu english doc, here: /usr/lib/X11/xorg.conf.d/10-wacom.conf
(more details: https://help.ubuntu.com/community/Wacom)

So with this I've been able to set my tablet to screen0 with a correct ratio at start-up, but if I use any xsetwacom to change screen the KeepShape ratio is lost.
So this way is good if the tablet stay on only one screen. One bad thing with this setting is there is a bug when I reach the right end of the tablet, the cursor goes to the edge of the 2nd screen,
and if I stay there too long X server crash/restart.

So for now I stay with my "custom values" setting…

_________________
Illustrations, Comics, Animations


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group