个人工具

“UbuntuHelp:QuickAndDirtyWacomSolution”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第5行: 第5行:
 
Install the headers for the kernel you are using and symlink them to /usr/src/linux :
 
Install the headers for the kernel you are using and symlink them to /usr/src/linux :
 
<pre><nowiki>
 
<pre><nowiki>
$ sudo apt-get install linux-headers-`uname -r`
+
  $ sudo apt-get install linux-headers-`uname -r`
$ cd /usr/src
+
  $ cd /usr/src
$ sudo ln -s linux-headers-`uname -r` linux
+
  $ sudo ln -s linux-headers-`uname -r` linux
 
</nowiki></pre>
 
</nowiki></pre>
 
("uname -r" returns the version and architecture of your kernel)
 
("uname -r" returns the version and architecture of your kernel)
第13行: 第13行:
 
Untar, configure and compile it with this command:
 
Untar, configure and compile it with this command:
 
<pre><nowiki>
 
<pre><nowiki>
$ cd (download-foler)
+
  $ cd (download-foler)
$ tar -jxf linuxwacom-0.6.6.tar.bz2
+
  $ tar -jxf linuxwacom-0.6.6.tar.bz2
$ cd linuxwacom-0.6.6
+
  $ cd linuxwacom-0.6.6
$ ./configure --enable-mousedev
+
  $ ./configure --enable-mousedev
$ make
+
  $ make
 
</nowiki></pre>
 
</nowiki></pre>
 
where (download-foler) is the folder you saved linuxwacom-0.6.6.tar.bz2 in.
 
where (download-foler) is the folder you saved linuxwacom-0.6.6.tar.bz2 in.
 
Backup mousedev.ko and replace with the linuxwacom version:
 
Backup mousedev.ko and replace with the linuxwacom version:
 
<pre><nowiki>
 
<pre><nowiki>
$ cp /lib/modules/(your-kernel)/kernel/drivers/input/mousedev.ko (backup-folder)
+
  $ 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
+
  $ sudo cp src/(kernel-version)/mousedev.ko /lib/modules/(your-kernel)/kernel/drivers/input
 
</nowiki></pre>
 
</nowiki></pre>
 
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.
 
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 which one if you enter this command:
 
Find your tablet device. It is one of the "/dev/input/event" devices. You can find which one if you enter this command:
 
<pre><nowiki>
 
<pre><nowiki>
$ sudo cat /dev/inpunt/event(num)
+
  $ sudo cat /dev/inpunt/event(num)
 
</nowiki></pre>
 
</nowiki></pre>
 
and try doodling on the tablet. If you get screens full of garbage, it is your tablet. (In that case, remember the (num) you used. If not, move to the next (num). Press Ctrl-C after each testing attempt to get back to the command prompt. Use:
 
and try doodling on the tablet. If you get screens full of garbage, it is your tablet. (In that case, remember the (num) you used. If not, move to the next (num). Press Ctrl-C after each testing attempt to get back to the command prompt. Use:
 
<pre><nowiki>
 
<pre><nowiki>
$ reset
+
  $ reset
 
</nowiki></pre>
 
</nowiki></pre>
 
if your command prompt starts showing garbage instead of your typing.
 
if your command prompt starts showing garbage instead of your typing.
第45行: 第45行:
 
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:
 
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:
 
<pre><nowiki>
 
<pre><nowiki>
Option          "Device"                "/dev/input/mice"
+
Option          "Device"                "/dev/input/mice"
 
</nowiki></pre>
 
</nowiki></pre>
 
to
 
to
 
<pre><nowiki>
 
<pre><nowiki>
Option          "Device"                "/dev/input/mouse1"  
+
Option          "Device"                "/dev/input/mouse1"  
 
</nowiki></pre>
 
</nowiki></pre>
 
or perhaps mouse0 or mouse2 in your case.  
 
or perhaps mouse0 or mouse2 in your case.  
第55行: 第55行:
 
You can check which mouse? or event? to use by opening a root terminal and typing:
 
You can check which mouse? or event? to use by opening a root terminal and typing:
 
<pre><nowiki>
 
<pre><nowiki>
sudo xxd /dev/input/mouse0  
+
sudo xxd /dev/input/mouse0  
 
</nowiki></pre>
 
</nowiki></pre>
 
(or mouse1 or event0 etc)
 
(or mouse1 or event0 etc)

2007年12月6日 (四) 10:51的版本

Note : for up-to-date information under Ubuntu 6.06 Dapper Drake, please use https://wiki.ubuntu.com/Wacom instead. After a few unproductive attempts 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 which one if you enter this command:

  $ sudo cat /dev/inpunt/event(num)

and try doodling on the tablet. If you get screens full of garbage, it is your tablet. (In that case, remember the (num) you used. If not, move to the next (num). Press Ctrl-C after each testing attempt to get back to the command prompt. Use:

  $ reset

if your command prompt 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.