2002-07-24 13:57:46

by Sven.Riedel

[permalink] [raw]
Subject: USB Keyboards with recent 2.4.19-pre/rcXX and 2.5.2X

Hi,
USB keyboards don't work with recent 2.4.19-preXX (-pre2 works fine for
me, but pre-10 and up don't), as well as int (at least) 2.5.25.
The kernel does find the keyboard during bootup, but doesn't accept any
keypresses. This happens regardless of the UHCI driver selected in
2.4.19 (normal or JE).
Input core support has been compiled in, as well as the full HID.
Verified on one different machine.

Regs,
Sven
--
Sven Riedel [email protected]
Osteroeder Str. 6 / App. 13 [email protected]
38678 Clausthal "Python is merely Perl for those who
prefer Pascal to C" (anon)


2002-07-24 17:32:08

by Greg KH

[permalink] [raw]
Subject: Re: USB Keyboards with recent 2.4.19-pre/rcXX and 2.5.2X

On Wed, Jul 24, 2002 at 04:00:26PM +0200, [email protected] wrote:
> Hi,
> USB keyboards don't work with recent 2.4.19-preXX (-pre2 works fine for
> me, but pre-10 and up don't), as well as int (at least) 2.5.25.
> The kernel does find the keyboard during bootup, but doesn't accept any
> keypresses. This happens regardless of the UHCI driver selected in
> 2.4.19 (normal or JE).
> Input core support has been compiled in, as well as the full HID.
> Verified on one different machine.

Is CONFIG_USB_HIDINPUT selected in your .config? You _did_ run
'make oldconfig' when upgrading kernel versions, right?

thanks,

greg k-h

2002-07-25 18:12:29

by Greg KH

[permalink] [raw]
Subject: Re: USB Keyboards with recent 2.4.19-pre/rcXX and 2.5.2X

On Thu, Jul 25, 2002 at 06:12:21PM +0200, [email protected] wrote:
> On Wed, Jul 24, 2002 at 10:35:05AM -0700, Greg KH wrote:
> > Is CONFIG_USB_HIDINPUT selected in your .config?
> Now it is, and now it works. Thanks for the tip.

Ah, and I didn't believe people when I said this wasn't going to be a
problem...:
http://marc.theaimsgroup.com/?l=linux-usb-devel&m=101761858728615&w=2

> > You _did_ run 'make oldconfig' when upgrading kernel versions, right?
> Uhm, no. What does that do? Never heard of it before...

EVERY TIME you move a different .config file from a different kernel
version you HAVE to run 'make oldconfig' to fix up the differences.
This means everytime you upgrade your kernel version, you have to do it
before rebuilding the kernel.

I think the 2.5 Makefile now detects this condition and will tell you to
run it.

thanks,

greg k-h

2002-07-25 18:47:35

by Greg KH

[permalink] [raw]
Subject: Re: USB Keyboards with recent 2.4.19-pre/rcXX and 2.5.2X

On Thu, Jul 25, 2002 at 08:46:37PM +0200, [email protected] wrote:
> On Thu, Jul 25, 2002 at 11:15:19AM -0700, Greg KH wrote:
> > > > You _did_ run 'make oldconfig' when upgrading kernel versions, right?
> > > Uhm, no. What does that do? Never heard of it before...
> >
> > EVERY TIME you move a different .config file from a different kernel
> > version you HAVE to run 'make oldconfig' to fix up the differences.
> > This means everytime you upgrade your kernel version, you have to do it
> > before rebuilding the kernel.
>
> Well, actually I usually do go through the kernel in menuconfig and set
> all the options by hand. But I didn't consider that kernel option to be
> important for actually using the keyboard and mouse, because so far it
> had worked without this new option. And it didn't really scream for any
> attention whatsoever. So it got ignored. Happened to some of my friends
> too :). Maybe rename it to something that grabs your attention before
> .19 gets released :)

Nope, that's what 'make oldconfig' is there for. That combined with
reading the help entry for the new config items would have told you that
this was a necessary thing for you to enable.

thanks,

greg k-h

2002-07-25 21:41:09

by Brad Hards

[permalink] [raw]
Subject: Re: USB Keyboards with recent 2.4.19-pre/rcXX and 2.5.2X

On Fri, 26 Jul 2002 04:15, Greg KH wrote:
> On Thu, Jul 25, 2002 at 06:12:21PM +0200, [email protected] wrote:
> > On Wed, Jul 24, 2002 at 10:35:05AM -0700, Greg KH wrote:
> > > Is CONFIG_USB_HIDINPUT selected in your .config?
> >
> > Now it is, and now it works. Thanks for the tip.
>
> Ah, and I didn't believe people when I said this wasn't going to be a
> problem...:
> http://marc.theaimsgroup.com/?l=linux-usb-devel&m=101761858728615&w=2
For your sins, I sentence you to two weeks of user support.

> > > You _did_ run 'make oldconfig' when upgrading kernel versions, right?
> >
> > Uhm, no. What does that do? Never heard of it before...
>
> EVERY TIME you move a different .config file from a different kernel
> version you HAVE to run 'make oldconfig' to fix up the differences.
> This means everytime you upgrade your kernel version, you have to do it
> before rebuilding the kernel.
This isn't strictly true. You could do any of the make config versions,
[make config, make menuconfig, make xconfig, make oldconfig]
but you have to look at every new option, and that is a bit error prone
(because you missed something subtle, or you were hasty, whatever).
make oldconfig helps you here, because it gives you only the new
options, which is probably what you want.

Some people always like to run make xconfig as well, because Rusty
says "it is the only one with a static parser" (or something like that).
If you do this, you don't need to change anything - just save the config
again.

Brad
--
http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black.

2002-07-26 18:44:54

by Greg KH

[permalink] [raw]
Subject: Re: USB Keyboards with recent 2.4.19-pre/rcXX and 2.5.2X

On Fri, Jul 26, 2002 at 07:39:39AM +1000, Brad Hards wrote:
> On Fri, 26 Jul 2002 04:15, Greg KH wrote:
> > On Thu, Jul 25, 2002 at 06:12:21PM +0200, [email protected] wrote:
> > > On Wed, Jul 24, 2002 at 10:35:05AM -0700, Greg KH wrote:
> > > > Is CONFIG_USB_HIDINPUT selected in your .config?
> > >
> > > Now it is, and now it works. Thanks for the tip.
> >
> > Ah, and I didn't believe people when I said this wasn't going to be a
> > problem...:
> > http://marc.theaimsgroup.com/?l=linux-usb-devel&m=101761858728615&w=2
> For your sins, I sentence you to two weeks of user support.

Hm, can I use "previous time served" on linux-usb-users and here as a
credit for this sentence? :)

greg k-h