Index | Thread | Search

From:
Mark Kettenis <mark.kettenis@xs4all.nl>
Subject:
Re: chromebook keyboards
To:
"Johannes Thyssen Tishman" <johannes@thyssentishman.com>
Cc:
miod@online.fr, tech@openbsd.org
Date:
Mon, 14 Oct 2024 11:31:14 +0200

Download raw body.

Thread
> Date: Mon, 14 Oct 2024 11:01:44 +0200
> From: "Johannes Thyssen Tishman" <johannes@thyssentishman.com>
> 
> 2024-10-08T18:41:36Z Miod Vallat:
> > If you have a laptop with non-functioning keyboard and this diff does
> > not help, disassemble its DSTD (follow instructions in acpidump(8)) and
> > check which HID name is used for the PNP0303 device; if it's neither
> > "GOOG000A" nor "MSFT0001", try adding it to sys/dev/acpi/pckbc_acpi.c
> > and report whether it helps (and also the PS2K part of your DSDT
> > disassembly).
> 
> I have a Thinkpad E14 Gen 6 (AMD) that has this problem as well[1].
> Sadly, the diff did not help. I've disassembled the DSTD as you
> suggested and got the following:
> 
> ...
>                 Device (KBD)
>                 {
>                     Method (_HID, 0, NotSerialized)  // _HID: Hardware ID
>                     {
>                         If (WIN8)
>                         {
>                             Return (0x7100AE30)
>                         }
> 
>                         Return (0x0303D041)
>                     }
> 
>                     Name (_CID, EisaId ("PNP0303") /* IBM Enhanced Keyboard (101/102-key, PS/2 Mouse) */)  // _CID: Compatible ID
>                     Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
>                     {
>                         IO (Decode16,
>                             0x0060,             // Range Minimum
>                             0x0060,             // Range Maximum
>                             0x01,               // Alignment
>                             0x01,               // Length
>                             )
>                         IO (Decode16,
>                             0x0064,             // Range Minimum
>                             0x0064,             // Range Maximum
>                             0x01,               // Alignment
>                             0x01,               // Length
>                             )
>                         IRQ (Edge, ActiveLow, Exclusive, )
>                             {1}
>                     })
>                 }
> ...
> 
> I'm not sure what the HID is here that I should add to
> sys/dev/acpi/pckbc_acpi.c. Please find below a dmesg with the patch
> applied.

Try "LEN0071".

