Pastebin

Paste #391: "kildekode" til article

< previous paste - next paste>

Pasted by tdn

Download View as text

Hver eneste gang, jeg starter en grafisk applikation i KDE fra et terminal-vindue, får jeg denne fejl:

<pre>
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
</pre>

Det viser sig, at fejlen er relateret til et eller andet apparat som er på nogle tablet-pc'ere. Af en eller anden grund, er @/etc/X11/xorg.conf@ i Kubuntu som standard sat op så denne dims skal bruges, hvis den findes. Man får så fejlen, hvis den ikke findes.

En løsning på problemet er at udkommentere de linier i @/etc/X11/xorg.conf@ som nævner udstyr til tablet-pc'ere, hvis du ikke bruger en tablet-pc.

Ã…bn @/etc/X11/xorg.conf@ og find linierne:

<pre>
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
</pre>

og erstat dem med:

<pre>
#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
</pre>

Find derefter sektionen @ServerLayout@ og fjern dem derfra. 

<pre>
Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice     "stylus" "SendCoreEvents"
	InputDevice     "cursor" "SendCoreEvents"
	InputDevice     "eraser" "SendCoreEvents"
	InputDevice	"Synaptics Touchpad"
EndSection
</pre>

bliver til:

<pre>
Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	#InputDevice     "stylus" "SendCoreEvents"
	#InputDevice     "cursor" "SendCoreEvents"
	#InputDevice     "eraser" "SendCoreEvents"
	InputDevice	"Synaptics Touchpad"
EndSection
</pre>

Det gjorde i hvert fald tricket for mig. Nu får jeg ikke den grimme fejlbesked mere. :)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.