Score:0

Caps Lock and Num Lock leds not working - Ubuntu 22.04

nu flag

I'm posting this because I'm having a slight inconvenience about caps lock and num lock's status leds. I'm running Ubuntu 22.04 (5.15.0-60) on my laptop. I can confirm that it's no hardware fault since those leds work correctly under Windows.

Here's what's inside "/sys/class/leds":

input20::capslock  input20::numlock     input22::compose  input22::scrolllock
input20::compose   input20::scrolllock  input22::kana     phy0-led
input20::kana      input22::capslock    input22::numlock

I verified that when I press caps lock, both "input20::capslock/brightness" and "input22:capslock/brightness" get set to 1 (the same goes for num lock). When I run "xset -q" i get:

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000003
  XKB indicators:
    00: Caps Lock:   on     01: Num Lock:    on     02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  33
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

But the led never lights up. I double checked with "kbdinfo gkbled" and I get:

scrolllock:off numlock:off capslock:off

So it looks like xset thinks the led is on but kbdinfo says otherwise. If you have any insights on how to solve this it would be greatly appreciated.

Pietro

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.