Cette page n'a pas encore d'étiquettes.
Apportez votre aide…

Ceci est une ancienne révision du document !


Installation Bamboo Pen&Touch CTH-460 sur Lucid ou Maverick

Voilà après toute forme d'aide surtout de la part de Favux j'ai décidé de retranscrire en français le module d'intégration de la nouvelle génération de tablette graphique Bamboo Pen&Touch de Wacom. C'est la CTH460; Product ID = 0xd1 Commençons par ouvrir le Terminal Dans /Applications/accessoires tapez dans un terminal :

lsusb

vous devriez avoir une ligne comme celle-ci:

Bus XXX Device XXX: ID 056a:00d1 Wacom Co., Ltd

ce qui nous intéressent c'est le 00d1 correspondant à la tablette incriminée.

verifions la présence des drivers "normalement ils devraient être présent d'office dans Lucid et Maverick

sudo apt-get install xserver-xorg-input-wacom

Installons la dernière veersion de linuxwacom's 0.8.8-10 wacom.ko

cd Bureau

wget http://prdownloads.sourceforge.net/linuxwacom/linuxwacom-0.8.8-10.tar.bz2

sudo apt-get update

sudo apt-get install build-essential libx11-dev libxi-dev x11proto-input-dev xserver-xorg-dev libxrandr-dev tk8.4-dev tcl8.4-dev libncurses5-dev

sudo apt-get upgrade

sudo apt-get install linux-headers-generic

tar xjvf linuxwacom-0.8.8-10.tar.bz2

cd linuxwacom-0.8.8-10

./configure --enable-wacom --prefix=/usr

make

sudo cp ./src/2.6.30/wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko

sudo depmod -a

Redémarrer le PC

taper:

lsmod | grep wacom

vous devez voir l'incription wacom suivi de chiffres ce qui prouve que le module est bien installé.

Pour Lucid Lynx 10.04 LTS

Installons le git:

sudo apt-get install git-core

ensuite

cd Bureau

git clone git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/xf86-input-wacom

sudo apt-get update

sudo apt-get install build-essential libx11-dev libxi-dev x11proto-input-dev xserver-xorg-dev libxrandr-dev libncurses5-dev xutils-dev autoconf libtool pkg-config

sudo apt-get upgrade

(You can also run this line below once.)

sudo apt-get build-dep xf86-input-wacom

wget http://xorg.freedesktop.org/releases/individual/util/util-macros-1.8.0.tar.bz2

sudo cp /usr/share/aclocal/xorg-macros.m4 /usr/share/aclocal/xorg-macros.m4.bak

tar xjvf util-macros-1.8.0.tar.bz2

cd util-macros-1.8.0

./configure --prefix=/usr

make

sudo make install

cd ..

cd xf86-input-wacom

./autogen.sh --prefix=/usr

make

sudo make install

Redémarrer le PC

à ce stade la tablette ne fonctionne pas encore correctement.

Configurons la tablette à présent

Sous Lucid

gksudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf

Sous Maverick

gksudo gedit /usr/lib/X11/xorg.conf.d/50-wacom.conf

Le wacom.comf devrait ressembler à ceci:

Section "InputClass"
	Identifier "Wacom class"
# WALTOP needs a patched kernel driver, that isn't in mainline lk yet,
# so for now just let it fall through and be picked up by evdev instead.
#	MatchProduct "Wacom|WALTOP|WACOM"
	MatchProduct "Wacom|WACOM"
	MatchDevicePath "/dev/input/event*"
	Driver "wacom"
EndSection

Section "InputClass"
	Identifier "Wacom serial class"
	MatchProduct "Serial Wacom Tablet"
	Driver "wacom"
	Option "ForceDevice" "ISDV4"
EndSection

Section "InputClass"
        Identifier "Wacom serial class identifiers"
        MatchProduct "WACf|FUJ02e5|FUJ02e7"
        Driver "wacom"
EndSection


# N-Trig Duosense Electromagnetic Digitizer
Section "InputClass"
	Identifier "Wacom N-Trig class"
	MatchProduct "HID 1b96:0001|N-Trig Pen"
	MatchDevicePath "/dev/input/event*"
	Driver "wacom"
	Option "Button2" "3"
EndSection

editer la premiere section "wacom class":

Section "InputClass"
	Identifier "Wacom class"
	MatchProduct "Wacom|WACOM"
	MatchDevicePath "/dev/input/event*"
	Driver "wacom"
        #Option "Button2" "2"
        #Option "Button3" "3"
        Option "KeepShape" "on"

EndSection

il faut rajouter les 3 dernières lignes:

#Option "Button2" "2"
#Option "Button3" "3"
Option "KeepShape" "on"

