On Tue, 6 Jun 2023 03:52:57 +0000 James Cook <falsif...@falsifian.org> wrote:
> Example 1: I type some text in an editor and a few consecutive > letters are left out. > > Example 2: I type a short piece of text like "openbsd", but > instead I see "opennnnnnnnnnnnnnnnn" with the "n" repeating > until I press some other key. (That was a made-up example but > this sort of thing happens a lot.) > ... > I *think* it only happens with an external USB keyboard, not the > laptop's built-in keyboard. But it's hard to be sure. (I have > observed it with more than one external keyboard.) Similarly, > I've never seen it happen at a text virtual terminal, but that > may be because I spend almost all my time in X11. I had this problem, but only with one key (the spacebar) on one of my external USB keyboards. I fixed it by switching to a different keyboard. Your problem is different. When your problem happens, I would try unplugging the keyboard, then reconnecting it, perhaps into a different USB port. This trick sometimes fixed my old usb wi-fi rum(4). A USB hub might help. My old laptop's USB ports might be worn by the years, so some devices might fail to connect. I got a hub to connect, then put 5 devices on the hub. My wi-fi rum and keyboard are on this hub. If the rum fails again, then I would test my keyboard; and if the keyboard works, then I wouldn't blame my laptop's USB port. I have not observed a bug with keyboards in OpenBSD; my keyboards work well. --George My old laptop has USB 2.0 ports (uhub0 at usb0 at ehci0). I connected a USB 3.0 hub (uhub4 at uhub0). [ using 1332148 bytes of bsd ELF symbol table ] console out [ATY,Jasper_A] console in [keyboard]USB and ADB found, using ADB using parent ATY,JasperParent:: memaddr b8000000, size 8000000 : consaddr b8008000 : ioaddr b0020000, size 20000: width 1280 linebytes 1280 height 854 depth 8 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.3-current (GENERIC) #126: Sun Jun 11 07:12:24 MDT 2023 dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC real mem = 1073741824 (1024MB) avail mem = 1025376256 (977MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root: model PowerBook5,4 cpu0 at mainbus0: 7447A (Revision 0x101): 1499 MHz: 512KB L2 cache mem0 at mainbus0 spdmem0 at mem0: 1GB DDR SDRAM non-parity PC2700CL2.5 spdmem1 at mem0: 1GB DDR SDRAM non-parity PC2700CL2.5 memc0 at mainbus0: uni-n rev 0xd2 "hw-clock" at memc0 not configured kiic0 at memc0 offset 0xf8001000 iic0 at kiic0 adt0 at iic0 addr 0xae: adt7460 rev 0x62 "lmu-controller" at iic0 addr 0x42 not configured mpcpcibr0 at mainbus0 pci: uni-north pci0 at mpcpcibr0 bus 0 pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00 agp at pchb0 not configured radeondrm0 at pci0 dev 16 function 0 "ATI Radeon Mobility M10" rev 0x00 drm0 at radeondrm0 radeondrm0: irq 48 mpcpcibr1 at mainbus0 pci: uni-north pci1 at mpcpcibr1 bus 0 macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00 openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE macgpio0 at macobio0 offset 0x50 "modem-reset" at macgpio0 offset 0x1d not configured "modem-power" at macgpio0 offset 0x1c not configured macgpio1 at macgpio0 offset 0x9: irq 47 "programmer-switch" at macgpio0 offset 0x11 not configured dfs0 at macgpio0 offset 0x6b: speeds: 1499, 749 MHz "gpio4" at macgpio0 offset 0x1e not configured "gpio5" at macgpio0 offset 0x6f not configured "gpio6" at macgpio0 offset 0x70 not configured "extint-gpio4" at macgpio0 offset 0x5c not configured "gpio11" at macgpio0 offset 0x75 not configured "extint-gpio15" at macgpio0 offset 0x67 not configured "escc-legacy" at macobio0 offset 0x12000 not configured zs0 at macobio0 offset 0x13000: irq 22,23 zstty0 at zs0 channel 0 zstty1 at zs0 channel 1 snapper0 at macobio0 offset 0x10000: irq 30,1,2 "timer" at macobio0 offset 0x15000 not configured adb0 at macobio0 offset 0x16000: irq 25, via-pmu, 3 targets apm0 at adb0: battery flags 0x5, 98% charged piic0 at adb0 iic1 at piic0 akbd0 at adb0 addr 2: PowerBook G4 keyboard (Inverted T) wskbd0 at akbd0: console keyboard ams0 at adb0 addr 3: EMP trackpad <tpad> 4-button, 400 dpi wsmouse0 at ams0 mux 0 abtn0 at adb0 addr 7: brightness/volume/eject buttons "battery" at macobio0 offset 0x0 not configured "backlight" at macobio0 offset 0xf300 not configured kiic1 at macobio0 offset 0x18000 iic2 at kiic1 wdc0 at macobio0 offset 0x20000 irq 24: DMA atapiscsi0 at wdc0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-R UJ-825, DAM5> removable cd0(wdc0:0:0): using BIOS timings, DMA mode 2 audio0 at snapper0 bwi0 at pci1 dev 18 function 0 "Broadcom BCM4306" rev 0x03: irq 52, address 00:0d:93:ef:83:58 cbb0 at pci1 dev 19 function 0 "TI PCI1510 CardBus" rev 0x00: irq 53 ohci0 at pci1 dev 26 function 0 "Apple Intrepid USB" rev 0x00: irq 29, version 1.0, legacy support ohci1 at pci1 dev 27 function 0 "NEC USB" rev 0x43: irq 63, version 1.0 ohci2 at pci1 dev 27 function 1 "NEC USB" rev 0x43: irq 63, version 1.0 ehci0 at pci1 dev 27 function 2 "NEC USB" rev 0x04: irq 63 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "NEC EHCI root hub" rev 2.00/1.00 addr 1 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0x20 pcmcia0 at cardslot0 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "Apple OHCI root hub" rev 1.00/1.00 addr 1 usb2 at ohci1: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 addr 1 usb3 at ohci2: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 addr 1 mpcpcibr2 at mainbus0 pci: uni-north pci2 at mpcpcibr2 bus 0 kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid ATA" rev 0x00 wdc1 at kauaiata0 irq 39: DMA wd0 at wdc1 channel 0 drive 0: <WDC WD2500BEVE-00WZT0> wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 "Apple UniNorth Firewire" rev 0x81 at pci2 dev 14 function 0 not configured gem0 at pci2 dev 15 function 0 "Apple Uni-N2 GMAC" rev 0x80: irq 41, address 00:0d:93:b4:cc:d4 eephy0 at gem0 phy 0: 88E1111 Gigabit PHY, rev. 1 uhub4 at uhub0 port 2 configuration 1 interface 0 "Renesas product 0x0209" rev 2.00/1.00 addr 2 uhub5 at uhub4 port 1 configuration 1 interface 0 "Renesas product 0x0209" rev 2.00/1.00 addr 3 uhidev0 at uhub5 port 2 configuration 1 interface 0 "Logitech USB Keyboard" rev 1.10/62.00 addr 4 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 uhidev1 at uhub5 port 2 configuration 1 interface 1 "Logitech USB Keyboard" rev 1.10/62.00 addr 4 uhidev1: iclass 3/0 ucc0 at uhidev1: 1301 usages, 20 keys, array wskbd2 at ucc0 mux 1 uftdi0 at uhub5 port 3 configuration 1 interface 0 "FTDI FT232R USB UART" rev 2.00/6.00 addr 5 ucom0 at uftdi0 portno 1 umass0 at uhub4 port 3 configuration 1 interface 0 "TOSHIBA External USB 3.0" rev 2.10/0.00 addr 6 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd0 at scsibus2 targ 1 lun 0: <TOSHIBA, External USB 3.0, 0> serial.0480010031109012909F sd0: 953869MB, 512 bytes/sector, 1953525168 sectors rum0 at uhub4 port 4 configuration 1 interface 0 "Belkin Belkin 54g USB Network Adapter" rev 2.00/0.01 addr 7 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:17:3f:85:5f:81 uhidev2 at uhub1 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" rev 1.10/12.41 addr 2 uhidev2: iclass 3/1 ukbd1 at uhidev2: 8 variable keys, 6 key codes wskbd3 at ukbd1 mux 1 uhidev3 at uhub1 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" rev 1.10/12.41 addr 2 uhidev3: iclass 3/1 ums0 at uhidev3: 5 buttons wsmouse1 at ums0 mux 0 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets bootpath: /pci@f4000000/ata-6@d/disk@0:/bsd root on wd0a (7f743336b2c4e92e.a) swap on wd0b dump on wd0b radeondrm0: RV350 [drm] *ERROR* Unable to locate a BIOS ROM uhidev4 at uhub5 port 1 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/72.00 addr 8 uhidev4: iclass 3/1 ums1 at uhidev4: 3 buttons, Z dir wsmouse2 at ums1 mux 0 wskbd1 detached ukbd0 detached uhidev0 detached wskbd2 detached ucc0 detached uhidev1 detached radeondrm0: 1280x854, 32bpp wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd3: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation) Bogus possible_clones: [ENCODER:48:DAC-48] possible_clones=0x8 (full encoder mask=0xf) Bogus possible_clones: [ENCODER:50:TV-50] possible_clones=0x4 (full encoder mask=0xf) uhidev0 at uhub5 port 2 configuration 1 interface 0 "Logitech USB Keyboard" rev 1.10/62.00 addr 4 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub5 port 2 configuration 1 interface 1 "Logitech USB Keyboard" rev 1.10/62.00 addr 4 uhidev1: iclass 3/0 ucc0 at uhidev1: 1301 usages, 20 keys, array wskbd2 at ucc0 mux 1 wskbd2: connecting to wsdisplay0 Controller /dev/usb0: addr 01: 1033:0000 NEC, EHCI root hub high speed, self powered, config 1, rev 1.00 driver: uhub0 addr 02: 045b:0209 Renesas, product 0x0209 high speed, self powered, config 1, rev 1.00 driver: uhub4 addr 03: 045b:0209 Renesas, product 0x0209 high speed, self powered, config 1, rev 1.00 driver: uhub5 addr 04: 046d:c34b Logitech, USB Keyboard low speed, power 90 mA, config 1, rev 62.00 driver: uhidev0 driver: uhidev1 addr 05: 0403:6001 FTDI, FT232R USB UART full speed, power 90 mA, config 1, rev 6.00, iSerial A10L3HAD driver: uftdi0 addr 06: 0480:0100 TOSHIBA, External USB 3.0 high speed, power 500 mA, config 1, rev 0.00, iSerial 20131109012909F driver: umass0 addr 07: 050d:705a Belkin, Belkin 54g USB Network Adapter high speed, power 300 mA, config 1, rev 0.01 driver: rum0 addr 08: 046d:c077 Logitech, USB Optical Mouse low speed, power 100 mA, config 1, rev 72.00 driver: uhidev4 Controller /dev/usb1: addr 01: 106b:0000 Apple, OHCI root hub full speed, self powered, config 1, rev 1.00 driver: uhub1 addr 02: 05ac:1000 Apple Computer, HID-proxy full speed, self powered, config 1, rev 12.41 driver: uhidev2 driver: uhidev3 Controller /dev/usb2: addr 01: 1033:0000 NEC, OHCI root hub full speed, self powered, config 1, rev 1.00 driver: uhub2 Controller /dev/usb3: addr 01: 1033:0000 NEC, OHCI root hub full speed, self powered, config 1, rev 1.00 driver: uhub3