9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* 3-button mice and clearing dtr
@ 1996-12-09 17:25 rob
  0 siblings, 0 replies; 10+ messages in thread
From: rob @ 1996-12-09 17:25 UTC (permalink / raw)


The best way to adjust if your mouse at work is a Sun optical mouse is to replace
the mouse at work.  Logitech, and I'm sure others, make Sun-compatible mice 
that don't hurt your hand.

-rob




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-06  9:11 David
  0 siblings, 0 replies; 10+ messages in thread
From: David @ 1996-12-06  9:11 UTC (permalink / raw)


In article <199612031759.RAA07070@phantom.cegelecproj.co.uk>, you wrote:
 >On the subject of mice in general, does anyone make an
 >optical mouse for PCs? Being used to a Sun at work means
 >that whenever I'm trying to B2-click on a command (in
 >Wily, as it happens), the button-press moves my home mouse
 >slightly, resulting in a non-null selection.


	I don't know about current models, but I've gone
	out and hunted down some old mouse systems optical
	mice. The ones I've found have all been of the 3
	button variety and some places will practically
	give them to you if you can find them.


-- 
davids@davids.psyberlink.net
    Steinberger:            
State of the Instrument     





^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-03 17:59 Steve_Kilbane
  0 siblings, 0 replies; 10+ messages in thread
From: Steve_Kilbane @ 1996-12-03 17:59 UTC (permalink / raw)


On the subject of mice in general, does anyone make an
optical mouse for PCs? Being used to a Sun at work means
that whenever I'm trying to B2-click on a command (in
Wily, as it happens), the button-press moves my home mouse
slightly, resulting in a non-null selection.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-03 12:32 miller
  0 siblings, 0 replies; 10+ messages in thread
From: miller @ 1996-12-03 12:32 UTC (permalink / raw)


An even simpler way to initialise a dtr-switchable mouse is to replace the
aux/mouse command in /bin/termrc with

  { echo serial$mouseport >'#b/mousectl'; echo d0 } >/dev/eia$mouseport^ctl

The bad news is that this causes the kernel to panic.  (Don't try this at home.)

The good news is that the panic can be averted by a one-line change to
uartspecial() in /sys/src/9/pc/devuart.c:

602c602
<	up->oq = oq;
---
>	if (oq) up->oq = oq;

-- Richard Miller




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-03 10:10 David
  0 siblings, 0 replies; 10+ messages in thread
From: David @ 1996-12-03 10:10 UTC (permalink / raw)


> Stuff about dtr controlled mouses...
> ...
> > 
> > A sensible solution would probably require adding a new parameter
> > to aux/mouse, and to routines serialmouse() and uartspecial() in the
> > kernel.  Or buying a proper three-button mouse.
> 
> 	You an also adopt the bloody, hardware-based solution :-)
> 
> 	Borja.
> 

Been there, done that. I added uartdtrmouse() in place of
uartspecial(), added a message to tell aux/mouse it's a dtr
mouse and ripped the guts out of aux/mouse so it doesn't
faf around trying to work out what sort of mouse it's got.

If anyone's interested, I can wrap it up and send it as
a Christmas pressie to 9fans.

DJ




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-03 10:08 David
  0 siblings, 0 replies; 10+ messages in thread
From: David @ 1996-12-03 10:08 UTC (permalink / raw)


> Stuff about dtr controlled mouses...
> ...
> > 
> > A sensible solution would probably require adding a new parameter
> > to aux/mouse, and to routines serialmouse() and uartspecial() in the
> > kernel.  Or buying a proper three-button mouse.
> 
> 	You an also adopt the bloody, hardware-based solution :-)
> 
> 	Borja.
> 

Been there, done that. I added uartdtrmouse() in place of
uartspecial(), added a message to tell aux/mouse it's a dtr
mouse and ripped the guts out of aux/mouse so it doesn't
faf around trying to work out what sort of mouse it's got.

If anyone's interested, I can wrap it up and send it as
a Christmas pressie to 9fans.

DJ




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-02 11:38 Borja
  0 siblings, 0 replies; 10+ messages in thread
From: Borja @ 1996-12-02 11:38 UTC (permalink / raw)


> 
> If your mouse is like mine, and reverts to 2-button behaviour
> if dtr is reasserted, you'll find that the suggestion from
> forsyth@plan9.cs.york.ac.uk:
> 
> > change aux/mouse.c
> >
> > add a timedwrite(ctl, "d0", 2)
> 
> doesn't do the trick.  aux/mouse finishes by writing a "serial ..."
> command to /dev/mousectl, which causes the kernel to raise dtr
> and then lock the serial port so it can't be changed again.
> 
> A sensible solution would probably require adding a new parameter
> to aux/mouse, and to routines serialmouse() and uartspecial() in the
> kernel.  Or buying a proper three-button mouse.

	You an also adopt the bloody, hardware-based solution :-)

	Borja.

