Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873250 - Thinkpad L14 Gen 2 AMD caps lock LED activates after suspend is resumed
Summary: Thinkpad L14 Gen 2 AMD caps lock LED activates after suspend is resumed
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-28 03:19 UTC by Finn Rayment
Modified: 2023-07-29 15:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel config (5.19.11-gentoo-x86_64,169.41 KB, text/plain)
2022-09-28 03:19 UTC, Finn Rayment
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Finn Rayment 2022-09-28 03:19:36 UTC
Created attachment 814423 [details]
kernel config

Since at least kernel 5.15.41 when I installed Linux, after suspending to RAM and awakening the laptop, the caps lock light will activate even though the actual caps state is not current.

To turn off the light, the key must be pressed two times. The first time, caps lock is truly activated, and the light remains on. After the second press, the light finally turns off as does the caps state.

To reproduce:
1. Boot the computer.
2. Call s2ram.
3. Awaken the computer.
4. The caps lock LED should be incorrectly active.

I am using the latest BIOS available for my system (1.24).

System information:

uname -a
==========
Linux linux 5.19.11-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 27 22:27:17 AEST 2022 x86_64 AMD Ryzen 7 PRO 5850U with Radeon Graphics AuthenticAMD GNU/Linux

xinput
======
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎜   ↳ TPPS/2 Elan TrackPoint                    id=13   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=14   [slave  keyboard (3)]

lspci -k
========
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
	Subsystem: Lenovo Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
	Subsystem: Lenovo Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Kernel driver in use: pcieport
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Kernel driver in use: pcieport
00:02.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
	Subsystem: Device 5091:17aa
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
	Subsystem: Lenovo FCH SMBus Controller
	Kernel modules: sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Lenovo FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Non-Volatile memory controller: SK hynix Gold P31 SSD
	Subsystem: SK hynix Gold P31 SSD
	Kernel driver in use: nvme
	Kernel modules: nvme
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
02:00.1 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 (rev 0e)
	Subsystem: Lenovo RTL8111xP UART
	Kernel driver in use: serial
02:00.2 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #2 (rev 0e)
	Subsystem: Lenovo RTL8111xP UART
	Kernel driver in use: serial
02:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface (rev 0e)
	Subsystem: Lenovo RTL8111xP IPMI interface
02:00.4 USB controller: Realtek Semiconductor Co., Ltd. RTL811x EHCI host controller (rev 0e)
	Subsystem: Lenovo RTL811x EHCI host controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
03:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
	Subsystem: Lenovo MT7921 802.11ax PCI Express Wireless Network Adapter
	Kernel driver in use: mt7921e
	Kernel modules: mt7921e
04:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
	Subsystem: Lenovo SD/MMC Card Reader Controller
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci
06:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev d1)
	Subsystem: Lenovo Cezanne
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
	Subsystem: Lenovo Renoir Radeon High Definition Audio Controller
	Kernel driver in use: snd_hda_intel
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Lenovo Family 17h (Models 10h-1fh) Platform Security Processor
	Kernel driver in use: ccp
	Kernel modules: ccp
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
	Subsystem: Lenovo Renoir/Cezanne USB 3.1
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
	Subsystem: Lenovo Renoir/Cezanne USB 3.1
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
	Subsystem: Lenovo ACP/ACP3X/ACP6x Audio Coprocessor
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
	Subsystem: Lenovo Family 17h/19h HD Audio Controller
	Kernel driver in use: snd_hda_intel


