Date: Wed, 4 Feb 1998 16:17:53 -0800 (PST) From: tom@wact.net To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/5655: can't get ps/2 mouse to work (after enabling it in kernel) Message-ID: <199802050017.QAA16723@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5655 >Category: kern >Synopsis: can't get ps/2 mouse to work (after enabling it in kernel) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: support >Submitter-Id: current-users >Arrival-Date: Wed Feb 4 16:20:02 PST 1998 >Last-Modified: >Originator: Tom Uffner >Organization: >Release: 2.2.5-Release >Environment: FreeBSD eris.chaos.org 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Sun Feb 1 15:50:25 EST 1998 tom@myname.my.domain:/usr/src/sys/compile/ERIS i386 >Description: can't get ps/2 mice to work in 2.2.5 on Compaq PC. when i start X the cursor just sits in the middle of the screen, mouse is totally unresponsive to moves or clicks. the hardware in question is: 3 PS/2 mice from 3 different vendors all of which work fine in Win95 & NT on the problem pc and worked with BSD 2.2.2 on another pc but not this one. Compaq Presario 4770 (Intel Pentium 200/MMX) booting freebsd from a scsi drive i eventually "fixed" it by giving up and installing a serial mouse, but that was only a short term solution... i need my serial port for something else and i want to use my 3 button optical mouse. i read the FAQ and mailing list archives, but nothing seemed appropriate. i notice that IRQ12 is disabled when the system boots but it looks like the psm0 code tries to reenable it. please help. i haven't hacked kernel code since SunOs 4.1.3 which is quite different, and i don't really have time to get familiar with it right now. tom # boot log, courtesy of dmesg Copyright (c) 1992-1997 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.5-RELEASE #0: Sun Feb 1 15:50:25 EST 1998 tom@myname.my.domain:/usr/src/sys/compile/ERIS Calibrating clock(s) ... i586 clock: 200509276 Hz, i8254 clock: 1193509 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency CLK_USE_I586_CALIBRATION not specified - using old calibration method CPU: Pentium (200.46-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x544 Stepping=4 Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> real memory = 67108864 (65536K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00235000 - 0x03ffdfff, 64786432 bytes (15817 pages) avail memory = 62537728 (61072K bytes) pcibus_setup(1): mode 1 addr port (0x0cf8) is 0x80000058 pcibus_setup(1a): mode1res=0x80000000 (0x80000000) pcibus_check: device 0 is there (id=70308086) Probing for devices on PCI bus 0: configuration mode 1 allows 32 devices. chip0 <Intel 82437VX PCI cache memory controller> rev 2 on pci0:0 PCI Concurrency: enabled Cache: 512K dual-bank pipelined-burst secondary; L1 enabled DRAM: no memory hole, 66 MHz refresh Read burst timing: x-3-3-3/x-4-4-4 Write burst timing: x-3-3-3 RAS-CAS delay: 3 clocks chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:1:0 I/O Recovery Timing: 8-bit 1 clocks, 16-bit 1 clocks Extended BIOS: disabled Lower BIOS: enabled Coprocessor IRQ13: enabled Mouse IRQ12: disabled Interrupt Routing: A: IRQ11, B: IRQ11, C: IRQ11, D: IRQ11 MB0: IRQ15, MB1: chip2 <Intel 82371SB IDE interface> rev 0 on pci0:1:1 mapreg[20] type=1 addr=00001020 size=0010. Primary IDE: enabled Secondary IDE: enabled pci0:1:2: Intel Corporation, device=0x7020, class=0x0c, subclass=0x03 int d irq 11 [no driver assigned] map(20): io(1000) vga0 <VGA-compatible display device> rev 4 int a irq 11 on pci0:2 mapreg[10] type=0 addr=40000000 size=4000000. de0 <Digital 21140A Fast Ethernet> rev 34 int a irq 11 on pci0:3 mapreg[10] type=1 addr=00001080 size=0080. mapreg[14] type=0 addr=44080000 size=0080. reg16: ioaddr=0x1080 size=0x80 de0: 21140A [10-100Mb/s] pass 2.2 de0: address 00:40:33:9f:10:8a ahc0 <Adaptec 2940 SCSI host adapter> rev 0 int a irq 11 on pci0:4 mapreg[10] type=1 addr=00001400 size=0100. mapreg[14] type=0 addr=44000000 size=1000. reg16: ioaddr=0x1400 size=0x100 using shared irq 11. ahc0: Reading SEEPROM...done. internal50 cable is present internal68 cable not present brdctl == 0x2c external cable not present eprom not present brdctl == 0x6c low byte termination enabled, high byte termination disabled ahc0: aic7870 Single Channel, SCSI Id=7, 16 SCBs ahc0: Resetting Channel A ahc0: Downloading Sequencer Program...ahc0: 366 instructions downloaded Done ahc0: Probing channel A ahc0 waiting for scsi devices to settle ahc0: target 0 synchronous at 10.0MHz, offset = 0xf (ahc0:0:0): "QUANTUM FIREBALL ST3.2S 0F0C" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 3090MB (6328861 512 byte sectors) sd0(ahc0:0:0): with 7068 cyls, 4 heads, and an average 223 sectors/track ahc0:A:4: refuses synchronous negotiation. Using asynchronous transfers (ahc0:4:0): "HP CD-Writer 6020 1.07" type 5 removable SCSI 2 cd0(ahc0:4:0): CD-ROM can't get the size pci0: uses 67113088 bytes of memory from 40000000 upto 4408007f. pci0: uses 400 bytes of I/O space from 1020 upto 14ff. Probing for devices on the ISA bus: sc0: the current keyboard controller command byte 0065 kbdio: DIAGNOSE status:0055 kbdio: TEST_KBD_PORT status:0000 kbdio: RESET_KBD return code:00fa kbdio: RESET_KBD status:00aa sc0 at 0x60-0x6f irq 1 on motherboard sc0: BIOS video mode:3 sc0: VGA registers upon power-up 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: video mode:24 sc0: VGA registers for mode:24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 not found at 0x2f8 sio2: disabled, not probed. sio3: disabled, not probed. lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface lpt1 not found at 0xffffffff mse0: disabled, not probed. psm0: current command byte:0065 kbdio: TEST_AUX_PORT status:0000 kbdio: RESET_AUX return code:00fa kbdio: RESET_AUX status:00aa kbdio: RESET_AUX ID:0000 psm: ENABLE_DEV return code:00fa psm: DISABLE_DEV return code:00fa psm: SEND_AUX_STATUS return code:00fa psm0: status after reset 00 02 64 psm: SEND_DEV_ID return code:00fa psm: device ID: 0000 psm: SET_RESOLUTION (0) 00fa psm: SET_SCALING11 return code:00fa psm: SET_SCALING11 return code:00fa psm: SET_SCALING11 return code:00fa psm: SEND_AUX_STATUS return code:00fa psm: status 00 00 64 (get_mouse_buttons) psm0: SET_DEFAULTS return code:00fa psm: SEND_AUX_STATUS return code:00fa psm0: status 00 02 64 psm0 at 0x60-0x64 irq 12 on motherboard psm0: device ID 0, 2 buttons fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <QUANTUM FIREBALL_TM3840A> wd0: 3681MB (7539840 sectors), 7480 cyls, 16 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): <CD-ROM CDU571-Q/1.0b>, removable, accel, dma, iordis wcd0: 1378Kb/sec, 128Kb cache, audio play, 256 volume levels, ejectable tray wcd0: 120mm audio disc loaded, unlocked scd0 not found at 0x230 npx0 flags 0x1 on motherboard npx0: INT 16 interface apm0 on isa apm: found APM BIOS version 1.1 sb0 at 0x220 irq 5 drq 1 on isa sb0: <SoundBlaster Pro 3.1> sbxvi0 not found sbmidi0 not found at 0x330 opl0 at 0x388 on isa opl0: <Yamaha OPL-3 FM> joy0 at 0x201 on isa joy0: joystick imasks: bio c000c840, tty c0031892, net c0031892 BIOS Geometries: 0:03a47f3f 0..932=933 cylinders, 0..127=128 heads, 1..63=63 sectors 1:0188fe3f 0..392=393 cylinders, 0..254=255 heads, 1..63=63 sectors 0 accounted for Device configuration finished. Considering FFS root f/s. configure() finished. sd0s1: type 0xb, start 63, end = 2088449, size 2088387 : OK sd0s2: type 0xa5, start 2088450, end = 6313544, size 4225095 : OK # ls -al /dev/{mouse,mse0,psm0} lrwxrwxrwx 1 root wheel 9 Jan 6 17:05 /dev/mouse -> /dev/psm0 crw------- 1 root wheel 27, 1 Jan 6 16:59 /dev/mse0 crw------- 1 root wheel 21, 1 Feb 1 16:06 /dev/psm0 # kernel config file (basically stripped down GENERIC) # $Id: GENERIC,v 1.77.2.12 1997/10/18 11:03:10 joerg Exp $ machine "i386" cpu "I586_CPU" cpu "I686_CPU" ident ERIS maxusers 10 options "CPU_FASTER_5X86_FPU" options INET #InterNETworking options FFS #Berkeley Fast Filesystem options NFS #Network Filesystem options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=5 options "MAXMEM=(64*1024)" options BOUNCE_BUFFERS #include support for DMA bounce buffers options UCONSOLE #Allow users to grab the console options FAILSAFE #Be conservative options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor config kernel root on sd0 controller isa0 controller eisa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 disk fd1 at fdc0 drive 1 tape ft0 at fdc0 drive 2 options "CMD640" # work around CMD640 chip deficiency controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 disk wd1 at wdc0 drive 1 controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd2 at wdc1 drive 0 disk wd3 at wdc1 drive 1 options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device wcd0 #IDE CD-ROM # A single entry for any of these controllers (ncr, ahb, ahc, amd) is # sufficient for any number of installed devices. controller ahc0 controller scbus0 device sd0 device od0 #See LINT for possible `od' options. device st0 device cd0 #Only need one of these, the code dynamically grows device scd0 at isa? port 0x230 bio # syscons is the default console driver, resembling an SCO console device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr # Mandatory, don't remove device npx0 at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr device apm0 at isa? # Advanced Power Management options APM_BROKEN_STATCLOCK # Workaround some buggy APM BIOS device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr device sio3 at isa? disable port "IO_COM4" tty irq 9 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device lpt1 at isa? port? tty device mse0 at isa? disable port 0x23c tty irq 5 vector mseintr device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr options PSM_CHECKSYNC #checks the header byte for sync options PSM_ACCEL=1 options PSM_DEBUG=2 # Order is important here due to intrusive probes, do *not* alphabetize # this list of network interfaces until the probes have been fixed. # Right now it appears that the ie0 must be probed before ep0. See # revision 1.20 of this file. device de0 pseudo-device loop pseudo-device ether pseudo-device log pseudo-device sl 1 # ijppp uses tun instead of ppp device #pseudo-device ppp 1 pseudo-device vn 1 pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's # KTRACE enables the system-call tracing facility ktrace(2). # This adds 4 KB bloat to your kernel, and slightly increases # the costs of each syscall. options KTRACE #kernel tracing # This provides support for System V shared memory. # options SYSVSHM options SYSVSEM options SYSVMSG # Controls all sound devices controller snd0 device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr device sbxvi0 at isa? drq 5 device sbmidi0 at isa? port 0x330 device opl0 at isa? port 0x388 options "SBC_IRQ=5" device joy0 at isa? port IO_GAME # a bit of my /etc/Xf86Config # File generated by xf86config. # ********************************************************************** # Keyboard section # ********************************************************************** Section "Keyboard" Protocol "Standard" AutoRepeat 500 5 # To set the LeftAlt to Meta, RightAlt key to ModeShift, # RightCtl key to Compose, and ScrollLock key to ModeLock: LeftAlt Meta RightAlt ModeShift # RightCtl Compose # ScrollLock ModeLock # To disable the XKEYBOARD extension, uncomment XkbDisable. XkbDisable XkbKeymap "xfree86(us)" EndSection # ********************************************************************** # Pointer section # ********************************************************************** Section "Pointer" Protocol "PS/2" Device "/dev/psm0" EndSection Section "Monitor" Identifier "kds17" VendorName "KDS" ModelName "KDS 17inch" HorizSync 30-70 VertRefresh 50-120 # [...] EndSection # Device configured by xf86config: Section "Device" Identifier "S3 Trio64V2/GX (generic)" VendorName "Unknown" BoardName "Unknown" #VideoRam 2048 EndSection # ********************************************************************** # Screen sections # ********************************************************************** # The Colour SVGA server Section "Screen" Driver "svga" Device "Generic VGA" #Device "S3 Trio64V2/GX (generic)" Monitor "kds17" Subsection "Display" Depth 8 #Modes "1024x768" "1280x1024" "800x600" "640x480" ViewPort 0 0 Virtual 320 200 #Virtual 1280 1024 EndSubsection EndSection # The 16-color VGA server Section "Screen" Driver "vga16" Device "Generic VGA" Monitor "kds17" Subsection "Display" Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection EndSection # The Mono server Section "Screen" Driver "vga2" Device "Generic VGA" Monitor "kds17" Subsection "Display" Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection EndSection # The accelerated servers (S3, Mach32, Mach8, 8514, P9000, AGX, W32, Mach64) Section "Screen" Driver "accel" Device "S3 Trio64V2/GX (generic)" Monitor "kds17" Subsection "Display" Depth 8 Modes "1024x768" "1280x1024" "800x600" "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 24 Modes "800x600" "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 32 Modes "800x600" "640x480" ViewPort 0 0 EndSubsection EndSection >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802050017.QAA16723>