On Wed, May 16, 2001 at 04:32:10PM +0100, Vivek Dasmohapatra wrote: > On Wed, 16 May 2001, Wenzhuo Zhang wrote: > > > > Im running debian 2.2 on a IBM Thinkpad i1200. The kernel detects a ps/2 > > > mouse port. I installed gpm, wich works on the console. > [cut] > > > I tried several setting in XF86Setup and xf86config to get the mouse > > > running under X. The only thing that works is > [cut] > > Try > > Protocol "PS/2" > > Device "/dev/psaux" > > No. Only one thing can grab the psaux device at a time,
Yes. > so at best this > will be flaky. No. >You may need to pass extra options to gpm, or repeat it in > a different protocol. Recent gpm versions (or maybe it's done this all along) will release the mouse when you're not in X. I've got a couple systems with PS/2 mice, and gpm/X don't have any problems interacting. Both X and gpm are reading from /dev/psaux. If you don't believe this, then use strace on GPM, and observe that it close(2)s the mouse device when you switch back to X, and reopens it when you switch to a console. -- #define X(x,y) x##y Peter Cordes ; e-mail: X([EMAIL PROTECTED] , ns.ca) "The gods confound the man who first found out how to distinguish the hours! Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BCE