lsmod
=====
Module                  Size  Used by
ehci_pci               20480  0
ehci_hcd               98304  1 ehci_pci
msr                    16384  0
8021q                  36864  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
xt_hl                  16384  22
ip6t_rt                20480  3
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
xt_LOG                 20480  1
nf_log_syslog          24576  1
xt_limit               16384  2
xt_addrtype            16384  4
xt_conntrack           16384  14
ip6table_filter        16384  1
ip6_tables             32768  53 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             20480  0
nf_nat                 45056  1 nf_nat_ftp
nf_conntrack_ftp       28672  1 nf_nat_ftp
nf_conntrack          172032  6 xt_conntrack,nf_nat,nf_nat_ftp,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_conntrack_ftp
libcrc32c              16384  2 nf_conntrack,nf_nat
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
iptable_filter         16384  1
ip_tables              32768  9 iptable_filter
ccm                    20480  6
des_generic            16384  0
libdes                 24576  1 des_generic
md4                    16384  0
amdgpu               8581120  23
mt7921e                32768  0
mt7921_common          90112  1 mt7921e
mt76_connac_lib        61440  2 mt7921e,mt7921_common
mt76                  102400  3 mt7921e,mt7921_common,mt76_connac_lib
mac80211             1232896  3 mt76,mt7921_common,mt76_connac_lib
drm_ttm_helper         16384  1 amdgpu
ttm                    94208  2 amdgpu,drm_ttm_helper
mfd_core               20480  1 amdgpu
iommu_v2               24576  1 amdgpu
gpu_sched              53248  1 amdgpu
i2c_algo_bit           16384  1 amdgpu
think_lmi              36864  0
wmi_bmof               16384  0
firmware_attributes_class    16384  1 think_lmi
drm_display_helper    184320  1 amdgpu
libarc4                16384  1 mac80211
drm_kms_helper        196608  4 drm_display_helper,amdgpu
thinkpad_acpi         135168  0
pkcs8_key_parser       16384  0
syscopyarea            16384  1 drm_kms_helper
crct10dif_pclmul       16384  1
cfg80211             1097728  4 mt76,mac80211,mt7921_common,mt76_connac_lib
sysfillrect            16384  1 drm_kms_helper
sdhci_pci              77824  0
nvram                  16384  1 thinkpad_acpi
sysimgblt              16384  1 drm_kms_helper
platform_profile       16384  1 thinkpad_acpi
fb_sys_fops            16384  1 drm_kms_helper
iosf_mbi               24576  1 sdhci_pci
ghash_clmulni_intel    16384  0
cqhci                  32768  1 sdhci_pci
drm                   593920  11 gpu_sched,drm_kms_helper,drm_display_helper,thinkpad_acpi,amdgpu,drm_ttm_helper,ttm
serio_raw              20480  0
sdhci                  77824  1 sdhci_pci
efi_pstore             16384  0
ucsi_acpi              16384  0
cec                    57344  1 drm_display_helper
k10temp                16384  0
typec_ucsi             49152  1 ucsi_acpi
sp5100_tco             20480  0
roles                  20480  1 typec_ucsi
wmi                    36864  2 wmi_bmof,think_lmi
video                  57344  1 thinkpad_acpi
backlight              24576  5 video,drm_display_helper,thinkpad_acpi,amdgpu,drm
i2c_designware_platform    20480  0
i2c_designware_core    36864  1 i2c_designware_platform
i2c_scmi               20480  0
efivarfs               16384  1
ext4                  983040  3
mbcache                16384  1 ext4
jbd2                  172032  1 ext4
dm_crypt               57344  2
dm_mod                180224  17 dm_crypt
xhci_pci               24576  0
xhci_pci_renesas       20480  1 xhci_pci
nvme                   53248  2
xhci_hcd              331776  1 xhci_pci
nvme_core             155648  3 nvme
crc32_pclmul           16384  0
crc32c_intel           24576  7
t10_pi                 16384  1 nvme_core
crc64_rocksoft         20480  1 t10_pi
crc64                  20480  1 crc64_rocksoft

inxi (filtered)
===============
System:
  Host: linux Kernel: 5.19.11-gentoo-x86_64 arch: x86_64 bits: 64
    Desktop: dwm v: 6.3 Distro: Gentoo Base System release 2.8
Machine:
  Type: Laptop System: LENOVO product: 20X5004GAU v: ThinkPad L14 Gen 2a
    serial: REDACTED
  Mobo: LENOVO model: 20X5004GAU serial: REDACTED UEFI: LENOVO
    v: R1KET39W (1.24 ) date: 08/19/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 PRO 5850U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 1638 min/max: 400/4507 cores: 1: 3280 2: 441 3: 4441
    4: 400 5: 400 6: 605 7: 3552 8: 400 9: 3552 10: 400 11: 400 12: 400
    13: 3553 14: 400 15: 3552 16: 441
Comment 1 Mike Pagano gentoo-dev 2022-09-28 12:45:10 UTC
Is 1.24 the latest?  I see 1.27 but maybe I'm looking in the wrong place.

