CapsLock is suddenly inverted
Bug summary
The CapsLock key gets out of sync with the status LED and starts behaving in a weird manner. When the CapsLock's LED is on, everything I type is in lowercase, when the LED is off, everything is shown as uppercase. When I use special characters such as ~ it gets even more confusing as it shows the inverse of what it should depending on whether the shift key is also pressed or not.
[CapsLock LED On] ==>
- Real Key: A
- Interpreted: a
- With ~ (no shift needed): Ã
- With ^ (shift not held for letter): Â
- With ^ (shit held for letter): â
If the keyboard is in this state and I try out another tty, for example by pressing Ctrl+Alt+F4
, the keyboard behaves as expected. I also tried running evtest
to see events from the keyboard while logged in another tty and the events that are shown seem totally fine.
When I say keyboard, I mean both my notebook's keyboard as well as the USB keyboard that I use from logitech which is shown as this device in lsusb
: ID 046d:c534 Logitech, Inc. Unifying Receiver
As far as I know, this has happened under Wayland and X11. Since I've got the expected behaviour while logged in another tty, I've come to believe that something that process the events after they are in userspace is breaking.
Some notes:
- I've got this notebook for about two years now, and this issue only showed up in the last few months.
- I've not experienced this problem in my desktop which runs the same distribution.
- As I needed to format the notebook, I've installed Windows in it before installing Fedora again, and this behaviour did not happen there.
I'm not entirely sure this isn't hardware's / kernel's fault, but everything led me to believe this is happening only on userspace. I'm posting here, but that's only because I think I can get pointers as where this report should be made (probably where the inputs are processed I guess), so I'm sorry for the trouble!!! I'll really appreciate any pointers!
Affected version
This has happened under Wayland and X11.
I have Portuguese(Brazil)
and Japanese(Anthy)
configured as input sources in gnome settings.
Report generated by gnome settings:
Report details
- Date generated: 2024-03-22 13:56:06
Hardware Information:
- Hardware Model: Lenovo Lenovo ideapad 330-15IKB
- Memory: 20.0 GiB
- Processor: Intel® Core™ i7-8550U × 8
- Graphics: Intel® UHD Graphics 620 (KBL GT2)
- Graphics 1: NVIDIA GeForce MX150
- Disk Capacity: 1.5 TB
Software Information:
- Firmware Version: 8TCN61WW
- OS Name: Fedora Linux 39 (Workstation Edition)
- OS Build: (null)
- OS Type: 64-bit
- GNOME Version: 45.5
- Windowing System: Wayland
- Kernel Version: Linux 6.7.9-200.fc39.x86_64
Steps to reproduce
Unfortunately unknown... I get the feeling that it happens after typing my password to unlock the system from the GDM screen.
What happened
Pressed a key when the CapsLock's LED was off, the letter was in uppercase.
What did you expect to happen
The key should be in lowercase.