Caps lock is both on and off at the same time depending on context
Downstream bug
Originally reported as: https://bugzilla.redhat.com/show_bug.cgi?id=2263912
Affected version
I'm running gnome-shell-45.4-1.fc39.x86_64 on Fedora 39 and Wayland with xorg-x11-server-Xwayland-23.2.4-1.fc39.x86_64.
Because this issue is intermittent, disabling extensions and rebooting would be inconclusive. As far as I know, I'm only running the extensions that Fedora installs by default:
> gnome-extensions list
apps-menu@gnome-shell-extensions.gcampax.github.com
background-logo@fedorahosted.org
launch-new-instance@gnome-shell-extensions.gcampax.github.com
places-menu@gnome-shell-extensions.gcampax.github.com
window-list@gnome-shell-extensions.gcampax.github.com
Bug summary
When unlocking the screen, I need to have the light on the caps lock button OFF to type my password (which is normal). For Firefox, Emacs, and Terminal windows, I need to have the caps lock light ON to type lowercase normally (which is bizarre). When Emacs opens or saves an encrypted file, it greys out the screen and gives me a window to input the encryption/decryption key, and I need to have the light OFF again (which is normal but out of sync with apps).
Steps to reproduce
Unknown, but we suspect it is related to sleeping and waking the machine. It has not been observed in Fedora versions other than 39, as far as we know so far.
Relevant logs, screenshots, screencasts etc.
I'm not sure what diagnostics would be helpful or even if this is the responsible component.