Can you point me online to where you get he bios for this system?
Comment 2 Finn Rayment 2022-09-29 02:07:09 UTC
(In reply to Mike Pagano from comment #1)
> Is 1.24 the latest?  I see 1.27 but maybe I'm looking in the wrong place.
> 
> Can you point me online to where you get he bios for this system?

Yes, it was released 02/09/2022.

https://pcsupport.lenovo.com/au/en/products/laptops-and-netbooks/thinkpad-l-series-laptops/thinkpad-l14-gen-2-type-20x5-20x6/20x5/downloads/driver-list/component?name=BIOS%2FUEFI

I came to this page by inserting my serial number, so I am certain it is correct.
Comment 3 Mike Pagano gentoo-dev 2022-09-29 12:08:48 UTC
Can you attach the output of emerge --info

Also, if you are using systemd can you perform the steps you listed and then attach the output of 

journalctl -b -0

If not, can you attach relevant logs which might shed some light on this
Comment 4 Finn Rayment 2022-09-29 15:06:50 UTC
emerge --info
=============

Portage 3.0.36 (python 3.10.6-final-0, default/linux/amd64/17.1/hardened, gcc-11.3.0, glibc-2.35-r8, 5.19.11-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.19.11-gentoo-x86_64-x86_64-AMD_Ryzen_7_PRO_5850U_with_Radeon_Graphics-with-glibc2.35
KiB Mem:    15170404 total,  12649724 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 29 Sep 2022 14:46:49 +0000
Head commit of repository gentoo: 812c9f852faaaea61097626e5000a508c0c07fa9

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.6_p4::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: true

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver3 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=znver3 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver3 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j17"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="X acl alsa amd64 bluetooth bzip2 cli crypt dbus dri gdbm hardened iconv ipv6 jpeg libglvnd libtirpc multilib ncurses nptl opengl openmp pam pcre pie png pulseaudio readline sdl seccomp split-usr ssl ssp unicode xattr xinerama xorg xtpax zlib zsh-completions" ABI_X86="32 64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot emu efi-32 efi-64 pc" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

(In reply to Mike Pagano from comment #3)
> Also, if you are using systemd can you perform the steps you listed and then
> attach the output of 
> 
> journalctl -b -0
> 
> If not, can you attach relevant logs which might shed some light on this

I'm on OpenRC. I'll go find some logs I think are useful.
Comment 5 Finn Rayment 2022-09-29 15:57:30 UTC
Strange, it isn't showing up in any of the logs I can find on my system.

The keyboard is controlled by kernel module i8042:

[    0.896929] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    0.899543] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.899549] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.902593] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[    2.089922] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input6
[    3.037376] input: TPPS/2 Elan TrackPoint as /devices/platform/i8042/serio1/serio2/input/input12

and is loaded as input4. X sees this as device ID 11:

xinput get-feedbacks 11
=======================
1 feedback class
KbdFeedbackClass id=0
	click is 0
	percent is 50
	pitch is 400
	duration is 100
	led_mask is 0
	global_auto_repeat is 1

`led mask` will switch between 0 (off) and 1 (on) when I tap the caps lock key. However, it is equal to 0 after resuming, even though the LED is on. Don't know if this is interesting or not...

On top of this, /sys/class/leds/input4::capslock/brightness reads 0 even though it is effectively = 1.

It is undetected by evtest:

evtest
======
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab54
Input device name: "AT Translated Set 2 keyboard"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 2 (KEY_1)
	....
    Event code 58 (KEY_CAPSLOCK)
	....
    Event code 217 (KEY_SEARCH)
    Event code 226 (KEY_MEDIA)
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
  Event type 17 (EV_LED)
    Event code 0 (LED_NUML) state 0
    Event code 1 (LED_CAPSL) state 0
    Event code 2 (LED_SCROLLL) state 0
Key repeat handling:
  Repeat type 20 (EV_REP)
    Repeat code 0 (REP_DELAY)
      Value    250
    Repeat code 1 (REP_PERIOD)
      Value     33
Properties:
Testing ... (interrupt to exit)
   >>> I am activating caps lock
Event: time 1664465285.531093, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3a
Event: time 1664465285.531093, type 1 (EV_KEY), code 58 (KEY_CAPSLOCK), value 1
Event: time 1664465285.531093, -------------- SYN_REPORT ------------
Event: time 1664465285.532020, type 17 (EV_LED), code 1 (LED_CAPSL), value 1
Event: time 1664465285.532020, -------------- SYN_REPORT ------------
Event: time 1664465285.637367, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3a
Event: time 1664465285.637367, type 1 (EV_KEY), code 58 (KEY_CAPSLOCK), value 0
Event: time 1664465285.637367, -------------- SYN_REPORT ------------
   >>> I am disactivating caps lock
