个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/QuickAndDirtyWacomSolution}} {{Languages|UbuntuHelp:QuickAndDirtyWacomSolution}} '''''Note : for up-to-date information under Ubuntu 6.06 Dapper D...)
 
 
(未显示2个用户的4个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:QuickAndDirtyWacomSolution}}
 
{{Languages|UbuntuHelp:QuickAndDirtyWacomSolution}}
 
'''''Note : for up-to-date information under Ubuntu 6.06 Dapper Drake, please use https://wiki.ubuntu.com/Wacom instead.'''''
 
'''''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 [[UbuntuHelp:WacomTabletIssue|WacomTabletIssue]] and reading quite a lot of linuxwacom documentation I managed to get my Volito to work without recompiling the kernel as described below.
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 :
 
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)
 
 
Download linuxwacom-0.6.6.tar.gz from the [http://linuxwacom.sourceforge.net/ Linux Wacom Project].
 
Download linuxwacom-0.6.6.tar.gz from the [http://linuxwacom.sourceforge.net/ Linux Wacom Project].
 
 
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 wich 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 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:
+
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 promt starts showing garbage instead of your typing.
+
if your command prompt starts showing garbage instead of your typing.
 
(Can someone describe a better way to find the right device?)
 
(Can someone describe a better way to find the right device?)
 
+
(user urindar here... a better way to find the device is:
Edit /etc/X11/XF86Config-4 as described in the Linux Wacom Project HOWTO [http://linuxwacom.sourceforge.net/index.php/howto/inputdev here] and [http://linuxwacom.sourceforge.net/index.php/howto/srvlayout here], remember to replace "/dev/input/event0" with the one you found in the last step.
+
depending on your kernel, one of these two will work
 
+
more /proc/bus/usb/devices
 +
more /proc/bus/input/devices
 +
it will give you a list of usb devices. probably at the bottom is your tablet, if it's been correctly detected.
 +
the info is something like this
 +
I: Bus=0003 Vendor=056a Product=0018 Version=0113
 +
N: Name="Wacom BambooFun 6x8"
 +
P: Phys=
 +
S: Sysfs=/class/input/input8
 +
U: Uniq=
 +
H: Handlers=mouse2 event7
 +
B: EV=1f
 +
B: KEY=1c63 0 70033 0 0 0 0 0 0 0 0
 +
B: REL=100
 +
B: ABS=100 3000103
 +
B: MSC=1
 +
and there you can see your event number
 +
)
 +
Edit /etc/X11/XF86Config-4 as described in the Linux Wacom Project HOWTO [http://linuxwacom.sourceforge.net/index.php/howto/inputdev here] and [http://linuxwacom.sourceforge.net/index.php/howto/srvlayout here]. Remember to replace "/dev/input/event0" with the one you found in the last step.
 
Restart your computer.
 
Restart your computer.
 
 
From WoutervanWijk Wed Mar 30 13:04:25 +0100 2005
 
From WoutervanWijk Wed Mar 30 13:04:25 +0100 2005
 
From: Wouter van Wijk
 
From: Wouter van Wijk
第53行: 第62行:
 
Subject: usb mouse
 
Subject: usb mouse
 
Message-ID: <[email protected]>
 
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:
 
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.  
 
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...
 
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:
 
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)
 
and after that moving your mouse or pen. If various caracters appear in the terminal as you move, you have the right one.
 
and after that moving your mouse or pen. If various caracters appear in the terminal as you move, you have the right one.
 
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年4月23日 (三) 11:54的最新版本

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?) (user urindar here... a better way to find the device is: depending on your kernel, one of these two will work more /proc/bus/usb/devices more /proc/bus/input/devices it will give you a list of usb devices. probably at the bottom is your tablet, if it's been correctly detected. the info is something like this I: Bus=0003 Vendor=056a Product=0018 Version=0113 N: Name="Wacom BambooFun 6x8" P: Phys= S: Sysfs=/class/input/input8 U: Uniq= H: Handlers=mouse2 event7 B: EV=1f B: KEY=1c63 0 70033 0 0 0 0 0 0 0 0 B: REL=100 B: ABS=100 3000103 B: MSC=1 and there you can see your event number ) 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.