Skip to contentSkip to conversation

2.4.19, USB_HID only works compiled in, not as module

DISCUSSION Jonathan Hudson 5 participants 5 messages Aug 4, 2002 – Aug 18, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

In article <[email protected]>,
Oliver Feiler <[email protected]> writes:
OF> Hi,
OF>
OF> Since 2.4.19 a usb mouse does not work anymore if
OF>
OF> CONFIG_USB_HID=m
OF> and
OF> CONFIG_INPUT_MOUSEDEV=m
OF>
OF> is set. It only works if both are compiled into the kernel. Yes, I have set OF> CONFIG_USB_HIDINPUT=y.
OF>
OF> I've also seen other complaints about usb mice not working in 2.4.19, I guess OF> that's the problem?
OF>
OF> If the stuff is compiled as modules, everything seems to be fine. The kernel OF> messages are the same, everything is detected fine. Except that 'cat OF> /dev/input/mice' does not give any output if the driver is compiled as OF> module.
OF>

Not so. USB Mouse works just fine here on 2.4.19.

$ lsmod
....
mousedev                4352   1
hid                    14112   0 (unused)
input                   3328   0 [mousedev hid]
....

CONFIG_INPUT=m
# CONFIG_INPUT_KEYBDEV is not set
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024

CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set

'cat /dev/input/mice' (a cat and mouse game?) gives output as well.

So there appears to be no generic 2.4.19 problem.

#2 lore raw
Quoted 16 lines · Jonathan Hudson

Not so. USB Mouse works just fine here on 2.4.19.

$ lsmod
....
mousedev                4352   1
hid                    14112   0 (unused)
input                   3328   0 [mousedev hid]
....

CONFIG_INPUT=m
# CONFIG_INPUT_KEYBDEV is not set
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024

Quoted 7 lines

CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set

'cat /dev/input/mice' (a cat and mouse game?) gives output as well.

So there appears to be no generic 2.4.19 problem.

Hm, seems so. The relevant options I used are:

CONFIG_INPUT=y
# CONFIG_INPUT_KEYBDEV is not set
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=m

CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_UHCI=y
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y

I don't know if it's a config problem. First I suspected CONFIG_USB_HIDINPUT could be the problem because it's new in 2.4.19. But as I see it works for you, so there shouldn't be a problem.

Signature · 4 lines
Oliver Feiler  <kiza@(gmx(pro).net|lionking.org|claws-and-paws.com)>
http://www.lionking.org/~kiza/  <--   homepage
PGP-key ID 0x561D4FD2    --> /pgpkey.shtml
http://www.lionking.org/~kiza/journal/
#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Oliver Feiler

Hm, seems so. The relevant options I used are:

CONFIG_INPUT=y
# CONFIG_INPUT_KEYBDEV is not set
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=m

Quoted 5 lines

CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_UHCI=y
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y

What other USB options do you have turned on?

What modules do you have loaded?

Vojtech: We need that /proc support for input to help with problems like this. Any chance of merging it in 2.4.20-pre?

Brad

- --
http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9TaHrW6pHgIdAuOMRAkkCAJ0TzvchKInmffKrFU38KUk9k9wD/ACbBKN6 MLPKbd8Gj5ld/XFFrdfEkZU=
=i/LO
-----END PGP SIGNATURE-----

#4 lore raw
Quoted 2 lines · you

What other USB options do you have turned on?

Here's everything either modules or compiled in. Currently with the hid/mouse stuff compiled in:
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_UHCI=y
CONFIG_USB_STORAGE=m
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_VISOR=m

This patch is applied:
http://marc.theaimsgroup.com/?l=linux-kernel&m=101735261202744

Quoted 2 lines

What modules do you have loaded?

Mainly alsa, bttv and lm_sensors. I know, I know NVdriver. But it doesn't make any difference without loading it.

tvmixer                 3712   0
tuner                   8356   1 (autoclean)
tvaudio                11200   0 (autoclean) (unused)
msp3400                14480   1 (autoclean)
bttv                   67488   0
videodev                5664   3 [bttv]
i2c-algo-bit            7180   1 [bttv]
snd-mixer-oss           9152   0
snd-pcm-oss            36004   1
snd-emu10k1            56228   3
snd-pcm                49472   0 [snd-pcm-oss snd-emu10k1]
snd-timer              10432   0 [snd-pcm]
snd-hwdep               3712   0 [snd-emu10k1]
snd-rawmidi            12864   1 [snd-emu10k1]
snd-seq-device          3920   0 [snd-emu10k1 snd-rawmidi]
snd-util-mem            1232   0 [snd-emu10k1]
snd-ac97-codec         23236   0 [snd-emu10k1]
snd                    25704   1 [snd-mixer-oss snd-pcm-oss snd-emu10k1 

snd-pcm snd-timer snd-hwdep snd-rawmidi snd-seq-device snd-util-mem snd-ac97-codec]
soundcore 3684 7 [tvmixer snd]
NVdriver 989184 10

usb-storage            20988   0 (unused)
analog                  7488   0 (unused)
emu10k1-gp              1248   0 (unused)
gameport                1548   0 [analog emu10k1-gp]
via686a                 7812   0 (unused)
i2c-proc                6368   0 [via686a]
i2c-isa                 1220   0 (unused)
i2c-viapro              3848   0 (unused)
i2c-core               12960   0 [tvmixer tuner tvaudio msp3400 bttv 
i2c-algo-bit via686a i2c-proc i2c-isa i2c-viapro]
nls_iso8859-1           2848   2 (autoclean)
nls_cp437               4384   2 (autoclean)
vfat                    9532   2 (autoclean)
fat                    29816   0 (autoclean) [vfat]
Signature · 4 lines
Oliver Feiler  <kiza@(gmx(pro).net|lionking.org|claws-and-paws.com)>
http://www.lionking.org/~kiza/  <--   homepage
PGP-key ID 0x561D4FD2    --> /pgpkey.shtml
http://www.lionking.org/~kiza/journal/
#5 lore raw
In reply to Brad Hards
Quoted 18 lines · Brad Hards

Hash: SHA1

Quoted 10 lines · Oliver Feiler

Hm, seems so. The relevant options I used are:

CONFIG_INPUT=y
# CONFIG_INPUT_KEYBDEV is not set
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=m

Quoted 5 lines

CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_UHCI=y
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y

Quoted 7 lines

What other USB options do you have turned on?

What modules do you have loaded?

Vojtech: We need that /proc support for input to help with problems like this. Any chance of merging it in 2.4.20-pre?

I'll try.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs