LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2004, 04:21 AM   #1
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Rep: Reputation: 30
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
 
Old 07-19-2004, 04:38 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
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.*.
 
Old 07-19-2004, 04:58 AM   #3
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Original Poster
Rep: Reputation: 30
No I didn't do that. Umm, what directory do I try that in exactly? Thanks
 
Old 07-19-2004, 05:02 AM   #4
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
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.
 
Old 07-19-2004, 01:56 PM   #5
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Original Poster
Rep: Reputation: 30
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... 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 Is there anything else I can try? I REALLY want to get booted into my new kernel with a working keyboard and mouse
 
Old 07-20-2004, 02:41 AM   #6
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
knoppix 3.9 would not recognize usb keyboard dr_zayus69 Linux - Hardware 2 08-30-2005 08:15 AM
Knoppix 3.6- Doesn't Recognize Generic USB Keyboard/Intellimouse DeltroX Linux - Hardware 0 11-27-2004 08:40 PM
Kernel 2.6.8 - No USB-Keyboard and mouse chili_666 Debian 4 09-09-2004 07:48 AM
My USB keyboard and mouse no work in kernel 2.6+ (Debian) 0x86 Linux - Software 5 08-01-2004 12:22 PM
Mandy 10 will/won't recognize wireless USB mouse! nethbar Linux - Hardware 0 04-29-2004 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration