#1 Le 07/03/2012, à 23:02
- doraynico
[Tuto] paramétrage d'une tablette cintiq 12wx sous xubuntu 11.10
#!/bin/sh
# Script de parametrage cintiq 12wx !!!pas de 2e écran!!!. Sous xubuntu 11.10 fait le 7 mars 2012.
# merci au linux wacom project, Deevad, Regis qui est un cool, a l'équipe de xubuntu.
# LANCER UN SCRIPT DANS LE TERMINAL COMPORTE DES RISQUES, JE VOUS CONSEILLE DE BIEN LIRE L'INTEGRALITE DES NOTES ET DE PRENDRE CONNAISSANCES DE LA DOCUMENTATION A LAQUELLE RENVOIE LES LIENS.
# pour comprendre un peu le terminal : http://doc.ubuntu-fr.org/tutoriel/conso … es_de_base
# Pour des infos complémentaires sur xsetwacom ou pour paramétrer une autre tablette ou tabletpc reportez vous à : http://regisestuncool.wordpress.com/201 … ur-debian/
# Ou sur le site du linux wacom project : http://sourceforge.net/apps/mediawiki/l … gory:HOWTO
# Ou sur le blog de Deevad : http://www.davidrevoy.com/index.php?cat … d-hardware
# CE SCRIPT FONCTIONNE POUR UNE CINTIQ 12WX et XUBUNTU 11.10, JE NE PEUX CERTIFIER QU'IL FONCTIONNE SUR D'AUTRES DISTRIBUTIONS
# !!! AVANT DE LANCER LE SCRIPT DANS LE TERMINAL, SUIVEZ CETTE ROUTINE POUR ALIGNER LA POSITION DU CURSOR SOUS LA POINTE DU STYLET !!! INSTALLER LE PILOTE WACOM EST OBLIGATOIRE AVANT DE LANCER LE SCRIPT POUR EVITER DE GROS SOUCIS !!!
# MISE A JOUR DU WACOM DRIVER :
# sudo add-apt-repository ppa:irie/wacom && sudo apt-get update && sudo apt-get install xserver-xorg-input-wacom
# COMMANDE POUR AVOIR LE NOM DE LA TABLETTE (xsetwacom est l'outil pour configurer les tablettes wacom):
# xsetwacom list
# CA DONNE :
# Wacom Cintiq 12WX stylus id: 10 type: STYLUS
# Wacom Cintiq 12WX eraser id: 12 type: ERASER
# Wacom Cintiq 12WX pad id: 13 type: PAD
# CALIBRER : INSTALLER XINPUT-CALIBRATOR :
# sudo apt-get install xinput-calibrator
# COMMANDE DANS TERMINAL POUR ACCEDER AU CALIBRAGE (quand vous arriverez à l'écran de calibrage, c'est la pointe du stylet que vous tenez dans la main et pas le cursor qui doit toucher le centre des croix:)) :
# xinput_calibrator --device "Wacom Cintiq 12WX stylus"
# CA DONNE POUR MOI:
# current calibration values: min_x=632, max_x=52739 and min_y=411, max_y=33070
# !!! CES VALEURS SONT DIFFERENTES POUR CHAQUE UTILISATEUR; ADAPTER LES COMMANDES set CI-DESSOUS A VOS "current calibration values" ET REMPLACEZ LES DANS LE SCRIPT !!!
# ENTRER COMMANDES set DANS LE TERMINAL POUR ASSIGNER LE CALIBRAGE AU stylus ET AU eraser ET VERIFIER QUE CA VOUS VA :
# xsetwacom set "Wacom Cintiq 12WX stylus" Area 632 411 52739 33070 # REMPLACER PAR VOS VALEURS
# xsetwacom set "Wacom Cintiq 12WX eraser" Area 632 411 52739 33070 # REMPLACER PAR VOS VALEURS
# SI LE CALIBRAGE EST BON PENSER A MODIFIER LES LIGNES CORRESPONDANTES DANS LE SCRIPT CI-DESSOUS
# __________________________________script________________________________
## Stylus
xsetwacom set "Wacom Cintiq 12WX stylus" TabletPCButton off # par defaut sur on pour les tablet PCs (ordinateurs portables), sur off pour les tablettes JE VOUS CONSEILLE DE LE METTRE SUR off
xsetwacom set "Wacom Cintiq 12WX stylus" RawSample 8 # VOUS DEMANDEZ CE QU'EST rawsample : http://regisestuncool.wordpress.com/201 … ur-debian/
xsetwacom set "Wacom Cintiq 12WX stylus" PressureCurve 0 0 100 100 # REMPLACER PAR VOS VALEURS et POUR COMPRENDRE A QUOI CELA CORRESPOND : http://linuxwacom.sourceforge.net/misc/bezier.html
xsetwacom set "Wacom Cintiq 12WX stylus" Area 632 411 52739 33070 # REMPLACER PAR VOS VALEURS
## Eraser
xsetwacom set "Wacom Cintiq 12WX eraser" RawSample 8
xsetwacom set "Wacom Cintiq 12WX eraser" PressureCurve 0 0 100 100 # REMPLACER PAR VOS VALEURS
xsetwacom set "Wacom Cintiq 12WX eraser" Area 632 411 52739 33070 # REMPLACER PAR VOS VALEURS
## Pad Left
# Boutons gauches:
# ---------
# | 13 |
# ---------
# | | 1 |
# | 3 |---|
# | | 2 |
# |-------|
# | 8 |
# ---------
xsetwacom set "Wacom Cintiq 12WX pad" StripLeftDown "key <" # donne < PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" StripLeftUp "key shift <" # donne > PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 13 "key a" # donne a PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 3 "key b" # donne b PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 1 "key c" # donne c PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 2 "key d" # donne d PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 8 "key e" # donne e PAR EXEMPLE
## Pad Right
# Boutons droits:
# ---------
# | 14 |
# ---------
# | 9 | |
# |---|11 |
# |10| |
# |-------|
# | 12 |
# --------- pour moi pas de modif des valeurs pour le stripright, enlever les # si vous avez besoin de les modifier aux deux lignes de commande en dessous et entrez vos valeurs
# xsetwacom set "Wacom Cintiq 12WX pad" StripRightDown "key <" # decrease brush size PAR EXEMPLE
# xsetwacom set "Wacom Cintiq 12WX pad" StripRightUp "key shift <" # increase brush size PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 14 "key p" # donne p PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 9 "key g" # donne g PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 10 "key h" #donne h PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 11 "key i" # donne i PAR EXEMPLE
xsetwacom set "Wacom Cintiq 12WX pad" Button 12 "key j" # donne j PAR EXEMPLE
Dernière modification par doraynico (Le 08/03/2012, à 22:11)
Hors ligne