Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 02/08/2006, à 20:58

SamheG

X Error: BadDevice, invalid or uninitialized input device 168

Si vous êtes sous KDE, il est fort probable qu'au lancement de certaines applications dans un terminal vous ayez ce message :

X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode:  148
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode:  148
  Minor opcode:  3
  Resource id:  0x0
Failed to open device

Malgré ce message d'erreur, tout fonctionne à priori normalement ... mais c'est énervant à la longue !

Pour y remédier, il suffit de commenter quelques lignes de votre xorg.conf.

Dans un terminal, tapez :

kdesu kate /etc/X11/xorg.conf

Commentez les lignes se rapportant à "wacom" comme ci-dessous :

#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

Et un petit peu plus loin :

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

Redémarrez X et le tour est joué ! big_smile

Merci à Jun-Dai pour cette astuce !

Dernière modification par SamheG (Le 03/08/2006, à 09:15)

Hors ligne

#2 Le 02/08/2006, à 23:47

nknico

Re : X Error: BadDevice, invalid or uninitialized input device 168

Bonne idée ce petit tuto, il y a pas mal de post concernant ce problème, ça sera plus pratique d'aiguiller les gens ici, plutôt que de devoir tout ré-expliquer à chaque fois...

Juste une suggestion : il n'est pas recommandé d'utiliser sudo avec une application graphique...de plus kwrite n'est pas installé par défaut.

Je suggère donc :

kdesu kate /etc/X11/xorg.conf

Voilà.

Sinon je trouve bizarre que ce bug n'existe que pour Kubuntu...

Dernière modification par nknico (Le 03/08/2006, à 01:05)


Nico

Hors ligne

#3 Le 03/08/2006, à 09:19

SamheG

Re : X Error: BadDevice, invalid or uninitialized input device 168

Modifié ! wink

Kwrite n'est pas installé par défaut ? Voilà quelque chose de plus qu'ils pourraient faire dans le prochain KDE alors. Car même s'il n'a pas toutes les fonctionnalités de kate, qu'est-ce qu'il est rapide !

Hors ligne

#4 Le 03/08/2006, à 12:29

nknico

Re : X Error: BadDevice, invalid or uninitialized input device 168

Ha, erreur de ma part...en fait il semble être installé, c'est Kedit qui ne l'est pas...


Nico

Hors ligne

#5 Le 03/08/2006, à 14:45

Noé

Re : X Error: BadDevice, invalid or uninitialized input device 168

Et pour ceux qui ont une wacom, ils font comment ?


dotdotno ou Phlogistique sur IRC
Jabber : noe.rubinstein CHEZ fritalk.com

Hors ligne

#6 Le 03/08/2006, à 15:00

SamheG

Re : X Error: BadDevice, invalid or uninitialized input device 168

@ Noé : Perso je n'en ai pas mais il serait intéressant de savoir si ceux qui en ont une ont également ce message d'erreur qui apparaît.

Hors ligne

#7 Le 29/08/2006, à 19:15

Visiteur

Re : X Error: BadDevice, invalid or uninitialized input device 168

Je viens d'installer Kubuntu (mais je ne connais pas grand chose à linux),
j'ai une wacom et le message d'erreur s'affichait bien, si ca peut servir...

#8 Le 14/11/2006, à 23:56

2x

Re : X Error: BadDevice, invalid or uninitialized input device 168

Marche nickel! Merci bien pour ce tuto...cela dit, j'ai une wacom sur mon autre ordio, ce serait effectivement intéressant de savoir comment régler ce souci...(ne sait-on jamais, des fois que je décide de les passer les 2 complétement sous linux big_smile )

Dernière modification par 2x (Le 14/11/2006, à 23:57)

Hors ligne

#9 Le 19/11/2006, à 22:16

ecologeek

Re : X Error: BadDevice, invalid or uninitialized input device 168

attention toujours faire une sauvegarde de xorg.conf avant modification.
beryl plante avec la modif de debut de post.
d'autant que ces lignes incongrues ne genent pas le fonctionnement.

Hors ligne

#10 Le 20/11/2006, à 10:53

SamheG

Re : X Error: BadDevice, invalid or uninitialized input device 168

ecologeek a écrit :

beryl plante avec la modif de debut de post.

Par modif, tu entends la suppression des lignes concernant la wacom ?
Car si tel est le cas, je tiens à signaler que chez moi calà n'a eu aucune incidence sur beryl !

Hors ligne

#11 Le 08/04/2007, à 22:48

Kafi

Re : X Error: BadDevice, invalid or uninitialized input device 168

Merci pour le bad device smile

Pour info le pb est présent aussi sous xubuntu!

IL faudrait peut-être faire un rapport de bug?

Dernière modification par Kafi (Le 08/04/2007, à 22:50)


Carnet de voyage en Amérique latine : www.paseolatino.fr
Notre préparation, notre trajet, nos impressions et nos photos.

Hors ligne

#12 Le 15/12/2007, à 16:28

cidarK

Re : X Error: BadDevice, invalid or uninitialized input device 168

moi le message d'erreur que j'ai est le suivant:

X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  145
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  145
  Minor opcode:  3
  Resource id:  0x0
Failed to open device

et donc la manipulation proposée ne marche pas.

Hors ligne

#13 Le 15/12/2007, à 16:44

SamheG

Re : X Error: BadDevice, invalid or uninitialized input device 168

Pourtant elle devrait fonctionner!
Poste ton xorg.conf pour voir

Hors ligne

#14 Le 15/12/2007, à 17:11

cidarK

Re : X Error: BadDevice, invalid or uninitialized input device 168

excuse pour le retard mais apres avoir lu ton message j'ai reessaye resultat des course :probleme avec le serveur X (c'est comme ça qu'on dit,non ?)
en ce moment je suis sous windows pour recuperer l'emplacement du fichier(/etc/X11/xorg.conf) et je retourne annuler les modifications.

Hors ligne

#15 Le 15/12/2007, à 17:32

cidarK

Re : X Error: BadDevice, invalid or uninitialized input device 168

Me voila de retour sur ubuntu cool
et voila mon xorg :

# /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"    "fr"
    Option        "XkbVariant"    "oss"
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"
    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    "S3 Inc. VT8375 [ProSavage8 KM266/KL266]"
    Driver        "savage"
    BusID        "PCI:1:0:0"
EndSection

Section "Monitor"
    Identifier    "à‰cran générique"
    Option        "DPMS"
    HorizSync    28-51
    VertRefresh    43-60
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "S3 Inc. VT8375 [ProSavage8 KM266/KL266]"
    Monitor        "à‰cran générique"
    DefaultDepth    16
    SubSection "Display"
        Depth        1
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        4
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        8
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        15
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        16
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        24
        Modes        "1024x768" "800x600" "640x480"
    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"
EndSection

Section "DRI"
    Mode    0666
EndSection

Hors ligne

#16 Le 22/12/2007, à 10:40

SamheG

Re : X Error: BadDevice, invalid or uninitialized input device 168

Désolé également pour le petit retard.

Voici ton xorg.conf modifié :

# /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"    "fr"
    Option        "XkbVariant"    "oss"
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"
#    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    "S3 Inc. VT8375 [ProSavage8 KM266/KL266]"
    Driver        "savage"
    BusID        "PCI:1:0:0"
EndSection

Section "Monitor"
    Identifier    "Écran générique"
    Option        "DPMS"
    HorizSync    28-51
    VertRefresh    43-60
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "S3 Inc. VT8375 [ProSavage8 KM266/KL266]"
    Monitor        "Écran générique"
    DefaultDepth    16
    SubSection "Display"
        Depth        1
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        4
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        8
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        15
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        16
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        24
        Modes        "1024x768" "800x600" "640x480"
    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"
EndSection

Section "DRI"
    Mode    0666
EndSection

Copie-colle le et redémarre X (Ctrl+Alt+Backspace)

Dis moi si ensuite tu as toujours l'erreur

Hors ligne

#17 Le 22/12/2007, à 13:56

cidarK

Re : X Error: BadDevice, invalid or uninitialized input device 168

merci pour la réponse big_smile.
mais ca n a pas marche. apres copier coller redemarrage de X .resultat : ecran noir,donc redemarrage,remplacement de xorg.conf par l'ancien.
Merci.

Hors ligne