[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-current X keyboard vs wscons strangeness



As of yesterday I find that the -current I am running has some odd
keyboard behaviour in X. Everything seems fine in text mode, but
in X my cursor control pad has ceased to function correctly, and 
<ctrl><alt>F<n> no longer switches out of X. Previous to this I
had wscons and X working fine together.

I have to my knowledge captured all the latest wscons and X commits,
rebuilt kernel, userland and X from source and I have updated
termtypes.master, /etc/ttys. I have rerun XF86Setup a few times and I
have had no luck.

As an example, when I run xev I find that pressing the up arrow on the
cursor pad results in:

KeyPress event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2481917450, (171,143), root:(240,230),
    state 0x0, keycode 104 (keysym 0xff54, Down), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2481917450, (171,143), root:(240,230),
    state 0x0, keycode 104 (keysym 0xff54, Down), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2481917454, (171,143), root:(240,230),
    state 0x0, keycode 80 (keysym 0xff97, KP_Up), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2481917501, (171,143), root:(240,230),
    state 0x0, keycode 104 (keysym 0xff54, Down), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2481917501, (171,143), root:(240,230),
    state 0x0, keycode 104 (keysym 0xff54, Down), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2481917507, (171,143), root:(240,230),
    state 0x0, keycode 80 (keysym 0xff97, KP_Up), same_screen YES,
    XLookupString gives 0 characters:  ""

whereas pressing the up arrow on the numeric keypad produces the 
more reasonable sequence:

KeyPress event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2482587817, (62,127), root:(131,214),
    state 0x0, keycode 80 (keysym 0xff97, KP_Up), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 22, synthetic NO, window 0x2400001,
    root 0x26, subw 0x0, time 2482587867, (62,127), root:(131,214),
    state 0x0, keycode 80 (keysym 0xff97, KP_Up), same_screen YES,
    XLookupString gives 0 characters:  ""

This pretty much exhausts my X expertise. Does anyone have an inkling
as to what I have done to myself and how to get out of it?

My XF86Config, a startup message capture and dmesg are appended below.

.... Ken

# XF86Config auto-generated by XF86Setup
#
# Copyright (c) 1996 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 Project.
#

# See 'man XF86Config' for info on the format of this file

Section "Files"
   RgbPath    "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/X11R6/lib/X11/fonts/local"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "unix/:7101"
EndSection

Section "ServerFlags"
EndSection

Section "Keyboard"
   Protocol        "Standard"
   XkbRules        "xfree86"
   XkbModel        "pc101"
   XkbLayout       "us"
EndSection

Section "Pointer"
   Protocol        "wsmouse"
   Device          "/dev/wsmouse"
   Resolution      200
   Buttons         5
EndSection

Section "Monitor"
   Identifier      "Primary Monitor"
   VendorName      "Unknown"
   ModelName       "Unknown"
   HorizSync       30-97
   VertRefresh     50-160
   Modeline  "1280x1024" 157.50 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
EndSection

Section "Device"
   Identifier      "Primary Card"
   VendorName      "Unknown"
   BoardName       "Matrox Millennium G400 16MB"
EndSection

Section "Screen"
   Driver          "Accel"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   DefaultColorDepth 32
   SubSection "Display"
      Depth        8
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        32
      Modes        "1280x1024"
   EndSubSection
EndSection

Section "Screen"
   Driver          "SVGA"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   DefaultColorDepth 32
   SubSection "Display"
      Depth        8
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth        32
      Modes        "1280x1024"
   EndSubSection
EndSection

Section "Screen"
   Driver          "VGA16"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        4
      Modes        "1280x1024"
   EndSubSection
EndSection

Section "Screen"
   Driver          "VGA2"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        1
      Modes        "1280x1024"
   EndSubSection
EndSection

Section "Screen"
   Driver          "Mono"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        1
      Modes        "1280x1024"
   EndSubSection
EndSection

XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: January 8 2000
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: OpenBSD 2.8 
Configured drivers:
  SVGA: server for SVGA graphics adaptors (Patchlevel 1):
      NV1, STG2000, RIVA 128, RIVA TNT, RIVA TNT2, RIVA ULTRA TNT2,
      RIVA VANTA, RIVA ULTRA VANTA, RIVA INTEGRATED, GeForce 256,
      GeForce DDR, Quadro, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b,
      ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b,
      ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1,
      wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati,
      sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597,
      sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx,
      tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
      tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
      tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682,
      tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520,
      cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade,
      clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430,
      clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465,
      clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543,
      clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w,
      mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067,
      oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308,
      ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv,
      ark2000pv, ark2000mt, mx, realtek, s3_savage, s3_virge, AP6422, AT24,
      AT3D, s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200,
      ct65520, ct65525, ct65530, ct65535, ct65540, ct65545, ct65546,
      ct65548, ct65550, ct65554, ct65555, ct68554, ct69000, ct64200,
      ct64300, mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci,
      Voodoo Banshee, Voodoo3, smi, generic
Using wscons driver (version 3.32)
XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) XKB: rules: "xfree86"
(**) XKB: model: "pc101"
(**) XKB: layout: "us"
(**) Mouse: type: wsmouse, device: /dev/wsmouse, resolution: 200
(**) Mouse: buttons: 5
(**) SVGA: Graphics device ID: "Primary Card"
(**) SVGA: Monitor ID: "Primary Monitor"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/misc,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi,unix/:7101"
(--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd4000000, 0xd6000000
(--) SVGA: Linear framebuffer at 0xD4000000
(--) SVGA: MMIO registers at 0xD6000000
(--) checkDevMem: using aperture driver /dev/xf86
(--) SVGA: Video BIOS info block at 0x000c7c80
(--) SVGA: Video BIOS info block not detected!
(!!) SVGA: Unable to probe for video memory size.  Assuming 16 Meg.	Please specify the correct amount in the XF86Config file.	See the file README.MGA for details.
(--) SVGA: detected an SDRAM card
(--) SVGA: chipset:  mgag400
(--) SVGA: videoram: 16384k
(**) SVGA: Option "dac_8_bit"
(**) SVGA: Using 32 bpp, Depth 24, Color weight: 888
(--) SVGA: Maximum allowed dot-clock: 300.000 MHz
(**) SVGA: Mode "1280x1024": mode clock = 157.500
(--) SVGA: Virtual resolution set to 1280x1024
(--) SVGA: SpeedUp code selection modified because virtualX != 1024
(--) SVGA: Using hardware cursor
(--) SVGA: PLL reference freq: 27.050 MHz
(--) SVGA: Read OPTION 0x50040d20
(--) SVGA: Using XAA (XFree86 Acceleration Architecture)
(--) SVGA: XAA: Solid filled rectangles
(--) SVGA: XAA: Screen-to-screen copy
(--) SVGA: XAA: 8x8 color expand pattern fill
(--) SVGA: XAA: CPU to screen color expansion (TE/NonTE imagetext, TE/NonTE polytext)
(--) SVGA: XAA: Using 10 128x128 areas for pixmap caching
(--) SVGA: XAA: Caching tiles and stipples
(--) SVGA: XAA: General lines and segments
(--) SVGA: XAA: Dashed lines and segments
ioctl(WSMOUSEIO_SRES) failed (Inappropriate ioctl for device)
pinky being added to access control list
fetchmail: can't accept options while a background fetchmail is running.
BScreen::BScreen: managing screen 0 using visual 0x22, depth 24
X connection to :0.0 broken (explicit kill or server shutdown).
xinit:  connection to X server lost.
waiting for X server to shut down 

OpenBSD 2.8-current (GENERIC) #1: Fri Feb  9 12:25:02 EST 2001
    root_(_at_)_pinky:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon Model 4 (Thunderbird) ("AuthenticAMD" 686-class) 800 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267956224 (261676K)
avail mem = 243314688 (237612K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(15) BIOS, date 01/11/01, BIOS32 rev. 0 @ 0xfb230
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 found at 0xf0000[0xb6b0]
pcibios0: PCI IRQ Routing Table rev. 1.0 found at 0xfdbc0, size 176 bytes (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A (Apollo Pro) PCI-ISA" rev 0x00)
pcibios0: PCI Exclusive IRQs: 5 9 10 11
pcibios0: PCI bus #1 is the last bus
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 (Apollo 133) Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "VIA VT8363 (Apollo 133) PCI-AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Matrox MGA G400/G450 AGP" rev 0x04
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "VIA VT82C686A (Apollo 133) PCI-ISA" rev 0x22
pciide0 at pci0 dev 7 function 1 "VIA VT82C586A IDE" rev 0x10: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, CD-ROM XM-6202BH, 1112> SCSI0 5/cdrom removable
pciide0: channel 0 interrupting at irq 14
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 4 "VIA VT82C686A (Apollo 133) SMBus" rev 0x30
auvia0 at pci0 dev 7 function 5 "VIA VT82C686A (Apollo 133) AC-97 Audio" rev 0x20: VIA VT82C686A AC'97 Audio (rev H)
auvia0: interrupting at irq 11
ac97: codec id 0x49434511
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, Unknown 3D
audio0 at auvia0
adw0 at pci0 dev 9 function 0 "Advansys ASP-3940U3W" rev 0x00: irq 10
scsibus1 at adw0: 16 targets
adw0: target 0 using 16-bits wide, 40.0 MHz synchronous transfers
sd0 at scsibus1 targ 0 lun 0: <QUANTUM, ATLAS IV 9 WLS, 0909> SCSI3 0/direct fixed
sd0: 8761MB, 13816 cyl, 4 head, 324 sec, 512 bytes/sec, 17942584 sec total
stray interrupt 7
adw1 at pci0 dev 9 function 1 "Advansys ASP-3940U3W" rev 0x00: irq 11
scsibus2 at adw1: 16 targets
adw1: target 1 using 16-bits wide, 40.0 MHz synchronous transfers
sd1 at scsibus2 targ 1 lun 0: <IBM, DDRS-34560D, DC1B> SCSI2 0/direct fixed
sd1: 4357MB, 8387 cyl, 5 head, 212 sec, 512 bytes/sec, 8925000 sec total
adw2 at pci0 dev 12 function 0 "Advansys ABP-940UW" rev 0x00: irq 5
scsibus3 at adw2: 16 targets
adw2: target 4 using 8-bits wide, 20.8 MHz synchronous transfers
cd1 at scsibus3 targ 4 lun 0: <PLEXTOR, CD-R   PX-W124TS, 1.04> SCSI2 5/cdrom removable
fxp0 at pci0 dev 14 function 0 "Intel 82557" rev 0x05: irq 11, address 00:90:27:19:1d:31
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
isa0 at pcib0
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, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 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 4e60 netmask 4e60 ttymask 4ee2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matched BIOS disk 80
dkcsum: sd1 matched BIOS disk 81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
ums0 at uhub0 port 2 configuration 1 interface 0
ums0: Microsoft Microsoft IntelliMouse\M-. Explorer, rev 1.10/1.14, addr 2, iclass 3/1
ums0: 5 buttons and Z dir.
wsmouse0 at ums0 mux 0