Event: time 1664465287.089344, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3a
Event: time 1664465287.089344, type 1 (EV_KEY), code 58 (KEY_CAPSLOCK), value 1
Event: time 1664465287.089344, -------------- SYN_REPORT ------------
Event: time 1664465287.185920, type 4 (EV_MSC), code 4 (MSC_SCAN), value 3a
Event: time 1664465287.185920, type 1 (EV_KEY), code 58 (KEY_CAPSLOCK), value 0
Event: time 1664465287.185920, -------------- SYN_REPORT ------------
Event: time 1664465287.186495, type 17 (EV_LED), code 1 (LED_CAPSL), value 0
   >>> Computer is suspended and reawoken
Event: time 1664465305.045710, >>>>>>>>>>>>>> SYN_DROPPED <<<<<<<<<<<<
   >>> Next comes my password as I log back in. There is no caps lock or LED.

I understand these are perhaps not very useful. I am not sure what I should be reading given it doesn't appear anywhere. Can I compile my kernel with a specfic set of debugging switches to get more useful information for you?
Comment 6 Finn Rayment 2022-09-30 08:29:45 UTC
I've checked event debugging for input devices. I'll see if I can capture anything.
Comment 7 Mike Pagano gentoo-dev 2022-10-10 22:22:47 UTC
Does the BIOS have a "suspend mode" in the power settings ?

