[gpm]gpm with USB mouse and devfs
Frank Hammond
frankham69@hotmail.com
Mon, 2 Dec 2002 06:53:58 +1100
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C299CF.96F1BC60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ciao Alessandro (& Hi to all on the list),
Thanks for you reply and apologies for my double send of the email =
(accident) and the text-only email suggestion you made is happily taken =
on board! :)
Unfortunately I still have the problem and after looking over my =
configuration files and doing some testing of other modules autoloading, =
they appear fine; (but then i'm a nOOb, so what would I know =3D)
A modprobe -c (for my default settings) shows the following relevant =
lines:
alias char-major-13 input
alias char-major-13-32 mousedev
My devfsd.conf file has the following changed from it's defaults:
1. Full compatibility mode for old device names Disabled (Using native =
devfs device names only)
2. USB Mouse section has /dev/input/mice$ REGISTER/UNREGISTER enabled =
(/dev/input/mouse* disabled)
3. Module Autoloading setting is on by default so that has been left as =
is
The autogenerated modules.devfs has the relevant entry:
# Input Devices
alias /dev/input/mouse* mousedev
My /etc/mouse/sysconfig file has the MDEVICE set to /dev/input/mice
I have created a modules.conf to make the correct modules for my mouse =
autoload in time for gpm to pick it up as follows:
alias char-major-13-63 mousedev (<----don't even think this is =
needed if I have the alias /dev/input/mice mousedev?)
alias /dev/input/mice mousedev
pre-install mousedev modprobe usb-uhci && modprobe hid
The error I get is:
oops(): [/usr/src/gpm-1.20.0/src/gpm.c(936)]: Could not open =
/dev/input/mice.
If I modprobe mousedev it works, but if I just let the system boot up (& =
gpm is in the startup script just before login) the devices don't get =
autoloaded when the gpm program calls for /dev/input/mice.
I hope someone has some suggestions!
Cheers,
Frank
----- Original Message -----=20
From: "Alessandro Rubini" <rubini@gnu.org>
To: <frankham69@hotmail.com>; <gpm@lists.linux.it>
Sent: Sunday, December 01, 2002 8:03 PM
Subject: Re: [gpm]gpm with USB mouse and devfs
>=20
> > to "imps2"). The error I get is a "Device /dev/input/mice not =
found".=20
>=20
> I'd better like to see errno used, so the message is more specific and
> standardized in language (Nico, do you agree?).
>=20
> Regardless, the error is in the open() call, because there is no such
> device registered in the kernel. However, how could the system
> know what device is associated to /dev/input/mice?
>=20
> > If I have modprobe usb-uhci, input, hid and mousedev statements=20
> > somewhere in my rc startup scripts, the mouse driver loads and gpm =
works=20
> > perfectly,
>=20
> Good. Then you just need to load those modules automatically. But this
> is better done when the USB device is plugged than at open time. In
> any case, what you need is setting up /etc/modules.conf with the right
> information for autoload to happen.
>=20
> It's not a gpm problem. Still, if anyone has a reply, that is welcome.
>=20
> /alessandro, not autoloading modules to keep his life simple
>=20
> > ------=3D_NextPart_000_0060_01C298CB.F2D19640
> > Content-Type: text/html;
>=20
> PS: please avoid sending two copies of your mail message. The html is
> definitely unneeded and exceedingly long. You should configure your =
mailer
> to only send the text version of your messages.
>=20
> --=20
> Alessandro Rubini, free software specialist.
> Device drivers, embedded systems, courses.
> http://ar.linux.it/
> _______________________________________________
> gpm mailing list
> gpm@lists.linux.it
> http://lists.linux.it/listinfo/gpm
>=20
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002
------=_NextPart_000_0006_01C299CF.96F1BC60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ciao Alessandro (& Hi to all on the =
list),</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for you reply and apologies for =
my double=20
send of the email (accident) and the text-only email suggestion you =
made is=20
happily taken on board! :)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Unfortunately I still have the problem =
and after=20
looking over </FONT><FONT face=3DArial size=3D2>my configuration =
files and=20
doing some testing of other modules autoloading, they appear fine; (but =
then i'm=20
a nOOb, so what would I know =3D)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>A modprobe -c (for my default =
settings) shows=20
the following relevant lines:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>alias char-major-13 input</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>alias char-major-13-32 =
mousedev</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>My devfsd.conf file has the following =
changed from=20
it's defaults:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1. F<FONT size=3D2>ull =
compatibility mode for=20
old device names Disabled (Using native devfs device names=20
only)</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2. USB Mouse section has =
/dev/input/mice$=20
REGISTER/UNREGISTER enabled (/dev/input/mouse* disabled)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3. Module Autoloading setting is on by =
default so=20
that has been left as is</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The autogenerated modules.devfs has the =
relevant=20
entry:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> # Input =
Devices</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> alias =
/dev/input/mouse*=20
mousedev</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>My /etc/mouse/sysconfig file has the =
MDEVICE set to=20
/dev/input/mice</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have created a modules.conf to =
make the=20
correct modules for my mouse autoload in time for gpm to pick it up as=20
follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2><FONT face=3DArial =
size=3D2><FONT=20
size=3D2> alias char-major-13-63 mousedev =
(<----don't=20
even think this is needed if I have the alias /dev/input/mice=20
mousedev?)</FONT></FONT></DIV>
<DIV> alias /dev/input/mice =
mousedev</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2> =
pre-install=20
mousedev modprobe usb-uhci && modprobe hid</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The error I get is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> oops():=20
[/usr/src/gpm-1.20.0/src/gpm.c(936)]: Could not open=20
/dev/input/mice.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>If I modprobe mousedev it works, but if =
I just let=20
the system boot up (& gpm is in the startup script just before=20
login) the devices don't get autoloaded when the gpm program calls =
for=20
/dev/input/mice.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I hope someone has some =
suggestions!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Cheers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Frank</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D2> </DIV></FONT></FONT>
<DIV><FONT size=3D2><FONT face=3DArial></FONT> </DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Alessandro Rubini" <</FONT><A =
href=3D"mailto:rubini@gnu.org"><FONT face=3DArial=20
size=3D2>rubini@gnu.org</FONT></A><FONT face=3DArial =
size=3D2>></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: <</FONT><A=20
href=3D"mailto:frankham69@hotmail.com"><FONT face=3DArial=20
size=3D2>frankham69@hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>>;=20
<</FONT><A href=3D"mailto:gpm@lists.linux.it"><FONT face=3DArial=20
size=3D2>gpm@lists.linux.it</FONT></A><FONT face=3DArial =
size=3D2>></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Sunday, December 01, 2002 8:03=20
PM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: Re: [gpm]gpm with USB mouse =
and=20
devfs</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>> <BR>> > to "imps2"). The =
error I get is=20
a "Device /dev/input/mice not found". <BR>> <BR>> I'd better like =
to see=20
errno used, so the message is more specific and<BR>> standardized in =
language=20
(Nico, do you agree?).<BR>> <BR>> Regardless, the error is in the =
open()=20
call, because there is no such<BR>> device registered in the =
kernel. =20
However, how could the system<BR>> know what device is associated to=20
/dev/input/mice?<BR>> <BR>> > If I have modprobe usb-uhci, =
input, hid=20
and mousedev statements <BR>> > somewhere in my rc startup =
scripts, the=20
mouse driver loads and gpm works <BR>> > perfectly,<BR>> =
<BR>> Good.=20
Then you just need to load those modules automatically. But this<BR>> =
is=20
better done when the USB device is plugged than at open time. =
In<BR>>=20
any case, what you need is setting up /etc/modules.conf with the =
right<BR>>=20
information for autoload to happen.<BR>> <BR>> It's not a gpm =
problem.=20
Still, if anyone has a reply, that is welcome.<BR>> <BR>> =
/alessandro, not=20
autoloading modules to keep his life simple<BR>> <BR>> >=20
------=3D_NextPart_000_0060_01C298CB.F2D19640<BR>> > Content-Type: =
text/html;<BR>> <BR>> PS: please avoid sending two copies of your =
mail=20
message. The html is<BR>> definitely unneeded and exceedingly long. =
You=20
should configure your mailer<BR>> to only send the text version of =
your=20
messages.<BR>> <BR>> -- <BR>> Alessandro Rubini, free software=20
specialist.<BR>> Device drivers, embedded systems, courses.<BR>> =
</FONT><A=20
href=3D"http://ar.linux.it/"><FONT face=3DArial=20
size=3D2>http://ar.linux.it/</FONT></A><BR><FONT face=3DArial =
size=3D2>>=20
_______________________________________________<BR>> gpm mailing =
list<BR>>=20
</FONT><A href=3D"mailto:gpm@lists.linux.it"><FONT face=3DArial=20
size=3D2>gpm@lists.linux.it</FONT></A><BR><FONT face=3DArial =
size=3D2>> </FONT><A=20
href=3D"http://lists.linux.it/listinfo/gpm"><FONT face=3DArial=20
size=3D2>http://lists.linux.it/listinfo/gpm</FONT></A><BR><FONT =
face=3DArial=20
size=3D2>> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><BR>---<BR>Outgoing mail is certified =
Virus=20
Free.<BR>Checked by AVG anti-virus system (<A=20
href=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: =
6.0.423 /=20
Virus Database: 238 - Release Date: =
25/11/2002</FONT></DIV></BODY></HTML>
------=_NextPart_000_0006_01C299CF.96F1BC60--