laptop keyboard repeats all presses after autoconfig

2018-02-16 Thread Christian Jones
>Synopsis: laptop keyboard repeats all presses after autoconfig
>Category: amd64
>Environment:
System  : OpenBSD 6.2
Details : OpenBSD 6.2 (GENERIC.MP) #134: Tue Oct  3 21:22:29 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64 (Samsung Chromebook 3)
>Description:
Keyboard works as expected in BIOS and at boot> prompt, UKC, and ddb (if
started from boot>). After autoconf, however, each keypress is followed by
a slight delay, character appears on screen, another slight delay, and 5
more characters appear on screen, as though key is slightly delayed then
held down for approximately 900ms. Intentionally holding down key for
typematic behavior yields this multiplied by what would be the appropriate
number of repeats (e.g., holding down key to expect 5 characters to appear
yields 30). External USB keyboard works appropriately. Keyboard appears to
be detected by OpenBSD as a pc-xt (ps2) keyboard, i8042 per other systems.
>How-To-Repeat:
Boot and type.
>Fix:
Setting typematic delay ridiculously long with wsconsctl(8) allows
meticulous typing to workaround, but not generally usable. Using an
external keyboard works fine.


dmesg:
OpenBSD 6.2 (GENERIC.MP) #134: Tue Oct  3 21:22:29 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4221259776 (4025MB)
avail mem = 4086300672 (3897MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7cd05020 (14 entries)
bios0: vendor coreboot version "MrChromebox" date 02/04/2018
bios0: GOOGLE Celes
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT MCFG TCPA APIC HPET BGRT
acpi0: wakeup devices XHCI(S3) ATPA(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 1596.35 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: TSC frequency 1596349200 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 79MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 1599.92 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 2, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 115 pins
, remapped to apid 2
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PLPE
"INT33BD" at acpi0 not configured
acpibtn0 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "4352D44" serial 03E1 type LION oem "SDI"
"GOOG0004" at acpi0 not configured
"PNP0A05" at acpi0 not configured
"GGL0303" at acpi0 not configured
"INTL9C60" at acpi0 not configured
"INTL9C60" at acpi0 not configured
dwiic0 at acpi0: I2C5 addr 0xd1323000/0x1000 irq 36
iic0 at dwiic0
"10EC5650" at acpi0 not configured
dwiic1 at acpi0: I2C6 addr 0xd1325000/0x1000 irq 37
iic1 at dwiic1
"ATML" at acpi0 not configured
"8086228E" at acpi0 not configured
"8086228A" at acpi0 not configured
"808622A8" at acpi0 not configured
chvgpio0 at acpi0: GPSW uid 1 addr 0xfed8/0x8000 irq 49, 56 pins
chvgpio1 at acpi0: GPNC uid 2 addr 0xfed88000/0x8000 irq 48, 59 pins
chvgpio2 at acpi0: GPEC uid 3 addr 0xfed9/0x8000 irq 50, 24 pins
chvgpio3 at acpi0: GPSE uid 4 addr 0xfed98000/0x8000 irq 91, 55 pins
"INT3400" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
acpibtn1 at acpi0: PWRB
"BOOT" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1601, 1600, 1520, 1440, 1360,
1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x35
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x35
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)

Re: laptop keyboard repeats all presses after autoconfig

2018-02-23 Thread Christian Jones
> On Feb 23, 2018, at 2:47 PM, joshua stein <j...@openbsd.org> wrote:
> 
> On Fri, 16 Feb 2018 at 23:54:25 -0500, Christian Jones wrote:
>>> Synopsis: laptop keyboard repeats all presses after autoconfig
>>> Category: amd64
>>> Environment:
>> System  : OpenBSD 6.2
>> Details : OpenBSD 6.2 (GENERIC.MP) #134: Tue Oct  3 21:22:29 MDT 2017
>> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> Please try a -current snapshot, this may have been fixed by this change in 
> January:
> 
> https://github.com/openbsd/src/commit/4a64352304e24b88f212d718db9d0a3911b51116

Thanks, Joshua. There was no change with the snapshot from Feb 21; I sent an 
updated dmesg and report just a few hours ago.



Re: laptop keyboard repeats all presses after autoconfig

2018-02-23 Thread Christian Jones
I’ve now confirmed this still exists on -current and doesn’t have a useful 
workaround for the
laptop keyboard issues. Updated bug report follows. I haven’t been able to find 
a similar report
other than concerns the trackpad is sending keystrokes, which doesn’t appear to 
be the case here.
(FWIW, I tried the unofficial patch for that as well without success.)
Anyone else seen this behavior or have other ideas?

>Synopsis:  laptop keyboard repeats presses after autoconfig
>Category:  amd64
>Environment:
System  : OpenBSD 6.2
Details : OpenBSD 6.2-current (GENERIC.MP) #10: Wed Feb 21 21:26:27 
MST 2018
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
Samsung Chromebook 3: Keyboard works as expected in BIOS/EFI and at 
boot> prompt, 
config, or ddb prior to autoconf, or in ddb if kernel panics. (Trackpad 
does not 
function, but no attempt at separate setup.) After autoconf, however, 
striking a 
key is followed by a brief delay before action (character, newline, 
etc.). Almost
always, this is again followed by a brief pause and 5 repeated 
characters (or 
newlines, etc.) at console. (In X, this results in several more 
associated with 
slightly faster typematic rate.) Altering typematic delays with 
wsconsctl(8) 
allows single-character entry, but not general use due to delays, and 
initial
aforementioned delay persists. External USB keyboard works as expected. 
Now 
confirmed in 6.2-release, -stable, and -current.

>How-To-Repeat:
Boot. This can be easily checked even in bsd.rd booted from USB install 
media 
(install62.fs).
>Fix:
Workaround: use external USB keyboard. Other fixes are desired.


dmesg:
OpenBSD 6.2-current (GENERIC.MP) #10: Wed Feb 21 21:26:27 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4221259776 (4025MB)
avail mem = 4086300672 (3897MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7cd05020 (14 entries)
bios0: vendor coreboot version "MrChromebox" date 02/04/2018
bios0: GOOGLE Celes
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT MCFG TCPA APIC HPET BGRT
acpi0: wakeup devices XHCI(S3) ATPA(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 2474.36 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu0: 1MB 64b/line 16-way L2 cache
acpitimer0: recalibrated TSC frequency 1596054023 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 79MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 2473.87 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 2, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 115 pins
, remapped to apid 2
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 1596063400 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 
mwait.1), PSS
acpicpu1 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 
mwait.1), PSS
acpipwrres0 at acpi0: PLPE
"INT33BD" at acpi0 not configured
acpibtn0 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "4352D44" serial 03E1 type LION oem "SDI"
"GOOG0004" at acpi0 not configured
"PNP0A05" at acpi0 not configured
"GGL0303" at acpi0 not configured
"INTL9C60" at acpi0 not configured
"INTL9C60" at acpi0 not configured
dwiic0 at acpi0: I2C5 addr 0xd1323000/0x1000 irq 36
iic0 at dwiic0
"10EC5650" at iic0 addr 0x1a not configured
dwiic1 at acpi0: I2C6 addr 0xd1325000/0x1000 irq 37
iic1 at dwiic1
"ATML" at acpi0 not configured
"8086228E" at acpi0 not configured
"8086228A" at acpi0 not configured
"808622A8" at acpi0 not configured
chvgpio0 at acpi0: GPSW uid 1 addr 0xfed8/0x8000 irq 49, 56 pins
chvgpio1 at acpi0: GPNC uid 2 addr 0xfed88000/0x8000 irq 48, 59 pins
chvgpio2 at acpi0: GPEC