If so, what is that set to?
Comment 8 Finn Rayment 2022-12-11 04:42:59 UTC
(In reply to Mike Pagano from comment #7)
> Does the BIOS have a "suspend mode" in the power settings ?
> 
> If so, what is that set to?

My apologies for getting back to you so late on this...

The only setting available related to power settings is 'Optimised Power Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.
Comment 9 Mike Pagano gentoo-dev 2023-01-17 14:44:49 UTC
(In reply to Finn Rayment from comment #8)
> (In reply to Mike Pagano from comment #7)
> > Does the BIOS have a "suspend mode" in the power settings ?
> > 
> > If so, what is that set to?
> 
> My apologies for getting back to you so late on this...
> 
> The only setting available related to power settings is 'Optimised Power
> Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.

Can you test with 'Windows' ?
Comment 10 Finn Rayment 2023-07-29 08:28:03 UTC
(In reply to Mike Pagano from comment #9)
> (In reply to Finn Rayment from comment #8)
> > (In reply to Mike Pagano from comment #7)
> > > Does the BIOS have a "suspend mode" in the power settings ?
> > > 
> > > If so, what is that set to?
> > 
> > My apologies for getting back to you so late on this...
> > 
> > The only setting available related to power settings is 'Optimised Power
> > Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.
> 
> Can you test with 'Windows' ?

Hi Mike, this still occurs with Windows too. I've been waiting these past months on the hope that a kernel update might address it but alas here we are once more.

Since filing this I've moved on from dwm+st to using KDE Plasma and a proper desktop manager and this hasn't addressed it either so I don't believe any configuration is at fault from my end.

Apologies again for the delay. I should have more time to address my requests from now on.
Comment 11 Joakim Tjernlund 2023-07-29 09:23:50 UTC
(In reply to Finn Rayment from comment #10)
> (In reply to Mike Pagano from comment #9)
> > (In reply to Finn Rayment from comment #8)
> > > (In reply to Mike Pagano from comment #7)
> > > > Does the BIOS have a "suspend mode" in the power settings ?
> > > > 
> > > > If so, what is that set to?
> > > 
> > > My apologies for getting back to you so late on this...
> > > 
> > > The only setting available related to power settings is 'Optimised Power
> > > Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.
> > 
> > Can you test with 'Windows' ?
> 
> Hi Mike, this still occurs with Windows too. I've been waiting these past
> months on the hope that a kernel update might address it but alas here we
> are once more.
> 
> Since filing this I've moved on from dwm+st to using KDE Plasma and a proper
> desktop manager and this hasn't addressed it either so I don't believe any
> configuration is at fault from my end.
> 
> Apologies again for the delay. I should have more time to address my
> requests from now on.

Might be a BIOS bug then.
Check for BIOS updates(use fwupd)
Comment 12 Finn Rayment 2023-07-29 10:27:42 UTC
(In reply to Joakim Tjernlund from comment #11)
> (In reply to Finn Rayment from comment #10)
> > (In reply to Mike Pagano from comment #9)
> > > (In reply to Finn Rayment from comment #8)
> > > > (In reply to Mike Pagano from comment #7)
> > > > > Does the BIOS have a "suspend mode" in the power settings ?
> > > > > 
> > > > > If so, what is that set to?
> > > > 
> > > > My apologies for getting back to you so late on this...
> > > > 
> > > > The only setting available related to power settings is 'Optimised Power
> > > > Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.
> > > 
> > > Can you test with 'Windows' ?
> > 
> > Hi Mike, this still occurs with Windows too. I've been waiting these past
> > months on the hope that a kernel update might address it but alas here we
> > are once more.
> > 
> > Since filing this I've moved on from dwm+st to using KDE Plasma and a proper
> > desktop manager and this hasn't addressed it either so I don't believe any
> > configuration is at fault from my end.
> > 
> > Apologies again for the delay. I should have more time to address my
> > requests from now on.
> 
> Might be a BIOS bug then.
> Check for BIOS updates(use fwupd)

BIOS version 1.27 has become available since I first reported the bug. I just updated now and still occurring. fwupd reporting everything either up to date, or no updates available.
Comment 13 Joakim Tjernlund 2023-07-29 14:56:09 UTC
(In reply to Finn Rayment from comment #12)
> (In reply to Joakim Tjernlund from comment #11)
> > (In reply to Finn Rayment from comment #10)
> > > (In reply to Mike Pagano from comment #9)
> > > > (In reply to Finn Rayment from comment #8)
> > > > > (In reply to Mike Pagano from comment #7)
> > > > > > Does the BIOS have a "suspend mode" in the power settings ?
> > > > > > 
> > > > > > If so, what is that set to?
> > > > > 
> > > > > My apologies for getting back to you so late on this...
> > > > > 
> > > > > The only setting available related to power settings is 'Optimised Power
> > > > > Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.
> > > > 
> > > > Can you test with 'Windows' ?
> > > 
> > > Hi Mike, this still occurs with Windows too. I've been waiting these past
> > > months on the hope that a kernel update might address it but alas here we
> > > are once more.
> > > 
> > > Since filing this I've moved on from dwm+st to using KDE Plasma and a proper
> > > desktop manager and this hasn't addressed it either so I don't believe any
> > > configuration is at fault from my end.
> > > 
> > > Apologies again for the delay. I should have more time to address my
> > > requests from now on.
> > 
> > Might be a BIOS bug then.
> > Check for BIOS updates(use fwupd)
> 
> BIOS version 1.27 has become available since I first reported the bug. I
> just updated now and still occurring. fwupd reporting everything either up
> to date, or no updates available.

Still think this is a BIOS bug since it is the same problem on both Linux and Windows
Comment 14 Finn Rayment 2023-07-29 15:23:20 UTC
(In reply to Joakim Tjernlund from comment #13)
> (In reply to Finn Rayment from comment #12)
> > (In reply to Joakim Tjernlund from comment #11)
> > > (In reply to Finn Rayment from comment #10)
> > > > (In reply to Mike Pagano from comment #9)
> > > > > (In reply to Finn Rayment from comment #8)
> > > > > > (In reply to Mike Pagano from comment #7)
> > > > > > > Does the BIOS have a "suspend mode" in the power settings ?
> > > > > > > 
> > > > > > > If so, what is that set to?
> > > > > > 
> > > > > > My apologies for getting back to you so late on this...
> > > > > > 
> > > > > > The only setting available related to power settings is 'Optimised Power
> > > > > > Mode' which is set to 'Linux' opposed to the only other option of 'Windows'.
> > > > > 
> > > > > Can you test with 'Windows' ?
> > > > 
> > > > Hi Mike, this still occurs with Windows too. I've been waiting these past
> > > > months on the hope that a kernel update might address it but alas here we
> > > > are once more.
> > > > 
> > > > Since filing this I've moved on from dwm+st to using KDE Plasma and a proper
> > > > desktop manager and this hasn't addressed it either so I don't believe any
> > > > configuration is at fault from my end.
> > > > 
> > > > Apologies again for the delay. I should have more time to address my
> > > > requests from now on.
> > > 
> > > Might be a BIOS bug then.
> > > Check for BIOS updates(use fwupd)
> > 
> > BIOS version 1.27 has become available since I first reported the bug. I
> > just updated now and still occurring. fwupd reporting everything either up
> > to date, or no updates available.
> 
> Still think this is a BIOS bug since it is the same problem on both Linux
> and Windows

No this does not affect Windows. I should have been more specific with my language:

There is a power option within the BIOS to set it between Linux/Windows mode. Setting it to both Linux/Windows modes and running Gentoo yields the same results. See above conversation for more on this.