How get IMPS/2 mouse to work with X

2007-06-14 Thread Douglas Allan Tutty
Hello,

I'm running OBSD on my IBM 486-DX4-100, 32MB ram.  It has S3 video so is
using the XFree86 version 3 driver, configured with xf86config.  All is
mostly well, except that I have a microsoft trackball (I think its
called a MS Intellimouse Explorer) mouse with a wheel attached to the
standard mouse aux port.  Using the wscons protocol and device the wheel
isn't recognized; wscons uses pmsi. pms(4) says that the pmsi will work
with wheel mice of the 'Intellimouse' breed.  However, I know from using
the mouse with X on debian that this mouse needs the IMPS/2 protocol to
get the wheel to work.

I don't use or need the mouse in the console, only for X.  I would like
to be able to point my XF86Config at the mouse port directly and tell it
to use the IMPS/2 protocol but I can't see how to to this or if it is
possible.  The /usr/X11R6/lib/X11/doc/README.mouse in the OpenBSD
section says that to get extended mouse protocols to connect to the raw
device /dev/psm0 but I don't see that under /dev nor in the MAKEDEV(4)
man page.  For all the mouse can also plug into USB, the computer
predates USB.

I'm running OBSD 4.0 since I downloaded it in May to try on this box
that will nolonger run Debian.  I want to get it all configured
(learning along the way) and then experience the OBSD upgrade to 4.1

Below, are my dmesg and XF86Config.

Thanks,

Doug.


OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 486DX4 (GenuineIntel 486-class)
cpu0: FPU,V86
real mem  = 33124352 (32348K)
avail mem = 21528576 (21024K)
using 429 buffers containing 1757184 bytes (1716K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(3b) BIOS, date 12/30/97, BIOS32 rev. 0 @ 0xfda82
apm0 at bios0: Power Management spec V1.1
apm0: AC unknown, no battery
apm0: flags 30101 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.0 @ 0xfdabd/0x800
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: WDC AC31200F
wd0: 16-sector PIO, LBA, 1222MB, 2503872 sectors
atapiscsi0 at wdc0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
wdc_atapi_intr: warning: reading only 0 of 36 bytes
wdc_atapi_intr: warning: reading only 14 of 18 bytes
cd0 at scsibus0 targ 0 lun 0: TOSHIBA, CD-ROM XM-5302TA, 1095 SCSI0 5/cdrom 
removable
wd0(wdc0:0:0): using BIOS timings
cd0(wdc0:0:1): using BIOS timings
ne2 at isa0 port 0x280/32 irq 9, NE2000 (RTL8019), address 00:00:b4:b5:16:45
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ed65 netmask ef65 ttymask ffe7
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



# File generated by xf86config.

#
# Copyright (c) 1995 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the Software),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Except as contained in this notice, the name of the XFree86 Project shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# XFree86 

Re: How get IMPS/2 mouse to work with X

2007-06-14 Thread Chris Cappuccio
You probably need ZAxisMapping to use the scroll wheel

Here's what I do (wsmouse abstracts usb/ps2/etc types):

Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol wsmouse
Option  Device /dev/wsmouse
Option  ZAxisMapping 4 5
EndSection

Douglas Allan Tutty [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm running OBSD on my IBM 486-DX4-100, 32MB ram.  It has S3 video so is
 using the XFree86 version 3 driver, configured with xf86config.  All is
 mostly well, except that I have a microsoft trackball (I think its
 called a MS Intellimouse Explorer) mouse with a wheel attached to the
 standard mouse aux port.  Using the wscons protocol and device the wheel
 isn't recognized; wscons uses pmsi. pms(4) says that the pmsi will work
 with wheel mice of the 'Intellimouse' breed.  However, I know from using
 the mouse with X on debian that this mouse needs the IMPS/2 protocol to
 get the wheel to work.
 
 I don't use or need the mouse in the console, only for X.  I would like
 to be able to point my XF86Config at the mouse port directly and tell it
 to use the IMPS/2 protocol but I can't see how to to this or if it is
 possible.  The /usr/X11R6/lib/X11/doc/README.mouse in the OpenBSD
 section says that to get extended mouse protocols to connect to the raw
 device /dev/psm0 but I don't see that under /dev nor in the MAKEDEV(4)
 man page.  For all the mouse can also plug into USB, the computer
 predates USB.
 
 I'm running OBSD 4.0 since I downloaded it in May to try on this box
 that will nolonger run Debian.  I want to get it all configured
 (learning along the way) and then experience the OBSD upgrade to 4.1
 
 Below, are my dmesg and XF86Config.
 
 Thanks,
 
 Doug.
 
 
 OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel 486DX4 (GenuineIntel 486-class)
 cpu0: FPU,V86
 real mem  = 33124352 (32348K)
 avail mem = 21528576 (21024K)
 using 429 buffers containing 1757184 bytes (1716K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(3b) BIOS, date 12/30/97, BIOS32 rev. 0 @ 0xfda82
 apm0 at bios0: Power Management spec V1.1
 apm0: AC unknown, no battery
 apm0: flags 30101 dobusy 0 doidle 1
 pcibios0 at bios0: rev 2.0 @ 0xfdabd/0x800
 pcibios0: pcibios_get_intr_routing - function not supported
 pcibios0: PCI IRQ Routing information unavailable.
 pcibios0: PCI bus #0 is the last bus
 bios0: ROM list: 0xc/0x8000
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 isa0 at mainbus0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pmsi0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pmsi0 mux 0
 vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
 wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 wdc0 at isa0 port 0x1f0/8 irq 14
 wd0 at wdc0 channel 0 drive 0: WDC AC31200F
 wd0: 16-sector PIO, LBA, 1222MB, 2503872 sectors
 atapiscsi0 at wdc0 channel 0 drive 1
 scsibus0 at atapiscsi0: 2 targets
 wdc_atapi_intr: warning: reading only 0 of 36 bytes
 wdc_atapi_intr: warning: reading only 14 of 18 bytes
 cd0 at scsibus0 targ 0 lun 0: TOSHIBA, CD-ROM XM-5302TA, 1095 SCSI0 5/cdrom 
 removable
 wd0(wdc0:0:0): using BIOS timings
 cd0(wdc0:0:1): using BIOS timings
 ne2 at isa0 port 0x280/32 irq 9, NE2000 (RTL8019), address 00:00:b4:b5:16:45
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 lpt0 at isa0 port 0x378/4 irq 7
 npx0 at isa0 port 0xf0/16: using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
 biomask ed65 netmask ef65 ttymask ffe7
 pctr: no performance counters in CPU
 dkcsum: wd0 matches BIOS drive 0x80
 root on wd0a
 rootdev=0x0 rrootdev=0x300 rawdev=0x302
 
 
 
 # File generated by xf86config.
 
 #
 # Copyright (c) 1995 by The XFree86 Project, Inc.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # copy of this software and associated documentation files (the Software),
 # to deal in the Software without restriction, including without limitation
 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
 # and/or sell copies of the Software, and to permit persons to whom the
 # Software is furnished to do so, subject to the following conditions:
 # 
 # The above copyright notice and this permission notice shall be included in
 # all copies or substantial portions of the Software.
 # 
 # THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 # THE XFREE86 

Re: How get IMPS/2 mouse to work with X

2007-06-14 Thread Douglas Allan Tutty
On Thu, Jun 14, 2007 at 09:46:10AM -0700, Chris Cappuccio wrote:
 You probably need ZAxisMapping to use the scroll wheel
 
 Here's what I do (wsmouse abstracts usb/ps2/etc types):
 
 Section InputDevice
 Identifier  Mouse0
 Driver  mouse
 Option  Protocol wsmouse
 Option  Device /dev/wsmouse
 Option  ZAxisMapping 4 5
 EndSection

My applogies, I sent the wrong version of XF86Config (I have several as
I tried to get the most out of the display _and_ get the wheel working).
The pointer section that matches the mouse trial is below.  Note that
this is the XFree version 3 since version 4 (and xorg) doesn't work
properly with my S3 video.

As I understand it from the man pages, wsmouse abstracts USB/ps2/ and
intellimouse but _not_ ImPS/2.  So the question is: can I get wsmouse to
pass the data raw (and not abstract anything) or ignore the mouse
altogehter and get a /dev/ entry to point X at?  With all the various
boxes I've used this mouse, I had to tell X to use protocol IMPS/2.

I tried with and without the Buttons line but the XFConfig man page
says that the buttons used for ZAxisMapping have to be taken into
consideration.  The mouse has 4 real buttons plus the wheel that acts
like a middle button, plus the wheel rolling events (one button for
each direction).

Thanks,

Doug.


Here's the pointer section:

# **
# Pointer section
# **

Section Pointer
Protocolwsmouse
Device  /dev/wsmouse

 try to get wheel to work
Buttons 7
ZAxisMapping 4 5

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#Protocol   Xqueue

# Baudrate and SampleRate are only for some Logitech mice
# or for the AceCad tablets which require 9600 baud

#BaudRate   9600
#SampleRate 150

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

Emulate3Buttons
Emulate3Timeout50

# ChordMiddle is an option for some 3-button Logitech mice

#ChordMiddle

EndSection