Condividi:        

X Error BadDevice e Xorg.conf [RISOLTO]

Per tutti i tuoi problemi Linux entra qui e risolvili!

Moderatori: Anthony47, gunter, zendune

X Error BadDevice e Xorg.conf [RISOLTO]

Postdi crik91 » 14/06/07 20:33

Ciao a tutti,
ecco la voi la soluzione per un bug che molti utilizzatori di Ubuntu e derivati hanno...
Il bug sta nel fatto che aprendo dei programmi da terminale si visualizzano errori di questo genere:
Codice: Seleziona tutto
X Error: BadDevice, invalid or uninitialized input device 166 (o altro)
Major opcode: 144
Minor opcode: 3
Resource id: 0x0

Non c'è da preoccuparsi è un bug molto noto e risolvibile...

Il problema sta in una gestione errata del device wacom,
Per risolverlo si devono commentare alcune righe in xorg.conf .

Innanzitutto effettuare un backup di xorg.conf con il seguente comando da digitare nel terminale:
Codice: Seleziona tutto
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Se si verificheranno problemi dopo la procedura si potrà ripristinare il vecchio xorg.conf col seguente comando:
Codice: Seleziona tutto
sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf

anche da recovery se necessario...


Adesso aprire xorg.conf con un editor:

GNOME: ALT+F2 (o da terminale direttamente)
Codice: Seleziona tutto
gtksu gedit /etc/X11/xorg.conf


KDE:
Codice: Seleziona tutto
kdesu kate /etc/X11/xorg.conf


Oppure con un editor universale:
Codice: Seleziona tutto
sudo nano /etc/X11/xorg.conf


Localizzare e commentare tutte le voci contenenti wacom, stylus, cursor, eraser quindi:

Codice: Seleziona tutto
Section "InputDevice"
   Driver      "wacom"
   Identifier   "stylus"
   Option      "Device"   "/dev/input/wacom"
   Option      "Type"      "stylus"
   Option      "ForceDevice"   "ISDV4"      # Tablet PC ONLY
EndSection

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

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


Commentate queste voci utilizzando all'inizio della riga il #:
Codice: Seleziona tutto
# Section "InputDevice"
#    Driver      "wacom"
#    Identifier   "stylus"
#    Option      "Device"   "/dev/input/wacom"
#    Option      "Type"      "stylus"
#    Option      "ForceDevice"   "ISDV4"      # Tablet PC ONLY
# EndSection

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

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

E nella sezione ServerLayout:
Codice: Seleziona tutto
Section "ServerLayout"
   Identifier   "Default Layout"
   Screen      "Default Screen"
   InputDevice   "Generic Keyboard"
   InputDevice   "Configured Mouse"
#    InputDevice     "stylus"   "SendCoreEvents"
#    InputDevice     "cursor"   "SendCoreEvents"
#    InputDevice     "eraser"   "SendCoreEvents"
   Option          "AIGLX"     "true"
EndSection

(Io ho il modulo AIGLX per l'utilizzo di beryl ma se lo vedete non è detto che dobbiate averlo pure voi)

Salvare il file e riavviare Xorg con la sequenza CTRL+ALT+BACKSPACE oppure riavviando l'intero sistema ma non è necessario.

Io utilizzo Kubuntu 7.04 (Feisty Fawn) con AIGLX+Beryl e con queste modifiche non ho avuto nessunissimo problema...

Per problemi postare pure nel topic...
crik91
Utente Senior
 
Post: 700
Iscritto il: 07/02/06 10:02
Località: Prato

Sponsor
 

Postdi zendune » 14/06/07 22:20

Grazie per la segnalazione ;)
Non exercitus neque thesauri praesidia regni sunt, verum amici, quos neque armis cogere neque auro parare queas: officio et fide pariuntur
Avatar utente
zendune
Moderatore
 
Post: 1660
Iscritto il: 15/03/03 18:34
Località: Brescia

Postdi crik91 » 14/06/07 22:35

Mi piace fare guide...Se vi serve ne faccio volentieri altre...(Ubuntu e derivati)
crik91
Utente Senior
 
Post: 700
Iscritto il: 07/02/06 10:02
Località: Prato

Postdi ninuzzu » 30/06/07 00:00

ho provato a seguire la guida del primo post, ma non sono riuscito a risolvere il bug