> [1] https://marc.info/?l=openbsd-bugs&m=172010795815531&w=2
> 
> OpenBSD 7.6-current (CUSTOM) #1: Mon Oct 14 10:04:44 CEST 2024
>     johannes@e14.thyssentishman.local:/usr/src/sys/arch/amd64/compile/CUSTOM
> real mem = 67374571520 (64253MB)
> avail mem = 65308884992 (62283MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.3 @ 0x47561000 (58 entries)
> bios0: vendor LENOVO version "R2KET21W (1.04 )" date 03/20/2024
> bios0: LENOVO 21M3CTO1WW
> efi0 at bios0: UEFI 2.7
> efi0: Lenovo rev 0x1040
> acpi0 at bios0: ACPI 6.3Undefined scope: \\_SB_.PCI0.GPP0
> 
> acpi0: sleep states S0ix S4 S5
> acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT SSDT SSDT TPM2 POAT BATB HPET APIC MCFG SBST WSMT VFCT SSDT CRAT CDIT SDEV FPDT SSDT SSDT SSDT BGRT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT UEFI IVRS SSDT SSDT
> acpi0: wakeup devices GPP5(S0) LID_(S4) SLPB(S3)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD Ryzen 7 7735U with Radeon Graphics, 2700.00 MHz, 19-44-01, patch 0a404102
> cpu0: cpuid 1 edx=178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT> ecx=76f8320b<SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND>
> cpu0: cpuid 6 eax=4<ARAT> ecx=1<EFFFREQ>
> cpu0: cpuid 7.0 ebx=219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA> ecx=40068c<UMIP,PKU> edx=10
> cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
> cpu0: cpuid 80000001 edx=2fd3fbff<NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG> ecx=75c237ff<LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX>
> cpu0: cpuid 80000007 edx=6799<HWPSTATE,ITSC>
> cpu0: cpuid 80000008 ebx=191ef657<IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD>
> cpu0: cpuid 8000001F eax=1780f<SME,SEV,PFLUSH_MSR,SEVES,REQ64BITHOST,RESTINJ,ALTINJ,DBGSTSW,VTE> edx=1
> cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 24MHz
> cpu0: mwait min=64, max=64, C-substates=1.1, IBE
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 32 pa 0xfec00000, version 21, 24 pins, can't remap
> ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't remap
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xe0000000, bus 0-255
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (GPP1)
> acpiprt2 at acpi0: bus 2 (GPP5)
> acpiprt3 at acpi0: bus 3 (GPP6)
> acpiprt4 at acpi0: bus 4 (GPP8)
> acpiprt5 at acpi0: bus 5 (GP17)
> acpiprt6 at acpi0: bus -1 (GP18)
> acpiprt7 at acpi0: bus 6 (GP19)
> acpiec0 at acpi0
> "AMDI0007" at acpi0 not configured
> "ACPI0010" at acpi0 not configured
> acpicpu0 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS
> acpibtn0 at acpi0: PWRB
> acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
> acpicmos0 at acpi0
> "LEN0071" at acpi0 not configured
> acpibat0 at acpi0: BAT0 model "L23D3PG2" serial  2764 type LiP oem "Sunwoda"
> acpiac0 at acpi0: AC unit online
> acpithinkpad0 at acpi0: version 2.0
> "LEN0111" at acpi0 not configured
> "LEN0102" at acpi0 not configured
> "LEN0130" at acpi0 not configured
> acpibtn1 at acpi0: LID_(wakeup)
> acpibtn2 at acpi0: SLPB(wakeup)
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
> "AMDI0052" at acpi0 not configured
> dwiic0 at acpi0 I2CA addr 0xfedc2000/0x1000 irq 10
> iic0 at dwiic0
> dwiic1 at acpi0 I2CB addr 0xfedc3000/0x1000 irq 11
> iic1 at dwiic1
> ihidev0 at iic1 addr 0x2c gpio 8, vendor 0x6cb product 0xce5c, SYNA8020
> ihidev0: 15 report ids
> imt0 at ihidev0: clickpad, 5 contacts
> wsmouse0 at imt0 mux 0
> ims0 at ihidev0 reportid 2: 2 buttons
> wsmouse1 at ims0 mux 0
> hid at ihidev0 reportid 6 not configured
> hid at ihidev0 reportid 7 not configured
> hid at ihidev0 reportid 9 not configured
> hid at ihidev0 reportid 10 not configured
> hid at ihidev0 reportid 11 not configured
> hid at ihidev0 reportid 12 not configured
> hid at ihidev0 reportid 13 not configured
> hid at ihidev0 reportid 14 not configured
> hid at ihidev0 reportid 15 not configured
> "USBC000" at acpi0 not configured
> "ACPI000E" at acpi0 not configured
> tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x0003104a rev 0x0
> acpipwrres0 at acpi0: P0NV, resource for NVME
> acpipwrres1 at acpi0: WRST
> acpipwrres2 at acpi0: P0NV, resource for NVME
> acpipwrres3 at acpi0: PWRS, resource for GP11
> acpipwrres4 at acpi0: PWRS, resource for SWUS
> acpipwrres5 at acpi0: PWRS, resource for GP12
> acpipwrres6 at acpi0: PWRS, resource for SWUS
> acpipwrres7 at acpi0: PWRS, resource for VGA_
> acpipwrres8 at acpi0: PWRS, resource for ACP_
> acpipwrres9 at acpi0: PWRS, resource for AZAL
> acpipwrres10 at acpi0: PWRS, resource for HDAU
> acpipwrres11 at acpi0: BTRT
> acpipwrres12 at acpi0: PWRS, resource for XHC0
> acpipwrres13 at acpi0: BTPR
> acpipwrres14 at acpi0: PWRS, resource for XHC1
> acpipwrres15 at acpi0: PWRS, resource for GP17
> acpipwrres16 at acpi0: P0S0, resource for SATA
> acpipwrres17 at acpi0: P3S0, resource for SATA
> acpipwrres18 at acpi0: PWRS, resource for NHI0
> acpipwrres19 at acpi0: PWRS, resource for NHI1
> acpipwrres20 at acpi0: PWRS, resource for XHC2
> acpipwrres21 at acpi0: PWRS, resource for XHC3
> acpipwrres22 at acpi0: PWRS, resource for XHC4
> acpitz0 at acpi0acpitz0: THM0: failed to read _CRT
> acpitz0: THM0: failed to read _CRT
> : no critical temperature defined
> acpitz1 at acpi0: critical temperature is 110 degC
> acpivideo0 at acpi0: VGA_
> acpivout0 at acpivideo0: LCD_
> cpu0: 2700 MHz: speeds: 2700 1800 1600 MHz
> pci0 at mainbus0 bus 0
> ksmn0 at pci0 dev 0 function 0 "AMD 19h/4xh Root Complex" rev 0x01
> "AMD 19h/4xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
> pchb0 at pci0 dev 1 function 0 "AMD 19h/4xh Host" rev 0x01
> ppb0 at pci0 dev 1 function 2 vendor "AMD", unknown product 0x14b8 rev 0x00: msi
> pci1 at ppb0 bus 1
> nvme0 at pci1 dev 0 function 0 "Kingston KC3000" rev 0x01: msix, NVMe 1.4
> nvme0: KINGSTON SFYRS1000G, firmware EIFK31.6, serial 50026B7686AF5A75
> scsibus1 at nvme0: 2 targets, initiator 0
> sd0 at scsibus1 targ 1 lun 0: <NVMe, KINGSTON SFYRS10, EIFK>
> sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
> pchb1 at pci0 dev 2 function 0 "AMD 19h/4xh Host" rev 0x01
> ppb1 at pci0 dev 2 function 1 "AMD 19h/4xh PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H (0x5400), msi, address XX:XX:XX:XX:XX:XX
> rgephy0 at re0 phy 7: RTL8251, rev. 0
> ppb2 at pci0 dev 2 function 2 "AMD 19h/4xh PCIE" rev 0x00: msi
> pci3 at ppb2 bus 3
> iwx0 at pci3 dev 0 function 0 "Intel Wi-Fi 6 AX210" rev 0x1a, msix
> ppb3 at pci0 dev 2 function 4 "AMD 19h/4xh PCIE" rev 0x00: msi
> pci4 at ppb3 bus 4
> nvme1 at pci4 dev 0 function 0 "Samsung PM9C1a NVMe" rev 0x00: msix, NVMe 2.0
> nvme1: SAMSUNG MZAL81T0HDLB-00BLL, firmware 5L2QKXD7, serial S7DXNE0X411269
> scsibus2 at nvme1: 2 targets, initiator 0
> sd1 at scsibus2 targ 1 lun 0: <NVMe, SAMSUNG MZAL81T0, 5L2Q>
> sd1: 976762MB, 512 bytes/sector, 2000409264 sectors
> pchb2 at pci0 dev 3 function 0 "AMD 19h/4xh Host" rev 0x01
> pchb3 at pci0 dev 4 function 0 "AMD 19h/4xh Host" rev 0x01
> pchb4 at pci0 dev 8 function 0 "AMD 19h/4xh Host" rev 0x01
> ppb4 at pci0 dev 8 function 1 "AMD 19h/4xh PCIE" rev 0x10
> pci5 at ppb4 bus 5
> amdgpu0 at pci5 dev 0 function 0 "ATI Rembrandt" rev 0x0c
> drm0 at amdgpu0
> amdgpu0: msi
> azalia0 at pci5 dev 0 function 1 "ATI Van Gogh HD Audio" rev 0x00: msi
> azalia0: no supported codecs
> ccp0 at pci5 dev 0 function 2 "AMD 17h/90h Crypto" rev 0x00: msix
> xhci0 at pci5 dev 0 function 3 "AMD 19h/4xh xHCI" rev 0x00: msix, xHCI 1.20
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
> xhci1 at pci5 dev 0 function 4 "AMD 19h/4xh xHCI" rev 0x00: msix, xHCI 1.20
> usb1 at xhci1: USB revision 3.0
> uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
> "AMD 17h/1xh I2S Audio" rev 0x60 at pci5 dev 0 function 5 not configured
> azalia1 at pci5 dev 0 function 6 "AMD 17h/1xh HD Audio" rev 0x00: msi
> azalia1: codecs: Conexant/0x1f86
> audio0 at azalia1
> ppb5 at pci0 dev 8 function 3 "AMD 19h/4xh PCIE" rev 0x10
> pci6 at ppb5 bus 6
> xhci2 at pci6 dev 0 function 0 "AMD 19h/4xh xHCI" rev 0x00: msix, xHCI 1.20
> usb2 at xhci2: USB revision 3.0
> uhub2 at usb2 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
> xhci3 at pci6 dev 0 function 3 "AMD 19h/4xh xHCI" rev 0x00: msix, xHCI 1.20
> usb3 at xhci3: USB revision 3.0
> uhub3 at usb3 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
> xhci4 at pci6 dev 0 function 4 "AMD 19h/4xh xHCI" rev 0x00: msix, xHCI 1.20
> usb4 at xhci4: USB revision 3.0
> uhub4 at usb4 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
> piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x71: polling
> iic2 at piixpm0
> iic3 at piixpm0
> pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
> pchb5 at pci0 dev 24 function 0 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb6 at pci0 dev 24 function 1 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb7 at pci0 dev 24 function 2 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb8 at pci0 dev 24 function 3 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb9 at pci0 dev 24 function 4 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb10 at pci0 dev 24 function 5 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb11 at pci0 dev 24 function 6 "AMD 19h/4xh Data Fabric" rev 0x00
> pchb12 at pci0 dev 24 function 7 "AMD 19h/4xh Data Fabric" rev 0x00
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pms0 at pckbc0 (aux slot)
> wsmouse2 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> wbsio0 at isa0 port 0x4e/2: W83627THF rev 0x27
> vmm0 at mainbus0: SVM/RVI
> efifb at mainbus0 not configured
> ugen0 at uhub0 port 4 "Intel Bluetooth" rev 2.01/0.00 addr 2
> uhidev0 at uhub1 port 2 configuration 1 interface 0 "Lenovo ThinkPad Compact USB Keyboard with TrackPoint" rev 2.00/3.30 addr 2
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> uhidev1 at uhub1 port 2 configuration 1 interface 1 "Lenovo ThinkPad Compact USB Keyboard with TrackPoint" rev 2.00/3.30 addr 2
> uhidev1: iclass 3/1, 22 report ids
> ums0 at uhidev1 reportid 1: 5 buttons, Z and W dir
> wsmouse3 at ums0 mux 0
> ucc0 at uhidev1 reportid 16: 573 usages, 20 keys, array
> wskbd2 at ucc0 mux 1
> uhid0 at uhidev1 reportid 17: input=2, output=0, feature=0
> uhid1 at uhidev1 reportid 19: input=8, output=8, feature=8
> uhid2 at uhidev1 reportid 21: input=2, output=0, feature=0
> uhid3 at uhidev1 reportid 22: input=2, output=0, feature=0
> uvideo0 at uhub2 port 1 configuration 1 interface 0 "8SSC21M05461V1SR3CM01JE Integrated RGB Camera" rev 2.01/10.17 addr 2
> video0 at uvideo0
> uvideo1 at uhub2 port 1 configuration 1 interface 2 "8SSC21M05461V1SR3CM01JE Integrated RGB Camera" rev 2.01/10.17 addr 2
> video1 at uvideo1
> ugen1 at uhub2 port 1 configuration 1 "8SSC21M05461V1SR3CM01JE Integrated RGB Camera" rev 2.01/10.17 addr 2
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> sd2 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
> sd2: 953609MB, 512 bytes/sector, 1952992063 sectors
> root on sd2a (ab604ec743749b3d.a) swap on sd2b dump on sd2b
> iwx0: hw rev 0x420, fw 77.f92b5fed.0, pnvm ce1a5094, address XX:XX:XX:XX:XX:XX
> amdgpu0: YELLOW_CARP GC 10.3.3 12 CU rev 0x02
> amdgpu0: 1920x1080, 32bpp
> wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using wskbd0
> wskbd1: connecting to wsdisplay0
> wskbd2: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:841
> [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:841
> [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:841
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> pckbc: command timeout
> 
>