Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
ma_page [Le 20/11/2010, 15:38] – oxygenma_page [Le 15/07/2011, 11:40] (Version actuelle) – ancienne révision restaurée 0ol
Ligne 1: Ligne 1:
-====== Installation Bamboo Pen&Touch CTH-460 sur Lucid ou Maverick ======+======Ma page ======
  
-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 +Vous êtes parvenu ici depuis la page [[:wiki:participer_wiki#comment_creer_une_page_dans_la_documentation|Comment participer et améliorer cette documentation ?]]
-Commençons par ouvrir le Terminal Dans /Applications/accessoires +
-tapez dans un [[:terminal]] : <code>lsusb</code> +
  
-vous devriez avoir une ligne comme celle-ci:+**Vous ne devez pas créer votre page ici !**
  
-<code>Bus XXX Device XXX: ID 056a:00d1 Wacom Co., Ltd</code> +Tel qu'il est indiqué dans le lien précédent, **allez à l'adresse que vous souhaiteriez pour votre future page**. Dans la barre d'adresse de votre navigateur, tapez l'adresse désirée, en fonction du type de page que vous voulez créer. Pour plus d'informations, suivez les instructions de la rubrique **[[:wiki:participer_wiki#Les modèles à suivre]]**.
- +
-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** +
- +
-<code>sudo apt-get install xserver-xorg-input-wacom</code> +
- +
-Installons la dernière veersion de linuxwacom's 0.8.8-10 wacom.ko +
- +
-<code> +
-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 +
-</code> +
- +
-**Redémarrer le PC** +
- +
-taper: +
-<code>lsmod | grep wacom</code> +
- +
-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: +
- +
-<code>sudo apt-get install git-core</code> +
- +
-ensuite +
- +
-<code> +
-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 +
-</code> +
- +
-**Redémarrer le PC** +
- +
-à ce stade la tablette ne fonctionne pas encore correctement. +
- +
-**Configurons la tablette à présent** +
- +
-Sous **Lucid** +
-<code>gksudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf</code> +
-Sous **Maverick** +
-<code>gksudo gedit /usr/lib/X11/xorg.conf.d/50-wacom.conf</code> +
- +
-Le wacom.comf devrait ressembler à ceci: +
-<code> +
-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 +
-</code> +
- +
-editer la premiere section "wacom class": +
-<code>Section "InputClass" +
- Identifier "Wacom class" +
- MatchProduct "Wacom|WACOM" +
- MatchDevicePath "/dev/input/event*" +
- Driver "wacom" +
-        #Option "Button2" "2" +
-        #Option "Button3" "3" +
-        Option "KeepShape" "on" +
- +
-EndSection +
-</code> +
- +
-il faut rajouter les 3 dernières lignes: +
-<code> +
-#Option "Button2" "2" +
-#Option "Button3" "3" +
-Option "KeepShape" "on" +
-</code> +
-         +
-On peut aussi rajouter ce code tout en bas du fichier +
-<code> +
-Section "InputClass" +
-      Identifier "Wacom eraser class" +
-      MatchProduct "Wacom" +
-      MatchProduct "eraser" +
-      Option "Foo" "bar" +
-EndSection +
-</code> +
- +
-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: +
-<code>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak</code> +
- +
-Si jamais le xorg.conf ne fonctionne plus au redémarrage il faudra le restaurer avec cette commande: +
-<code>sudo cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf</code> +
- +
-Bon pour editer Xorg.conf: +
-<code>gksudo gedit /etc/X11/xorg.conf</code> +
- +
-à la fin du xorg.conf après **Endsection** +
- +
-Coller le code suivant: +
- +
-<code> +
-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 +
-</code> +
- +
-Enregistrer le Xorg.conf et **Redémarrer le PC** +
- +
-à présent le stylet et le toucher doit fonctionner. +
- +
-Maintenant editons le xserver: +
-<code>gksudo gedit /lib/udev/rules.d/69-xserver-xorg-input-wacom.rules</code> +
- +
-a cet emplacement ci-dessous: +
-<code> +
-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. +
-</code> +
- +
-ce code: +
-<code>ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00d1", SYMLINK="input/tablet-wacom-bamboo-pen_touch-$env{WACOM_TYPE}"</code> +
- +
-Enregistrer. +
- +
-Créons un fichier ou l'on pourra insérer des ajustements afin d'afiner la réaction de la tablette: +
- +
-<code>sudo gedit /home/-votre nom d'utilisateur-/.xsetwacom.sh</code> +
-le nom d'utilisateur doit être modifié par celui correspondant à votre session. +
- +
-ensuite coller dans le fichier: +
-<code> +
-## 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 +
-</code> +
- +
-enregistrer le document. +
- +
-nous changeons les droits dans le terminal: +
- +
-<code>sudo chmod +x /home/-votre nom d'utilisateur-/.xsetwacom.sh</code>  +
- +
-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: +
-<code>sh /home/-votre nom d'utilisateur-/.xsetwacom.sh</code> +
-et confirmez. +
- +
-Creation .toogle-touch "paramétrage des touches" +
-<code>sudo gedit /home/-votre nom d'utilisateurs-/.toogle-touch.sh</code> +
-collez: +
-<code> +
-#!/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 +
-</code> +
-Enregistrez. +
- +
-Changeons le chmod afin de le rendre invisible: +
- +
-<code>sudo chmod +x /home/-votre nom d'utilisateurs-/.toogle-touch.sh</code> +
- +
-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:  +
-<code>/home/-votre nom d'utilisateurs-/.toogle-touch.sh</code> +
- +
-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 +
- +
-<code>sudo apt-get install libnotify-bin</code> +
- +
-===== Pour modifier la tablette gaucher ou droitier ===== +
- +
-editez <code>sudo gedit /home/-votre nom d'utilisateurs/.xsetwacom.sh</code> +
- +
-les commandes sont: Rotation orientations: normal(paysage)=none; gauche=ccw; droite=cw; inversé=half. +
- +
-les lignes de commandes a rajoutés sont: +
-<code> +
-xsetwacom set stylus rotate HALF  +
- +
-xsetwacom set eraser rotate HALF +
- +
-xsetwacom set touch rotate HALF +
-</code> +
- +
-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: +
- +
-<code>sudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf</code> +
- +
-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]]+