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 16/11/2010, 11:09] oxygenma_page [Le 15/07/2011, 11:40] (Version actuelle) – ancienne révision restaurée 0ol
Ligne 1: Ligne 1:
-====== Installation Bamboo Pen&Touch 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 +
-Commençons par ouvrir le Terminal Dans /Applications/accessoires +
-tapez dans un [[:terminal]] : <code>lsusb</code>  +
- +
-vous devriez avoir une ligne comme celle-ci: +
- +
-<code>Bus XXX Device XXX: ID 056a:00d1 Wacom Co., Ltd</code> +
- +
-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> +
- +
-En Bas du wacom.conf on rajoute: +
-<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. +
- +
-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 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 +
- +
-## 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 eraser PressCurve "0 10 90 100" +
-xsetwacom set eraser Mode "Absolute"  # or Relative +
-xsetwacom set eraser Button1 "1" +
- +
-## touch +
-xsetwacom set touch Touch "on" +
-xsetwacom set touch Gesture "on" +
-# 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> +
  
 +Vous êtes parvenu ici depuis la page [[:wiki:participer_wiki#comment_creer_une_page_dans_la_documentation|Comment participer et améliorer cette documentation ?]]
  
 +**Vous ne devez pas créer votre page ici !**
  
 +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]]**.