Bug 214825

Summary: ioctl_console doesn't report capslock state correctly on ThinkPad X230
Product: Drivers Reporter: cem.aydin
Component: Console/FramebuffersAssignee: James Simmons (jsimmons)
Status: NEW ---    
Severity: low    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.4.0-64-generic Subsystem:
Regression: No Bisected commit-id:

Description cem.aydin 2021-10-26 13:08:10 UTC
Hello,

ioctl's KDGETLED or KDGKBLED do always return 0 on my ThinkPad X230 (Tested with a small program). The keyboard of this laptop does not have an LED. Maybe that is the issue? If it would still possible to get the caps lock state somehow it would be great. This is used for example in plymouth:

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/67?commit_id=7f49ef3fe655b1ac94ddafd5a4ca325b7b070d7b

Caps Lock as such is working.

Thanks