On peut aussi rajouter ce code tout en bas du fichier

Section "InputClass"
      Identifier "Wacom eraser class"
      MatchProduct "Wacom"
      MatchProduct "eraser"
      Option "Foo" "bar"
EndSection

Ce code est là pour eviter toutes confusions entre Wacom et eraser, "personnellement nous ne l'avons pas fait car il n'y a pas de confusions.

Configurons dès à présent Xorg.conf:

Tout d'abord sauvegardons le xorg.conf pour éviter toutes erreurs:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

Si jamais le xorg.conf ne fonctionne plus au redémarrage il faudra le restaurer avec cette commande:

sudo cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf

Bon pour editer Xorg.conf:

gksudo gedit /etc/X11/xorg.conf

à la fin du xorg.conf après Endsection

Coller le code suivant:

Section "InputDevice"
	Identifier "stylus"
	Driver		"wacom"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"USB"		"on"
	Option		"Button2"	"2"  # make first button a middle click
	Option		"Button3"	"3"  # make second button a R click
# remove comment below if investigating this device
#        Option		"DebugLevel"	"12" # gives info. for Xorg.0.log
EndSection

Section "InputDevice"
	Identifier	"eraser"
	Driver		"wacom"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
	Option		"USB"		"on"
# remove comment below if investigating this device
#        Option		"DebugLevel"	"12" # gives info. for Xorg.0.log
EndSection

Section "InputDevice"
	Identifier	"touch"
	Driver		"wacom"
	Option		"Device"	"/dev/input/wacom-touch"
	Option		"Type"		"touch"
	Option		"USB"		"on"
# remove comment below if investigating this device
#        Option		"DebugLevel"	"12" # gives info. for Xorg.0.log
EndSection

Section "InputDevice"
	Identifier	"pad"
	Driver		"wacom"
	Option		"Device"	"/dev/input/wacom-touch"
	Option		"Type"		"pad"
	Option		"USB"		"on"
# remove comment below if investigating this device
#        Option		"DebugLevel"	"12" # gives info. for Xorg.0.log
EndSection

Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
EndSection

Section "ServerLayout"
#	Identifier	"Default Layout"
#	Screen		"Default Screen"
	Identifier	"X.org Configured"
# Comment out unsupported devices
	InputDevice	"stylus"	"SendCoreEvents"
	InputDevice	"eraser"	"SendCoreEvents"
	Inputdevice	"touch"		"SendCoreEvents"
	InputDevice	"pad"
EndSection

Enregistrer le Xorg.conf et Redémarrer le PC

à présent le stylet et le toucher doit fonctionner.

Maintenant editons le xserver:

gksudo gedit /lib/udev/rules.d/69-xserver-xorg-input-wacom.rules

a cet emplacement ci-dessous:

ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c5", SYMLINK+="input/tablet-cintiq20wsx"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c6", SYMLINK+="input/tablet-cintiq12wx"
ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00c7", SYMLINK+="input/tablet-dtu1931"
<----- **Coller le code ici**----->

# Convenience links for the common case of a single tablet.  We could do just this:
#ATTRS{idVendor}=="056a", SYMLINK+="input/wacom-$env{WACOM_TYPE}"
# but for legacy reasons, we keep the input/wacom link as the generic stylus device.

ce code:

ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00d1", SYMLINK="input/tablet-wacom-bamboo-pen_touch-$env{WACOM_TYPE}"

Enregistrer.

Créons un fichier ou l'on pourra insérer des ajustements afin d'afiner la réaction de la tablette:

sudo gedit /home/-votre nom d'utilisateur-/.xsetwacom.sh

le nom d'utilisateur doit être modifié par celui correspondant à votre session.

ensuite coller dans le fichier:

## stylus
xsetwacom set stylus Suppress "2"  # data trimmed, 0-100
xsetwacom set stylus RawSample "20"  #default is 4
xsetwacom set stylus ClickForce "6"  # default is 4
#xsetwacom set stylus Threshold "27"  # default is 0-2047
xsetwacom set stylus PressCurve "5 10 90 95"
xsetwacom set stylus TPCButton "on"
xsetwacom set stylus Mode "Absolute"  # or Relative
xsetwacom set stylus Button1 "1"  # left mouse click
xsetwacom set stylus Button2 "3"  # right mouse click
xsetwacom set stylus Button3 "2"  # middle mouse click
# pour le 4 lignes ci-dessous voir "wacon" dans /var/log/Xorg.0.log
xsetwacom set stylus topx "0"
xsetwacom set stylus topy "0"
xsetwacom set stylus bottomx "14720"
xsetwacom set stylus bottomy "9200"
xsetwacom set stylus rotate HALF

