LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   New kernel won't recognize my USB mouse and keyboard (https://www.linuxquestions.org/questions/linux-software-2/new-kernel-wont-recognize-my-usb-mouse-and-keyboard-206851/)

R00ts 07-19-2004 04:21 AM

New kernel won't recognize my USB mouse and keyboard
 
I'm running Debian sarge and I recently upgraded the 2.4.25 kernel to the 2.6.6 kernel. At first I tried compiling my own custom kernel, but came to a wall where I could not get the X-server to start no matter what I tried. Then I installed the Debian 2.6.6 kernel package, and X boots up, but it no longer recognizes my USB mouse and keyboard. :( What could be wrong? I didn't change anything in my XF86Config-4 file and my mouse and keyboard work fine on my old kernel so I can't imagine the problem lies with that. I posted it below anyway as a reference. Does anyone have an idea of what is wrong? Thanks

Code:

tyler@localhost:~/image/manga/Hajime_no_Ippo/Volume_20$ cat /etc/X11/XF86Config-4
# XF86Config-4 (XFree86 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 XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#  cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#  md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
#  dpkg-reconfigure xserver-xfree86
Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"    "us"
EndSection
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"      "false"
        Option          "ZAxisMapping"          "4 5"
EndSection
Section "Device"
        Identifier      "ATI Radeon 9500 Pro"
        Driver          "radeon"
EndSection
Section "Monitor"
        Identifier      "Hitachi CML174"
        HorizSync      24-80
        VertRefresh    56-75
        Option          "DPMS"
EndSection
Section "Screen"
        Identifier      "Default Screen"
        Device          "ATI Radeon 9500 Pro"
        Monitor        "Hitachi CML174"
        DefaultDepth    24
        SubSection "Display"
                Depth          1
                Modes          "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth          4
                Modes          "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth          8
                Modes          "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth          15
                Modes          "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth          16
                Modes          "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth          24
                Modes          "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
EndSection
Section "DRI"
        Mode    0666
EndSection


Frustin 07-19-2004 04:38 AM

did you try "make oldconfig" using the old .config file? Basically your new config hasnt taken all the changes you made in your last kernel. it will work, mine certainly did with a bog standard generic usb mouse, when i upgraded my kernel from 2.4.* to 2.6.*.

R00ts 07-19-2004 04:58 AM

No I didn't do that. Umm, what directory do I try that in exactly? Thanks

Frustin 07-19-2004 05:02 AM

well in the /usr/src/kernel-2.4.* you had, and i hope didnt delete yet you have a hidden file called .config. copy that file to the root of the new kernel directory then run: make oldconfig, it will likely ask you to type yes no at some points, just keep hitting return. after that you can then make xconfig (make any changes you want to) then make bzImage.

R00ts 07-19-2004 01:56 PM

Code:

tyler@localhost:/usr/src$ ls -la
total 83180
drwxrwsr-x    5 root    src          4096 Jul 15 15:46 .
drwxr-xr-x  12 root    root        4096 Jun 23 15:35 ..
-rw-r--r--    1 root    src      2589426 Jul 13 06:45 kernel-doc-2.6.6_Custom.1_all.deb
drwxr-xr-x    3 root    root        4096 Jul 15 15:46 kernel-headers-2.6.6
-rw-r--r--    1 root    src      4929506 Jul 13 06:48 kernel-headers-2.6.6_Custom.1_i386.deb
-rw-r--r--    1 root    src      8608380 Jul 13 06:50 kernel-image-2.6.6_Custom.1_i386.deb
drwxr-xr-x  20 root    root        4096 Jul 13 06:48 kernel-source-2.6.6
-rw-r--r--    1 root    root    34430161 Jul 13 06:44 kernel-source-2.6.6.tar.bz2
-rw-r--r--    1 root    src      34469312 Jul 13 06:45 kernel-source-2.6.6_Custom.1_all.deb
-rw-r--r--    1 root    src          1253 Jul 13 06:48 kernel-source-2.6.6_Custom.1_i386.changes
lrwxrwxrwx    1 root    src            28 Jul  5 17:41 linux -> /usr/src/kernel-source-2.6.6
drwxr-xr-x    7 root    root        4096 Jul 15 15:28 rpm

(no kernel-2.4 installed by Debian here) :( Actually I'm not even sure if my custom 2.6.6 kernel is installed or the Debian 2.6.6 packaged kernel is installed. After trying to install the packaged kernel over my custom one it gave me some weird message and I didn't know if it installed cleanly or not. But after installing it I could start x with the 2.6.6 kernel at least.

I tried booting the 2.6.6 kernel with swapping my USB keyboard with a PS/2 one (which worked) and using a USB->PS/2 converter on my mouse (which still didn't work). Then I rebooted to the 2.4.25 kernel and X-windows wasn't booting up for some reason (didn't give me a clear error) so I was like crap. Then I took out the USB->PS/2 converter on my mouse and plugged in my old USB keyboard and the 2.4.25 kernel booted fine... :rolleyes: I'm starting to get a little aggravated. Well I'm going to buy a new PS/2 mouse and PS/2 keyboard soon, but still I want these USB devices to be able to work :cry: Is there anything else I can try? I REALLY want to get booted into my new kernel with a working keyboard and mouse

Frustin 07-20-2004 02:41 AM

theres nothing wrong with your XF86Config-4 file so it going to be a simple kernel config. make sure that you have HID selected under USB settings (i dont have a linux box with me at the moment so cant tell you off the top of my head what the exact settings are). have a look through all the kernel settings (there are loads but it does get you famillier) and just flick the ones that you might deem necessary to get a usb mouse to work, its just a bit of common sence at the end of the day. dont worry you wont break anything.


All times are GMT -5. The time now is 07:45 AM.