Codice: Seleziona tutto
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
   FontPath   "/usr/share/fonts/X11/misc"
   FontPath   "/usr/share/fonts/X11/cyrillic"
   FontPath   "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/Type1"
   FontPath   "/usr/share/fonts/X11/100dpi"
   FontPath   "/usr/share/fonts/X11/75dpi"
   # path to defoma fonts
   FontPath   "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
   Load   "i2c"
   Load   "bitmap"
   Load   "ddc"
   Load   "dri"
   Load   "extmod"
   Load   "freetype"
   Load   "glx"
   Load   "int10"
   Load   "vbe"
EndSection

Section "InputDevice"
   Identifier   "Generic Keyboard"
   Driver      "kbd"
   Option      "CoreKeyboard"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "pc105"
   Option      "XkbLayout"   "it"
EndSection

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver      "mouse"
   Option      "CorePointer"
   Option      "Device"      "/dev/input/mice"
   Option      "Protocol"      "ImPS/2"
   Option      "ZAxisMapping"      "4 5"
   Option      "Emulate3Buttons"   "true"
EndSection

Section "InputDevice"
   Identifier   "Synaptics Touchpad"
   Driver      "synaptics"
   Option      "SendCoreEvents"   "true"
   Option      "Device"      "/dev/psaux"
   Option      "Protocol"      "auto-dev"
   Option      "HorizScrollDelta"   "0"
EndSection

#Section "InputDevice"
#   Driver      "wacom"
#   Identifier   "stylus"
#   Option      "Device"   "/dev/input/wacom"
#   Option      "Type"      "stylus"
#   Option      "ForceDevice"   "ISDV4"      # #Tablet PC ONLY
#EndSection

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

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

Section "Device"
   Identifier   "Intel Corporation 82852/855GM Integrated Graphics Device"
   Driver      "i810"
   BusID      "PCI:0:2:0"
EndSection

Section "Monitor"
   Identifier   "Monitor Generico"
   Option      "DPMS"
   HorizSync   28-51
   VertRefresh   43-60
EndSection

Section "Screen"
   Identifier   "Default Screen"
   Device      "Intel Corporation 82852/855GM Integrated Graphics Device"
   Monitor      "Monitor Generico"
   DefaultDepth   24
   SubSection "Display"
      Depth      1
      Modes      "1024x768"
   EndSubSection
   SubSection "Display"
      Depth      4
      Modes      "1024x768"
   EndSubSection
   SubSection "Display"
      Depth      8
      Modes      "1024x768"
   EndSubSection
   SubSection "Display"
      Depth      15
      Modes      "1024x768"
   EndSubSection
   SubSection "Display"
      Depth      16
      Modes      "1024x768"
   EndSubSection
   SubSection "Display"
      Depth      24
      Modes      "1024x768"
   EndSubSection
EndSection

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

Section "DRI"
   Mode   0666
EndSection


mi sa che sbaglio qualcosa mi dareste una mano? sono proprio agli inizi
ciao
Ciao Ciao
ninuzzu
Utente Senior
 
Post: 171
Iscritto il: 07/07/05 18:10

Postdi gunter » 30/06/07 13:25

Il senso di tutto ciò è commentare le righe che non si utilizzano, ad esempio vista la tua scheda grafica, non credo sia un portatile e quindi potresti anche eliminare la sezione riguardo al touchpad synaptics...(penso)

Comunque è un errore piuttosto marginale, "il server grafico è impostato per aspettarsi una certa periferica che invece non trova" più o meno...

magari posta quella parte del file xsessionerrors che interessa il problema...(mi raccomando non tutto, alle volte è un file eterno ) :eeh:
Avatar utente
gunter
Moderatore
 
Post: 3674
Iscritto il: 07/06/06 18:28
Località: Rovereto (tn)

Postdi crik91 » 30/06/07 15:01

Il bug dervia da un errata gestione del device wacom...Io le righe le ho commentate con # e poi uno spazio...Dammi delle info sul tuo pc e metti su nopaste o pastebin tutto lo xorg.conf e gli dò un occhiata...Non escludere info come distro e scheda video...(per distro ovviamente dovrebbe essere ubuntu cmq mi interessa sapere se è feisty,edgy o altro)
crik91
Utente Senior
 
Post: 700
Iscritto il: 07/02/06 10:02
Località: Prato


Torna a Software Linux


Topic correlati a "X Error BadDevice e Xorg.conf [RISOLTO]":


Chi c’è in linea

Visitano il forum: Nessuno e 24 ospiti