Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usmouse wants keybdrv
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
o_florian
n00b
n00b


Joined: 12 Nov 2002
Posts: 9
Location: Berlin, Germany

PostPosted: Fri Dec 20, 2002 8:45 pm    Post subject: usmouse wants keybdrv Reply with quote

A little Problem :
I was using Gentoo 1.4-rc1 with kernel 2.4.19 until recently,
everything was working fine including the USB-Logitech Trackman Marble

after an emerge system, which gave me new modutils and the
2.4.20 kernel, which I have not compiled right then, I got problems
loading the usbmouse module at startup.

using 'modprobe usbmouse' gave me :
" can't find keybdrv, which is needed for usbmouse. "
the module loaded fine when I used insmod, and the Trackball worked
in gpm and X.

Now I have compiled the new kernel too, but the Problem remains,
usbmouse wants keybdrv, but with insmod there is no problem.
_________________
Some people claim that the UNIX learning
curve is steep, but at least you only have to
climb it once.
Back to top
View user's profile Send private message
chines
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 90
Location: Argentina

PostPosted: Mon Jan 06, 2003 8:11 pm    Post subject: Reply with quote

use mousedev, don't use usbmouse

modprobe input
modprobe mousedev

compile USB support and human interface support as a modules, my usb mouse works that way
Back to top
View user's profile Send private message
o_florian
n00b
n00b


Joined: 12 Nov 2002
Posts: 9
Location: Berlin, Germany

PostPosted: Fri Jan 10, 2003 6:39 am    Post subject: Reply with quote

will try,

the interesting thing was, that I had compiled the keybdev into
the kernel, and the mouse-support as module, but depmod searched
still for the module.
_________________
Some people claim that the UNIX learning
curve is steep, but at least you only have to
climb it once.
Back to top
View user's profile Send private message
chines
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 90
Location: Argentina

PostPosted: Fri Jan 10, 2003 12:13 pm    Post subject: Reply with quote

That is because you have selected this two options under USB HID Support:

USB HIDBP Keyboard and
USB HIDBP Mouse when you compile your kernel, unmark those options, compile USB Human Interface Device as a Module

Then go to Input Core Support and select

Input core support
Keyboard Support
Mouse Support

Bye
Back to top
View user's profile Send private message
McManus
Apprentice
Apprentice


Joined: 10 Apr 2002
Posts: 176
Location: Austin, TX

PostPosted: Mon Jan 13, 2003 2:28 pm    Post subject: Reply with quote

Hmm... I am having similar problems... but I did everything you told me, and it still doesn't work. Do I need 'HID input layer support' compiled as a module, as well? Also, should the Input Core options (mouse, keybd, input core support)be compiled as modules as well, or compiled-into the kernel?

Thanks!
_________________
McManus
----
Linux user #267375 - http://counter.li.org
Back to top
View user's profile Send private message
chines
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 90
Location: Argentina

PostPosted: Mon Jan 13, 2003 2:39 pm    Post subject: Reply with quote

I have compiled as modules
Check that you have not selected under USB HID Support this two things

Code:

USB HIDBP Keyboard and
USB HIDBP Mouse


After that you have to load the modules with modprobe and add them to modules.autoload
Back to top
View user's profile Send private message
grzewho
l33t
l33t


Joined: 31 Dec 2002
Posts: 626
Location: /home/g

PostPosted: Wed Jan 15, 2003 8:24 pm    Post subject: Reply with quote

the same prob here. the modules are:
Code:

usbcore
usb-uhci
mousedev
input

when I run
Code:

modprobe hid

it searches for keybdev, but when i load hid using
Code:

insmod hid

everything goes well.
any suggestions?
Back to top
View user's profile Send private message
chines
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 90
Location: Argentina

PostPosted: Wed Jan 15, 2003 11:12 pm    Post subject: Reply with quote

On what kernel?
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Thu Jan 16, 2003 4:42 pm    Post subject: Reply with quote

It is modutils-2.4.22
There is a bug report at: https://bugs.gentoo.org/show_bug.cgi?id=11886

You could replace 2.4.22 with 2.4.20 and that will fix it, but you will have to watch your updates.
Or you could just add insmod hid to your /etc/conf.d/local.start for the time being. That is what I did.

Doesn't seem to have been any work done on the bug in awhile.
Might want to add your two cents.
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Tue Mar 25, 2003 8:16 pm    Post subject: Reply with quote

hi there,
i tried to install my usb mouse with the help of several threads and this tutorial: https://forums.gentoo.org/viewtopic.php?t=79
but it doesn't work: i always get "failed to load input" and "failed to load usb-uhci". even after downgrade of modutils to 2.4.20. it doesnt matter if i compile input and usb-uhci into the kernel or try to load as modules. when i enter insmod input i get init_module: device or resource busy; insmod usb-uhci : init_module: no such device.

thanks for help,
greetz
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Tue Mar 25, 2003 8:35 pm    Post subject: Reply with quote

