Announcement

Collapse
No announcement yet.

X Error: BadDevice, invalid or uninitialized input device 168

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    X Error: BadDevice, invalid or uninitialized input device 168

    Seems a lot of users are getting the below errors when running applications from the console:

    Code:
    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
    To fix this, look for the lines posted below, or similar to, and comment them out of your /etc/X11/xorg.conf file:

    Code:
    # 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
    Then also a bit further down in the file you need to look for the below lines, or ones similar to these:

    Code:
    Section "ServerLayout"
        Identifier   "Default Layout"
        Screen     "Default Screen"
        InputDevice   "Generic Keyboard"
        InputDevice   "Configured Mouse"
    #    InputDevice   "stylus" "SendCoreEvents"
    #    InputDevice   "cursor" "SendCoreEvents"
    #    InputDevice   "eraser" "SendCoreEvents"
    EndSection
    **WARNING** If you fail to comment the lines below that are commented out, then X will *NOT* start when you go to restart the X server.

    Once you comment those things out then a restart of X is needed. Once X is back up and running again you shouldn't see those errors anymore.

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

    Hawkwind your fix works like a charm in Feisty!

    Comment


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

      I discovered your fix several months ago.

      Many thanks...

      Comment


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

        Hi Hawkwind... it's strange to see you here.

        Anyway those errors are not exactly problems. Those lines are there to enable automagic configuration of watcom compatible tablets.

        Those errors are harmless and will only add a not noticeable time to apps startup time. Of course it's harmless to remove them if you don't use a tablet.

        Javier.

        Comment


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

          Those errors are harmless and will only add a not noticeable time to apps startup time
          I had a similar problem with GOPCHOP. The program crashed unless I started it as root. I thought it was a permission issue but Hawkwinds solution solved the problem completely. It's not just a cosmetic problem.

          Comment


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

            My GOPCHOP problem turned back

            Comment


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

              I was worried I had somehow botched my Kubuntu installation, but this worked for me. Thank you!
              Welcome newbies!
              Verify the ISO
              Kubuntu's documentation

              Comment


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

                Originally posted by bobbythebaer
                It's not just a cosmetic problem.
                Yep - occasionally, I've seen the K/console choking on wacom crap quite badly.

                Comment


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

                  And it's cluttering bug reports:

                  Bug #42553 in wacom-tools (Ubuntu)
                  wacom input devices enabled by default, why?

                  Bug #42553, first reported on 2006-05-02 by Alex

                  This bug has 16 duplicates
                  Problems with amarok ?:
                  See this thread in ubuntuforums.org
                  http://ubuntuforums.org/showthread.php?p=1264009
                  Apparently these are for TabletPCs??
                  While this may just seem like a nuisance bug, it does affect amarok scripts- for me, I could not configure the popular amarok replaygain script until I fixed this error by making the changes to my xorg.conf. My guess is the script doesn't continue to run when it gets an X-error, making it unable for me to get past the initial kdialog box. There are other cases where similar problems occur because of this error, not to mention that there are 8 duplicates of this bug files and having this error generally causes havoc for people, especially beginners, trying to debug problems (since they don't know that it isn't [probably] the real culprit of whatever bug they are having...).
                  Wondering how many has wacom ? 10 % 20 % 30 %...


                  Before you edit, BACKUP !

                  Why there are dead links ?
                  1. Thread: Please explain how to access old kubuntu forum posts
                  2. Thread: Lost Information

                  Comment


                    #10
                    X Error: BadDevice, invalid or uninitialized input device 168 -- Mod please move

                    Mr. Mod, may I respectfully recommend that Hawkwind's tutorial be relocated to the "How To" section, so we can point the troubled newbie in that direction when he's worried about his wacom errors?

                    Thanks!


                    Comment


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

                      I too, found Hawkwind's post informative. I commented out my wacom lines. No more boot error notices concerning that. Now if I could just find where the two non-existant font directory pointers are coming from, I'd comment those out also.
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


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

                        BACKUP BEFORE YOU EDIT !

                        It is easier to backup than repair xorg.conf.


                        Before you edit:
                        Code:
                        :~$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_my_backup_001

                        If kubuntu doesn't understand your xorg.conf and X doesn't start.
                        Press Ctrl + Alt + F1 (or F2...6). This should start virtual console.

                        From Virtual console
                        a virtual console (VC, sometimes virtual terminal, VT) is a conceptual combination of the keyboard and the display for a user interface. The concrete combination is the system console of the computer, where the user can switch between the virtual consoles to access multiple unrelated user interfaces. Usually in Linux, the first six virtual consoles provide a text terminal with a login prompt to a unix shell. The graphical X Window System starts in the seventh virtual console.

                        After login:
                        Code:
                        :~$ sudo cp /etc/X11/xorg.conf_my_backup_001 /etc/X11/xorg.conf
                        Restart (and try editing again).


                        Links:
                        Topic: HOWTO : Repairing xorg.conf
                        http://kubuntuforums.net/forums/inde...opic=3082808.0

                        Topic: How to get started with no GUI
                        http://kubuntuforums.net/forums/inde...opic=3085112.0
                        Before you edit, BACKUP !

                        Why there are dead links ?
                        1. Thread: Please explain how to access old kubuntu forum posts
                        2. Thread: Lost Information

                        Comment


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

                          Thank you for this post. It was a bit annoying to see this "error" all the time...

                          Comment

                          Working...
                          X