## eraser
xsetwacom set eraser Suppress "2"  # data trimmed, 0-100
xsetwacom set eraser RawSample "20"  #default is 4
xsetwacom set eraser ClickForce "6"  # default is 4
#xsetwacom set stylus Threshold "27"  # default is 0-2047
xsetwacom set eraser PressCurve "0 10 90 100"
xsetwacom set eraser Mode "Absolute"  # or Relative
xsetwacom set eraser Button1 "1"
xsetwacom set eraser rotate HALF

## touch
xsetwacom set touch Touch "on"
xsetwacom set touch Gesture "on"
# pour le 4 lignes ci-dessous voir "wacon" dans /var/log/Xorg.0.log
xsetwacom set touch topx "0"
xsetwacom set touch topy "0"
xsetwacom set touch bottomx "480"
xsetwacom set touch bottomy "320"
xsetwacom set touch rotate HALF

# 1FG dbl. tap is left click, 2FG dbl. tap is right click
xsetwacom set touch ZoomDistance "50"  # default is 50
xsetwacom set touch ScrollDistance "20"  # default is 20
xsetwacom set touch TapTime "250"  # 2FG R click, default is 250 ms

## pad
xsetwacom set pad Button1 "key ctrl t"  # toggle touch script
xsetwacom set pad Button2 "key backspace"
xsetwacom set pad Button3 "3"  # right mouse click
xsetwacom set pad Button4 "key alt left"  # Back a page in FireFox

enregistrer le document.

nous changeons les droits dans le terminal:

sudo chmod +x /home/-votre nom d'utilisateur-/.xsetwacom.sh

maintenant il faut que .xsetwacom.sh démarrer automatiquement: aller dans: Système»»Préférences»»Application au démarrage»»»Ajouter nom mettez: wacom la commande mettez:

sh /home/-votre nom d'utilisateur-/.xsetwacom.sh

et confirmez.

Creation .toogle-touch "paramétrage des touches"

sudo gedit /home/-votre nom d'utilisateurs-/.toogle-touch.sh

collez:

#!/bin/bash

## Use with xorg.conf or in Jaunty &
## Karmic with the modified .fdi's.
##
## For touch state notification use:
##  sudo apt-get install libnotify-bin
## Otherwise comment (#) out the two
## notify-send lines.  If installed
## see 'man notify-send'.

TOUCH_STATE=`xsetwacom get touch Touch`
if [ "$TOUCH_STATE" == "on" ]
  then
    echo "Touch is ON, turning OFF."
    notify-send -t 1500 "Bamboo P&T touch OFF"
    xsetwacom set touch Touch off
  else
    echo "Touch is OFF, turning ON."
    notify-send -t 1500 "Bamboo P&T touch ON"
    xsetwacom set touch Touch on
fi

Enregistrez.

Changeons le chmod afin de le rendre invisible:

sudo chmod +x /home/-votre nom d'utilisateurs-/.toogle-touch.sh

Dans synaptic recherchez CompizConfig settings manager et installez le.

Ouvrir Compiz config dans »>systèmes»»préférences»»>gestionnaire de configuration compizconfig.

cliquez dans l'onglet général puis sur commande

dans command line 0 ou dans la ligne de commande que vous désirez:

/home/-votre nom d'utilisateurs-/.toogle-touch.sh

Allez toujours dans compiz »>assignation des touches»> cliquez sur désacivez en face de run command 0 cochez Activé

choisissez une commande qui n'existe pas du genre Ctrl+t code exact: <Control>t

Fermez compiz.

Après un redémarrage ultérieur on se rendras compte qu'en tapant Ctrl+t on peut changer le mode touch/stylet sans problème.

on installe ensuite

sudo apt-get install libnotify-bin

editez

sudo gedit /home/-votre nom d'utilisateurs/.xsetwacom.sh

les commandes sont: Rotation orientations: normal(paysage)=none; gauche=ccw; droite=cw; inversé=half.

les lignes de commandes a rajoutés sont:

xsetwacom set stylus rotate HALF 

xsetwacom set eraser rotate HALF

xsetwacom set touch rotate HALF

Si il y toujours des soucis au toucher ou avec les gestes

rajouter cette ligne de commande entre la prelière série USB et l'entrée en Serial de 10-wacom.conf:

sudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf

ce code:

<code> Section "InputClass"

Identifier "Wacom ignore mouse dev"
MatchProduct "Wacom|WACOM"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "yes"

EndSection

Mais nous ne l'avons pas fait car tout fonctionne

Merci a FAVUX sans qui celà n'aurait pas été possible. http://ubuntuforums.org/showthread.php?t=1515562

  • ma_page.1290263882.txt.gz
  • Dernière modification: Le 18/04/2011, 14:44
  • (modification externe)