个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/WacomTroubleshooting}}
 
{{From|https://help.ubuntu.com/community/WacomTroubleshooting}}
 
{{Languages|UbuntuHelp:WacomTroubleshooting}}
 
{{Languages|UbuntuHelp:WacomTroubleshooting}}
{|border="1" cellspacing="0"
+
#title Example Lines for /etc/X11/xorg.conf for Wacom tablets
| '''This content is quite old and may not be applicable to current versions of Ubuntu.''' (please remove this note if the page is updated)
+
== Example Lines for /etc/X11/xorg.conf ==
|}
+
This section is intended as a complement to https://help.ubuntu.com/community/Wacom, in order to help users configure Wacom tablets in /etc/X11/xorg.conf when needed. Please note that in Ubuntu 8.04 and newer, xorg.conf is less and less used in favour of other methods, and editing xorg.conf manually is a risky business (you can easily hose X). Having an example xorg.conf from an older release of Ubuntu on your hardware can be a great help.
'''''This section is intended to collect useful advices and solutions for configuring Wacom Tablets under Ubuntu 6.06 Dapper Drake when the method recommended in https://wiki.ubuntu.com/Wacom doesn't work.'''''
+
''For an LTSP client, update the /usr/bin/dexconf script instead, this is run at boot time to generate a new xorg.conf configuration file, and so any changes made to xorg.conf are lost on reboot.''
=== Editing /etc/X11/xorg.conf ===
+
=== In Ubuntu 8.10 (Intrepid Ibex) ===
* Here is an extract of Dapper Drake default xorg.conf relating to Wacom USB tablets, that you can use if these lines weren't automatically added :<pre><nowiki>
+
'''The following lines are for Ubuntu 8.10 (Intrepid Ibex), but should also work in Ubuntu 8.04 (Hardy Heron).'''
 +
Note that:
 +
* you will have to [[UbuntuHelp:[serial|modify some lines]]] if you are using a serial Wacom tablet (most Tablet PC are serial tablets) instead of an USB one;
 +
* LCD tablets like Cintiq don't have the "cursor" type, so just remove the relevant section and the corresponding line in the <code><nowiki>Section "ServerLayout"</nowiki></code>;
 +
* if you want to make sure your tablet isn't picked up by HAL when you unplug it and plug it again, you can also take [[UbuntuHelp:[fdi|this step]]].
 +
==== The InputDevice Sections ====
 +
Add these sections or uncomment them (removing the # at the beginning of the lines) if they are already present.<pre><nowiki>
 +
Section "InputDevice"
 +
  Driver        "wacom"
 +
  Identifier    "stylus"
 +
  Option        "Device"        "/dev/input/wacom" # USB ONLY?
 +
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
 +
  Option        "Type"          "stylus"
 +
#  Option        "ForceDevice"  "ISDV4"          # Tablet PC ONLY
 +
  Option        "USB"          "on"              # USB ONLY
 +
EndSection
 +
 
 +
Section "InputDevice"
 +
  Driver        "wacom"
 +
  Identifier    "eraser"
 +
  Option        "Device"        "/dev/input/wacom" # USB ONLY?
 +
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
 +
  Option        "Type"          "eraser"
 +
#  Option        "ForceDevice"  "ISDV4"          # Tablet PC ONLY
 +
  Option        "USB"          "on"              # USB ONLY
 +
EndSection
 +
 
 +
Section "InputDevice"
 +
  Driver        "wacom"
 +
  Identifier    "cursor"
 +
  Option        "Device"        "/dev/input/wacom" # USB ONLY?
 +
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
 +
  Option        "Type"          "cursor"
 +
#  Option        "ForceDevice"  "ISDV4"          # Tablet PC ONLY
 +
  Option        "USB"          "on"              # USB ONLY
 +
EndSection
 +
 
 +
Section "InputDevice"
 +
  Driver        "wacom"
 +
  Identifier    "pad"
 +
  Option        "Device"        "/dev/input/wacom"    # USB ONLY
 +
#  Option        "Device"        "/dev/ttyS0"        # SERIAL ONLY
 +
  Option        "Type"          "pad"
 +
  Option        "USB"          "on"                  # USB ONLY
 +
EndSection
 +
 
 +
# Uncomment the following section if you you have a TabletPC that supports touch
 +
# Section "InputDevice"
 +
#  Driver        "wacom"
 +
#  Identifier    "touch"
 +
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
 +
#  Option        "Device"        "/dev/input/wacom" # USB ONLY
 +
#  Option        "Type"          "touch"
 +
#  Option        "ForceDevice"  "ISDV4"            # Serial Tablet PC ONLY
 +
#  Option        "USB"          "on"              # USB ONLY
 +
# EndSection</nowiki></pre>
 +
==== The ServerLayout Section ====
 +
The lines for the sections <code><nowiki>"IntputDevice"</nowiki></code> you enabled need to be added in the section <code><nowiki>"ServerLayout"</nowiki></code><pre><nowiki>
 +
  InputDevice  "stylus"  "SendCoreEvents"
 +
  InputDevice  "eraser"  "SendCoreEvents"
 +
  InputDevice  "cursor"  "SendCoreEvents" # For non-LCD tablets only
 +
  InputDevice  "pad"                      # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
 +
# InputDevice  "touch"  "SendCoreEvents" # Only a few TabletPCs support this type</nowiki></pre>
 +
If the section is not present then you need to create it. However, be warned that adding this section may well make your system unbootable. If you successfully configured your tablet in Hardy and have access to the old xorg.conf file, you may wish to try copying it over to Ibex to avoid other potential problems.
 +
Create the section as follows:<pre><nowiki>
 +
Section "ServerLayout"
 +
  Identifier "Default Layout"
 +
  Screen "Default Screen"
 +
  InputDevice  "stylus"  "SendCoreEvents"
 +
  InputDevice  "eraser"  "SendCoreEvents"
 +
  InputDevice  "cursor"  "SendCoreEvents" # For non-LCD tablets only
 +
  InputDevice  "pad"                      # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
 +
# InputDevice  "touch"  "SendCoreEvents" # Only a few TabletPCs support this type
 +
EndSection</nowiki></pre>
 +
If you experience difficulties after creating this section, consult your /var/log/Xorg.0.log file for details of errors during the last running of X.
 +
<<Anchor(serial)>>
 +
==== Serial Tablet and Tablet PC Users ====
 +
If you are configuring a serial tablet, you have to comment the lines that are marked <code><nowiki># USB ONLY</nowiki></code> and uncomment the lines marked <code><nowiki># SERIAL ONLY</nowiki></code> by respectively adding or removing a <code><nowiki>#</nowiki></code> at the beginning of the lines.
 +
'''If you are configuring a Tablet PC, make sure to also remove the <code><nowiki>#</nowiki></code> at the beginning of the line'''<pre><nowiki>
 +
# Option  "ForceDevice"  "ISDV4"  # Tablet PC ONLY</nowiki></pre>
 +
So for a Tablet PC this line will look like this (leave the # before "Tablet PC ONLY")<pre><nowiki>
 +
Option  "ForceDevice"  "ISDV4"  # Tablet PC ONLY</nowiki></pre>
 +
You also have to uncomment the line <code><nowiki>#  InputDevice  "touch"  "SendCoreEvents"</nowiki></code> if your Tablet PC supports touch input (make sure you also uncommented the "touch" section in <code><nowiki>Section "InputDevice"</nowiki></code>.
 +
=== In Ubuntu Versions Before Ubuntu 8.04 (Hardy Heron) ===
 +
On versions of Ubuntu released before Ubuntu 8.04, the <code><nowiki>InputDevice</nowiki></code> sections should be the same, and the same notes apply to [[UbuntuHelp:[serial|serial tablet and Tablet PC users]]]. However, the <code><nowiki>ServerLayout</nowiki></code> section should be similar to this (remove or add the lines in accordance to the sections <code><nowiki>"InputDevice"</nowiki></code> you created):<pre><nowiki>
 +
Section "ServerLayout"
 +
  Identifier "Default Layout"
 +
  Screen "Default Screen"
 +
  InputDevice "Generic Keyboard"
 +
  InputDevice "Configured Mouse"
 +
  InputDevice  "stylus"  "SendCoreEvents"
 +
  InputDevice  "eraser"  "SendCoreEvents"
 +
  InputDevice  "cursor"  "SendCoreEvents" # For non-LCD tablets only
 +
  InputDevice  "pad"                      # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
 +
# InputDevice  "touch"    "SendCoreEvents" # Only a few TabletPCs support this type
 +
EndSection</nowiki></pre>
 +
== Tips ==
 +
=== Disabling Input Hotplug Through HAL for Your Wacom Tablet ===
 +
<<Anchor(fdi)>>
 +
If you want to make sure your tablet isn't picked up by HAL when you unplug it and replug it, just remove the file /usr/share/hal/fdi/policy/20thirdparty/10-wacom.fdi . In a terminal, type:<pre><nowiki>
 +
sudo rm /usr/share/hal/fdi/policy/20thirdparty/10-wacom.fdi</nowiki></pre>
 +
To restore the file, remove the package <code><nowiki>xserver-xorg-input-wacom</nowiki></code> then reinstall it.
 +
=== Disabling Input Hotplug Through HAL for All Devices In Ubuntu 8.10 ===
 +
On Ubuntu 8.10 (and possibly following releases), if you want to disable input hotplug through HAL for all devices,  you need to create this section :<pre><nowiki>
 +
Section "ServerFlags"
 +
Option "AutoAddDevices" "False"
 +
EndSection</nowiki></pre>
 +
If you have already modified your xorg.conf and this section is present, check if the line<pre><nowiki>
 +
Option "AutoAddDevices" "False"</nowiki></pre>
 +
is present, else just add it inside the section.
 +
'''It is in no way necessary to add this option if you want to configure your tablet with the xorg.conf method (Option B in [[UbuntuHelp:Wacom|the|guide]]).'''
 +
== History ==
 +
''Here is an extract of Dapper Drake default xorg.conf relating to Wacom USB tablets (kept for reference if you're using this version of Ubuntu) along with instruction to modify it :''<pre><nowiki>
 
Section "InputDevice"
 
Section "InputDevice"
 
   Driver        "wacom"
 
   Driver        "wacom"
第67行: 第179行:
 
   Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
 
   Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
 
EndSection</nowiki></pre>
 
EndSection</nowiki></pre>
* This lines are added in the section "ServerLayout"<pre><nowiki>
+
These lines are added in the section "ServerLayout"<pre><nowiki>
 
InputDevice    "stylus" "SendCoreEvents"
 
InputDevice    "stylus" "SendCoreEvents"
 
InputDevice    "cursor" "SendCoreEvents"
 
InputDevice    "cursor" "SendCoreEvents"
第82行: 第194行:
 
EndSection</nowiki></pre>
 
EndSection</nowiki></pre>
 
----
 
----
[[category:CategoryDocumentation]]
+
[[category:CategoryDocumentation]] [[category:CategoryWacom]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年12月16日 (二) 20:39的版本

  1. title Example Lines for /etc/X11/xorg.conf for Wacom tablets

Example Lines for /etc/X11/xorg.conf

This section is intended as a complement to https://help.ubuntu.com/community/Wacom, in order to help users configure Wacom tablets in /etc/X11/xorg.conf when needed. Please note that in Ubuntu 8.04 and newer, xorg.conf is less and less used in favour of other methods, and editing xorg.conf manually is a risky business (you can easily hose X). Having an example xorg.conf from an older release of Ubuntu on your hardware can be a great help. For an LTSP client, update the /usr/bin/dexconf script instead, this is run at boot time to generate a new xorg.conf configuration file, and so any changes made to xorg.conf are lost on reboot.

In Ubuntu 8.10 (Intrepid Ibex)

The following lines are for Ubuntu 8.10 (Intrepid Ibex), but should also work in Ubuntu 8.04 (Hardy Heron). Note that:

  • you will have to [[UbuntuHelp:[serial|modify some lines]]] if you are using a serial Wacom tablet (most Tablet PC are serial tablets) instead of an USB one;
  • LCD tablets like Cintiq don't have the "cursor" type, so just remove the relevant section and the corresponding line in the Section "ServerLayout";
  • if you want to make sure your tablet isn't picked up by HAL when you unplug it and plug it again, you can also take [[UbuntuHelp:[fdi|this step]]].

The InputDevice Sections

Add these sections or uncomment them (removing the # at the beginning of the lines) if they are already present.
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/input/wacom" # USB ONLY?
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
  Option        "Type"          "stylus"
#  Option        "ForceDevice"   "ISDV4"           # Tablet PC ONLY
  Option        "USB"           "on"               # USB ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/input/wacom" # USB ONLY?
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
  Option        "Type"          "eraser"
#  Option        "ForceDevice"   "ISDV4"           # Tablet PC ONLY
  Option        "USB"           "on"               # USB ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/input/wacom" # USB ONLY?
#  Option        "Device"        "/dev/ttyS0"      # SERIAL ONLY
  Option        "Type"          "cursor"
#  Option        "ForceDevice"   "ISDV4"           # Tablet PC ONLY
  Option        "USB"           "on"               # USB ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "pad"
  Option        "Device"        "/dev/input/wacom"    # USB ONLY
#  Option        "Device"        "/dev/ttyS0"         # SERIAL ONLY
  Option        "Type"          "pad"
  Option        "USB"           "on"                  # USB ONLY
EndSection

# Uncomment the following section if you you have a TabletPC that supports touch
# Section "InputDevice"
#  Driver        "wacom"
#  Identifier    "touch"
#  Option        "Device"        "/dev/ttyS0"       # SERIAL ONLY
#  Option        "Device"        "/dev/input/wacom" # USB ONLY
#  Option        "Type"          "touch"
#  Option        "ForceDevice"   "ISDV4"            # Serial Tablet PC ONLY
#  Option        "USB"           "on"               # USB ONLY
# EndSection

The ServerLayout Section

The lines for the sections "IntputDevice" you enabled need to be added in the section "ServerLayout"
  InputDevice   "stylus"  "SendCoreEvents"
  InputDevice   "eraser"  "SendCoreEvents"
  InputDevice   "cursor"  "SendCoreEvents" # For non-LCD tablets only
  InputDevice   "pad"                      # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
# InputDevice   "touch"   "SendCoreEvents" # Only a few TabletPCs support this type

If the section is not present then you need to create it. However, be warned that adding this section may well make your system unbootable. If you successfully configured your tablet in Hardy and have access to the old xorg.conf file, you may wish to try copying it over to Ibex to avoid other potential problems.

Create the section as follows:
Section "ServerLayout"
  Identifier	"Default Layout"
  Screen	"Default Screen"
  InputDevice   "stylus"  "SendCoreEvents"
  InputDevice   "eraser"  "SendCoreEvents"
  InputDevice   "cursor"  "SendCoreEvents" # For non-LCD tablets only
  InputDevice   "pad"                      # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
# InputDevice   "touch"   "SendCoreEvents" # Only a few TabletPCs support this type
EndSection

If you experience difficulties after creating this section, consult your /var/log/Xorg.0.log file for details of errors during the last running of X. <<Anchor(serial)>>

Serial Tablet and Tablet PC Users

If you are configuring a serial tablet, you have to comment the lines that are marked # USB ONLY and uncomment the lines marked # SERIAL ONLY by respectively adding or removing a # at the beginning of the lines.

If you are configuring a Tablet PC, make sure to also remove the # at the beginning of the line
# Option   "ForceDevice"  "ISDV4"  # Tablet PC ONLY
So for a Tablet PC this line will look like this (leave the # before "Tablet PC ONLY")
 Option   "ForceDevice"  "ISDV4"  # Tablet PC ONLY

You also have to uncomment the line # InputDevice "touch" "SendCoreEvents" if your Tablet PC supports touch input (make sure you also uncommented the "touch" section in Section "InputDevice".

In Ubuntu Versions Before Ubuntu 8.04 (Hardy Heron)

On versions of Ubuntu released before Ubuntu 8.04, the InputDevice sections should be the same, and the same notes apply to [[UbuntuHelp:[serial|serial tablet and Tablet PC users]]]. However, the ServerLayout section should be similar to this (remove or add the lines in accordance to the sections "InputDevice" you created):
Section "ServerLayout" 
  Identifier	"Default Layout"
  Screen	"Default Screen"
  InputDevice	"Generic Keyboard"
  InputDevice	"Configured Mouse"
  InputDevice   "stylus"   "SendCoreEvents"
  InputDevice   "eraser"   "SendCoreEvents"
  InputDevice   "cursor"   "SendCoreEvents" # For non-LCD tablets only
  InputDevice   "pad"                       # For Intuos3/CintiqV5/Graphire4/Bamboo tablets
# InputDevice   "touch"    "SendCoreEvents" # Only a few TabletPCs support this type
EndSection

Tips

Disabling Input Hotplug Through HAL for Your Wacom Tablet

<<Anchor(fdi)>>

If you want to make sure your tablet isn't picked up by HAL when you unplug it and replug it, just remove the file /usr/share/hal/fdi/policy/20thirdparty/10-wacom.fdi . In a terminal, type:
sudo rm /usr/share/hal/fdi/policy/20thirdparty/10-wacom.fdi

To restore the file, remove the package xserver-xorg-input-wacom then reinstall it.

Disabling Input Hotplug Through HAL for All Devices In Ubuntu 8.10

On Ubuntu 8.10 (and possibly following releases), if you want to disable input hotplug through HAL for all devices, you need to create this section :
Section "ServerFlags"
	Option "AutoAddDevices"	"False"
EndSection
If you have already modified your xorg.conf and this section is present, check if the line
	Option "AutoAddDevices"	"False"

is present, else just add it inside the section. It is in no way necessary to add this option if you want to configure your tablet with the xorg.conf method (Option B in the|guide).

History

Here is an extract of Dapper Drake default xorg.conf relating to Wacom USB tablets (kept for reference if you're using this version of Ubuntu) along with instruction to modify it :
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

You should replace the 3 /dev/wacom occurences to point to /dev/input/wacom

Here is the above section of /etc/X11/xorg.conf after modification :
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/input/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/input/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/input/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection
These lines are added in the section "ServerLayout"
	InputDevice     "stylus" "SendCoreEvents"
	InputDevice     "cursor" "SendCoreEvents"
	InputDevice     "eraser" "SendCoreEvents"
If they are not present, you can paste them into the section, which will look like this :
Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice     "stylus" "SendCoreEvents"
	InputDevice     "cursor" "SendCoreEvents"
	InputDevice     "eraser" "SendCoreEvents"
EndSection