New kernel won't recognize my USB mouse and keyboard
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.*.
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.
(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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.