Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68813 - kernel 2.6.9 or hotplug 20040401: USB mouse not found at boot
Summary: kernel 2.6.9 or hotplug 20040401: USB mouse not found at boot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-25 04:44 UTC by Jakob Schiotz
Modified: 2004-11-10 10:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg when booting with a USB mouse attached. (dmesg-usb-as-module,13.53 KB, text/plain)
2004-10-28 01:20 UTC, Jakob Schiotz
Details
After booting with mouse, removing mouse and reinserting it. (dmesg-usb-as-module-after-remove-insert,14.85 KB, text/plain)
2004-10-28 01:22 UTC, Jakob Schiotz
Details
Dmesg when there was no mouse attached at boot time. (dmesg-usb-as-module-no-mouse,13.08 KB, text/plain)
2004-10-28 01:23 UTC, Jakob Schiotz
Details
The .config file for the 2.6.9 kernel (.config,25.12 KB, text/plain)
2004-10-28 01:52 UTC, Jakob Schiotz
Details
dmesg for the 2.6.8.1 kernel WITHOUT the problem (dmesg-2.6.8.1,13.28 KB, text/plain)
2004-10-28 02:43 UTC, Jakob Schiotz
Details
2.6.9 .config for the Dell Inspiron also showing this problem. (.config,26.56 KB, text/plain)
2004-11-05 11:13 UTC, Jakob Schiotz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Schiotz 2004-10-25 04:44:05 UTC
After upgrading from kernel 2.6.8.1 to 2.6.9 my USB mouse is no longer recognized if it is plugged in when booting.  dmesg shows no trace of the mouse or of the USD HID driver.  Unplugging the mouse and plugging it in again fixes the problem.

Compiling the full HID driver (USB_HID) into the kernel instead of as a module causes the problem to go away.

This problem was not present in kernel 2.6.8.1


Reproducible: Always
Steps to Reproduce:
1. Boot with a USB mouse attached
2.
3.

Actual Results:  
The mouse is not discovered.


b307-213 root # emerge info
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi alsa arts atlas avi berkdb bitmap-fonts cdr crypt cups dga dvd
emacs encode fam foomaticdb gdbm gif gpm gtk gtk2 imap imlib java jpeg kde
libg++ libwww mad maildir mbox mikmod motif mozilla mpeg mule ncurses netcdf nls
nptl oggvobis oggvorbis opengl oss pam pcmcia pdflib perl png pnp ppds python qt
quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype
trusted usb wxwindows x86 xml2 xmms xprint xv xvid zlib"

b307-213 root # etcat -v hotplug
[ Results for search key           : hotplug ]
[ Candidate applications found : 6 ]

 Only printing found installed programs.

*  sys-apps/hotplug :
        [   ] 20030805-r2 (0) OVERLAY
        [   ] 20030805-r3 (0) OVERLAY
        [   ] 20040105 (0) OVERLAY
        [  I] 20040401 (0) OVERLAY
        [M~ ] 20040920 (0) OVERLAY
        [M~ ] 20040923 (0) OVERLAY
b307-213 root #
b307-213 root # etcat -v development-sources
[ Results for search key           : development-sources ]
[ Candidate applications found : 6 ]

 Only printing found installed programs.

*  sys-kernel/development-sources :
        [   ] 2.6.5 (2.4.26-grsec-2.0) OVERLAY
        [   ] 2.6.6 (2.4.26-grsec-2.0) OVERLAY
        [   ] 2.6.7 (2.4.26-grsec-2.0) OVERLAY
        [  I] 2.6.8.1 (2.4.26-grsec-2.0) OVERLAY
        [  I] 2.6.9 (2.4.26-grsec-2.0) OVERLAY
        [M~ ] 2.6.10_rc1 (2.4.26-grsec-2.0) OVERLAY
b307-213 root #
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2004-10-27 15:52:12 UTC
Could you please post  the full dmesg output (as an attachment) from 2.6.9 when you boot up with the mouse plugged in. Would also be interested to see the specific messages that reappear when you replug it.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-10-27 15:53:13 UTC
Oh. you could also try modifying your bios's "USB Legacy support" value if it has it, sometimes known as "usb keyboard support". And possibly even try 2.6.10-rc1?
Comment 3 Jakob Schiotz 2004-10-28 01:20:54 UTC
Created attachment 42748 [details]
dmesg when booting with a USB mouse attached.