Are you sure you need usb-uhci? What does dmesg say? Maybe you need to be using 'usb-ohci'

dmesg | less

Then look for which it is using.

You could also compile both usb-uhci and usb-ohci as modules and try insmod modulename to see which works.
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Wed Mar 26, 2003 3:44 pm    Post subject: Reply with quote

on the net it said usb-uhci is the right one for my board and i don't get an error message. but when he tries to load the input module it says:
Code:
input: unable to register char major 13<3>devfs_register(mice): could not append to parent, err: -17
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Wed Mar 26, 2003 5:39 pm    Post subject: Reply with quote

Check the /etc/devfsd.conf file. See if your section matches mine. Is some of the commented out or missing?

Code:
# Manage USB mouse
REGISTER        ^input/mouse0$   CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER      ^input/mouse0$   CFUNCTION GLOBAL unlink usbmouse
REGISTER        ^input/mice$     CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER      ^input/mice$     CFUNCTION GLOBAL unlink usbmouse
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Wed Mar 26, 2003 9:16 pm    Post subject: Reply with quote

crap, my /etc/devfsd.conf looks like yours. i searched on the web and found this: http://lister.fornax.hu/pipermail/swsusp/2003-February/001654.html
do you think that would solve my problem? i tried to apply the patch but i got an error. i tried it with cat file.diff | -p and then i entered the path to the file but i got an error in line 1xx, i don't remember. do i have to edit the file that should be patched (hub.c)?
xcuse me, im an absolute linux newb but linux rules and better to be late than never :P

sorry for my bad english and big thanx for your patience!!
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Wed Mar 26, 2003 11:05 pm    Post subject: Reply with quote

I don't think that link will help, your problem seems different. I didn't need any patches and Gentoo usb mouse worked right off the bat.

1) Does your Desktop boot up or does this error leave you in console mode? Might be a config problem with XF86Config. Cause X won't start if the mouse device isn't config correctly (usually, not always.)

2) If your using Lilo. Do you have the
Code:
 append="devfs=mount"
line in /etc/lilo.conf ? If using Grub I don't know how.

3) You do have devfs compiled in the kernel filesystems section correct?
Code:
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y


4) Here is parts of my usb section in the kernel. I use modules here.
Code:
# USB support
#
CONFIG_USB=y
......
CONFIG_USB_DEVICEFS=y  (don't think you need this)
......
CONFIG_USB_UHCI=m
......
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y

Then in input section:
Code:
CONFIG_INPUT=m
CONFIG_INPUT_MOUSEDEV=m


Code:

CONFIG_INPUT_MOUSEDEV

 Say Y here if you want your USB HID mouse (or ADB mouse handled by the input layer) to be accessible as char devices 13:32+ - /dev/input/mouseX and 13:63 - /dev/input/mice as an emulated ImPS/2 mouse. That way, all user space programs will be able to use your mouse.

This looks like it could be your problem cause the error. Input is unable to register char-major 13 (which is the input core) and devfs_register(mice) seems to be saying your mouse is what it couldn't register. In Devfs FAQ I found that 'could not append to parent, err: -17' means: -17 EEXIST or usually means that, and it attempted to create the (mice) but couldn't cause there was something already there, then goes on to say that error by itself is usually an annoyance and that is all. So I am looking only at the first part with the INPUT.


6) Then you might want to check your /etc/modules.autoload for loading the modules:
Code:
input
usb-uhci
hid
mousedev


I just haven't seen your problem before and suggesting a few things that look like you might have overlooked. I wasn't able to duplicate your problem by commenting out the things in /etc/devfsd.conf either.
Looks like your problem is more a config problem right now. Check this stuff out and let me know.

Is there any more to your error you can post if that doesn't work?
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Sat Mar 29, 2003 12:23 pm    Post subject: Reply with quote

ok, now i tried several things in the last days, printed tons of tutorials but nothing worked. so i decided to reinstall the whole system. i made exactly the same steps as the last time but this time the mouse worked strangefully.

anyway, big big thanx for your patience and for your help buddy!!!!

greetz, hulk
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Sat Mar 29, 2003 2:51 pm    Post subject: Reply with quote

Ya, it was a weird problem. Glad you got it working. Sometimes you just have to start over from square one. :D
Back to top
View user's profile Send private message
Graydon
n00b
n00b


Joined: 02 Apr 2003
Posts: 3

PostPosted: Wed Apr 02, 2003 10:32 pm    Post subject: Removing PS/2 mouse support Reply with quote

I've used emerge -u world, and my USB devices would also no longer be assigned to the HID. I have USB support built into the kernel (no modules for any of it - which also eliminates the problem of having both HID and HIDBP active).
I have read some other threads about this problem, and it seems that updating the modutils is causing the sh*t. Some people managed to solve it by either downgrading modutils, others tried different approaches with modules.
What worked for me was simply removing the PSMOUSE support from the Character Devices --> Mice --> PS/2 mouse and then a reboot. All was up and running again
I hope this helps other people out as well.

Graydon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum