gpm question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Thomas Mondoshawan Tate
Date:  
Subject: gpm question
--qMm9M+Fa2AknHoGS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 10, 2001 at 07:47:44AM -0800, jtannenba wrote:
> Hi all,
>=20
> I recently tried Mandrake 8.1 (been using RH 6.1).
> Twas not a great exprience. Main problem: could not
> get a mouse cursor in X.
>=20
> Reloaded with Deb 2.2r4 and X works fine unless
> I had gpm running prior to calling X. Then the
> mouse cursor is there but won't work. Killing
> gpm makes it start working.
>=20
> I didn't have to do this with RH 6.1, so my question
> is how did RH handle it so it worked in X?


Simple: start GPM with the repeater flag (-R <repeater type>). This will
cause GPM to open the /dev/<mouse_dev> device for reading, interpret the
commands as it normally would, but also repeat the commands verbatim to
/dev/gpmdata.

The reason why X didn't work while GPM was running prior to starting X was
because GPM opened the /dev/<mouse_dev> device first. Under Linux, only the
first program that opens a device for reading and/or writing gets the
privelege of reading and/or writing to it.

Have a look at the gpm(8) manpage for more information.

--=20
Thomas "Mondoshawan" Tate

http://tank.dyndns.org

--qMm9M+Fa2AknHoGS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8FNvrYp5mUsPGjjwRAp4IAJ9LUb97aQQOiLstY3HHEH1xNTD+FACaAgyK
ilW1BrErXPhTr7uSfD+K0ds=
=6Ahi
-----END PGP SIGNATURE-----

--qMm9M+Fa2AknHoGS--