This is the dmesg when I boot the machine with a USB mouse attached, and
USB_HID built as a module.
Comment 4 Jakob Schiotz 2004-10-28 01:22:30 UTC
Created attachment 42749 [details]
After booting with mouse, removing mouse and reinserting it.

This is the dmesg when I then remove the mouse and reinsert it.  The AGP lines
were because I was shifting back and forth between a text console and the X
login screen to see if the mouse was working.
Comment 5 Jakob Schiotz 2004-10-28 01:23:38 UTC
Created attachment 42750 [details]
Dmesg when there was no mouse attached at boot time.

If there was no mouse attached at boot time, the dmesg is slightly different,
so it does see something, it just does not load the HID module.
Comment 6 Jakob Schiotz 2004-10-28 01:52:37 UTC
Created attachment 42754 [details]
The .config file for the 2.6.9 kernel

Here is the .config file for the 2.6.9 kernel.

I also tried 2.6.10-rc1, the same problem appear.  There is no USB legacy stuff
in the BIOS, the only USB thing is support for booting off USB devices.

The problem should of course be fixed, but it is not serious as there is a very
easy workaround: building usbhid into the kernel instead of building a module.

Thanks for looking into this.

/Jakob
Comment 7 Jakob Schiotz 2004-10-28 02:43:15 UTC
Created attachment 42757 [details]
dmesg for the 2.6.8.1 kernel WITHOUT the problem

I just booted back into the old 2.6.8.1 kernel, and can confirm that the
problem is NOT there with that kernel, so it must be related to some change
occurring between 2.6.8.1 and 2.6.9.

I have attached dmesg for the 2.6.8.1 kernel when booting with the mouse
attached, just in case it is useful.

/Jakob
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2004-10-28 13:26:13 UTC
How about the 2.6.8.1 .config? Is usbhid compiled as a module there?
Comment 9 Jakob Schiotz 2004-10-29 00:38:21 UTC
Yes, usbhid is built as a module in 2.6.8.1 as well.  I am not near the machine today, so I cannot send you the .config now, but it is essentially the same as the 2.6.9 .config.  I copied the .config when I upgraded, and ran "make oldconfig".

/Jakob
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2004-11-02 06:16:09 UTC
Doesn't make much sense why it changed over a kernel upgrade, but anyway, could you try using coldplug instead of hotplug? hotplug is no longer designed to load modules at bootup, but only when they are hotplugged. coldplug now does what hotplug used to do (scan hardware on bootup + load modules).
Comment 11 Jakob Schiotz 2004-11-02 08:31:57 UTC
I think it is only the unstable hotplug that changed behaviour, at least emerging the stable one does not produce the warning about coldplug that my colleagues saw when emerging the unstable one, and coldplug is keyword masked.

Comment 12 Jakob Schiotz 2004-11-05 11:08:50 UTC
I got the chance to test this on another laptop (Dell Inspiron 5150 with a different mouse, but still from Logitech).  The configuration is similar, but of course not identical.  I got the same problem if usbhid is compiled as a module.  So it must be reproducible.  I guess the question is, is it a Gentoo-specific problem or a general problem with the new kernels, which should be reported upstream?

/Jakob
Comment 13 Jakob Schiotz 2004-11-05 11:13:07 UTC
Created attachment 43355 [details]
2.6.9 .config for the Dell Inspiron also showing this problem.
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-08 14:00:40 UTC
works here, with sys-apps/hotplug-20040923 and coldplug in run-level default.

I think this is because you use a too old version of hotplug, could you please try a newer one and add coldplug instead of hotplug to the default runlevel?
Comment 15 Jakob Schiotz 2004-11-10 06:33:00 UTC
So I emerged the latest, keyword-masked version of hotplug and coldplug, and indeed, it worked :-)

So obviously the bug is not in the kernel, but in the latest stable version of hotplug.  The problem will become history once the latest version of hotplug and coldplug are marked stable.  I guess it is not worth it opening a bug on the latest stable version of hotplug.

Thanks for all your help in looking into this.

/Jakob
Comment 16 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-10 10:01:20 UTC
latest version of hotplug is now marked stable.