xRhino Linux Kernel - Bugs


Summary |  Forums |  Bugs |  Patches |  Lists |  Tasks |  Docs |  Surveys |  News |  Source |  Files | 

Submit A Bug | Open Bugs | Admin

[ Bug #57 ] Mouse not recognized under 2.2.21 pre1 xr7

Date:
2002-Jul-07 23:41
Submitted By:
ryan
Assigned To:
Nobody
Category:
usb
Priority:
5
Bug Group:
kernel bug
Resolution:
None
Summary:
Mouse not recognized under 2.2.21 pre1 xr7

Original Submission:
I'm using the binary release of pre1-xr7 that is posted on the ps2-linux web site.


When starting x windows, I get the following error:

"Cannot open mouse (No such device) /dev/mouse"

Looking in /dev, /dev/mouse is a symlink to /dev/usbmouse. /dev/usbmouse, in turn, is mapped to /dev/usbmouse0. And this is the entry for usbmouse0:

crw-r--r-- 1 root root 10, 32 Oct 12 2001 /dev/usbmouse0

The only other thing I noticed is that there's no mousedev.o module for 2.2.21-pre1-xr7 like there is in 2.2.1. However, it appears that it's set to be static instead of a module in config that comes with the source for 2.2.21 so that would account for it.

Add A Comment:

You Are NOT Logged In

Please log in, so followups can be emailed to you.

If you cannot login, then enter your email address here:

Followups

Comment Date By
i have the same problem im gonna try what maurky said...hopefully will work
2003-Oct-27 20:27neptune
I've upgraded from 2.2.1 too, and I have the same problem.

An easy way to make your mouse work is (from a root shell):

mkdir /dev/input/
mknod /dev/input/mice c 13 63
rm /dev/mouse
ln -s /dev/input/mice /dev/mouse

No X11 reconfiguration is needed because it uses "/dev/mouse" device, so now you can start x.

but if you want to back to 2.2.1, remeber to change /dev/mouse to /dev/usbmouse.

bye
maurky

2002-Jul-08 04:25maurky
Okay, I figured out what's going on. Well, not necessarily what's going on, but at least what I needed to do to make it work.

The problem seems to stem from the fact that the usbmouse0 device is expecting a device of major number 10, minor number 32.

However, it seems that HID mice are registered under major number 13, minor number 63.

Using mknod to create a new entry in dev (I used /dev/input/mouse0) with the proper major/minor numbers made it work okay. (naturally, you have to set your XGSConfig to point to the new dev entry)

Long story short: The code is fine, but you need to update your dev entries.

Let's hear it for late night debugging. :)
~Ryan
2002-Jul-08 03:32ryan
I tried rebuilding the source to use mousedev as a module instead of including it in the kernel, and I get the same error.2002-Jul-08 01:50ryan

Dependent on Task
summary

No Changes Have Been Made to This Bug