UbuntuHelp:QuickAndDirtyWacomSolution
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
Note : for up-to-date information under Ubuntu 6.06 Dapper Drake, please use https://wiki.ubuntu.com/Wacom instead.
After a few unproductive attemts to get my tablet to work as described in WacomTabletIssue and reading quite a lot of linuxwacom documentation I managed to get my Volito to work without recompiling the kernel as described below.
Install the headers for the kernel you are using and symlink them to /usr/src/linux :
$ sudo apt-get install linux-headers-`uname -r` $ cd /usr/src $ sudo ln -s linux-headers-`uname -r` linux
("uname -r" returns the version and architecture of your kernel)
Download linuxwacom-0.6.6.tar.gz from the Linux Wacom Project.
Untar, configure and compile it with this command:
$ cd (download-foler) $ tar -jxf linuxwacom-0.6.6.tar.bz2 $ cd linuxwacom-0.6.6 $ ./configure --enable-mousedev $ make
where (download-foler) is the folder you saved linuxwacom-0.6.6.tar.bz2 in.
Backup mousedev.ko and replace with the linuxwacom version:
$ cp /lib/modules/(your-kernel)/kernel/drivers/input/mousedev.ko (backup-folder) $ sudo cp src/(kernel-version)/mousedev.ko /lib/modules/(your-kernel)/kernel/drivers/input
where (your-kernel) is the version and architecture of your kernel image, (kernel-version) is the kernel version and (backup-folder) is a place you can find mousedev.ko in case of an emergency.
Find your tablet device, it is one of the "/dev/input/event" devices, you can find wich one if you enter this command:
$ sudo cat /dev/inpunt/event(num)
and doodling on the tablet. If you get screenfull's of garbage it is your tablet (remember the (num) you used, if not move to the next (num). Press Ctrl-C after each testing attemt to get back to the command prompt and use:
$ reset
if your command promt starts showing garbage instead of your typing. (Can someone describe a better way to find the right device?)
Edit /etc/X11/XF86Config-4 as described in the Linux Wacom Project HOWTO here and here, remember to replace "/dev/input/event0" with the one you found in the last step.
Restart your computer.
From WoutervanWijk Wed Mar 30 13:04:25 +0100 2005 From: Wouter van Wijk Date: Wed, 30 Mar 2005 13:04:25 +0100 Subject: usb mouse Message-ID: <[email protected]>
With an USB Tablet and an USB mouse, you might have to change the mouse settings in the XF86Config-4 or xorg.conf too. Change this entry in the mouse-section:
Option "Device" "/dev/input/mice"
to
Option "Device" "/dev/input/mouse1"
or perhaps mouse0 or mouse2 in your case. I also had to change the /dev/input/event0 for the Wacom tablet to /dev/input/event2, but I didn't have to recompile the kernel. Pfew... You can check which mouse? or event? to use by opening a root terminal and typing:
sudo xxd /dev/input/mouse0
(or mouse1 or event0 etc) and after that moving your mouse or pen. If various caracters appear in the terminal as you move, you have the right one.