-- 
***********************************************************************
Borja Marcos                    * Internet: borjam@we.lc.ehu.es
Alangoeta, 11 1 izq             *           borjam@well.com
48990 - Algorta (Vizcaya)       * CompuServe: 100015,3502
SPAIN                           *
***********************************************************************
(c)1995 by the author.
This message cannot be transferred to the Microsoft(tm) Network.






^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-12-01 14:09 miller
  0 siblings, 0 replies; 10+ messages in thread
From: miller @ 1996-12-01 14:09 UTC (permalink / raw)


If your mouse is like mine, and reverts to 2-button behaviour
if dtr is reasserted, you'll find that the suggestion from
forsyth@plan9.cs.york.ac.uk:

> change aux/mouse.c
>
> add a timedwrite(ctl, "d0", 2)

doesn't do the trick.  aux/mouse finishes by writing a "serial ..."
command to /dev/mousectl, which causes the kernel to raise dtr
and then lock the serial port so it can't be changed again.

A sensible solution would probably require adding a new parameter
to aux/mouse, and to routines serialmouse() and uartspecial() in the
kernel.  Or buying a proper three-button mouse.

A quicker and dirtier way is:

1. Insert at the end of uartspecial() in /sys/src/9/pc/devuart.c:
		{ char *p;
		  if (iq == &mouseq && (p = getconf("mousedtr")))
			uartdtr(up, strtoul(p, 0, 0));
		}
   and rebuild the kernel.

2. Insert into the plan9.ini configuration file the line
		mousedtr=0

3. In the /bin/termrc shell script, replace the line
		aux/mouse $mouseport
   with
		echo serial$mouseport >'#b/mousectl'

This works for me.

-- Richard Miller




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-11-30 14:43 forsyth
  0 siblings, 0 replies; 10+ messages in thread
From: forsyth @ 1996-11-30 14:43 UTC (permalink / raw)


change aux/mouse.c

add a timedwrite(ctl, "d0", 2)
in a suitable place; possibly at the start of C() if the mouse
keeps to that setup protocol; alternatively, before setting up
the default using -dC.


------ original message follows ------

>From cse.psu.edu!owner-9fans Sat Nov 30 14:20:23 GMT 1996
Received: from localhost (majordom@localhost) by cse.psu.edu (8.7.5/8.7.3) with SMTP id JAA06542; Sat, 30 Nov 1996 09:01:39 -0500 (EST)
Received: by claven.cse.psu.edu (bulk_mailer v1.5); Sat, 30 Nov 1996 08:57:45 -0500
Received: (from majordom@localhost) by cse.psu.edu (8.7.5/8.7.3) id IAA06495 for 9fans-outgoing; Sat, 30 Nov 1996 08:57:38 -0500 (EST)
X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f
Received: from extra.ucc.su.OZ.AU (root@extra.ucc.su.OZ.AU [129.78.64.4]) by cse.psu.edu (8.7.5/8.7.3) with SMTP id IAA06491 for <9fans@cse.psu.edu>; Sat, 30 Nov 1996 08:57:28 -0500 (EST)
Received: from extro.su.OZ.AU (301@extro.ucc.su.OZ.AU [129.78.64.1]) by extra.ucc.su.OZ.AU (8.6.12/8.6.12) with ESMTP id AAA07784 for <9fans@cse.psu.edu>; Sun, 1 Dec 1996 00:56:02 +1100
Received: by extro.su.OZ.AU (SMI-8.6/SMI-SVR4)
	id AAA16230; Sun, 1 Dec 1996 00:56:01 +1100
Date: Sun, 1 Dec 1996 00:56:01 +1100
From: kajrij@mail.usyd.edu.au (Kajri Jain)
Message-Id: <199611301356.AAA16230@extro.su.OZ.AU>
To: 9fans@cse.psu.edu
Subject: 3-button mice and clearing dtr
Sender: owner-9fans@cse.psu.edu
Reply-To: 9fans@cse.psu.edu
Precedence: bulk

my mouse requires that dtr be clear to operate as a three button mouse.
it then uses the mouse systems protocol.

how can i get to work properly with my standalone pc plan9?

many thanks
-abhay




^ permalink raw reply	[flat|nested] 10+ messages in thread

* 3-button mice and clearing dtr
@ 1996-11-30 13:56 Kajri
  0 siblings, 0 replies; 10+ messages in thread
From: Kajri @ 1996-11-30 13:56 UTC (permalink / raw)


my mouse requires that dtr be clear to operate as a three button mouse.
it then uses the mouse systems protocol.

how can i get to work properly with my standalone pc plan9?

many thanks
-abhay




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1996-12-09 17:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-09 17:25 3-button mice and clearing dtr rob
  -- strict thread matches above, loose matches on Subject: below --
1996-12-06  9:11 David
1996-12-03 17:59 Steve_Kilbane
1996-12-03 12:32 miller
1996-12-03 10:10 David
1996-12-03 10:08 David
1996-12-02 11:38 Borja
1996-12-01 14:09 miller
1996-11-30 14:43 forsyth
1996-11-30 13:56 Kajri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).