Number lock doesn't start automatically any more

Hi.

Sometime in the recent past my number lock has stopped turning on automatically. The option is turned on in the KDE system settings but the setting has no effect. Here’s my system info. I’d appreciate any help on this issue. Thanks!

inxi -v7azy
System:
  Kernel: 5.15.85-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=a8c0cc32-a321-4bc8-95a7-dc4103443512 rw quiet
    resume=UUID=34818188-e359-4b02-86bd-53a0f3b237d2 udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: HP product: HP Elite Slice v: N/A
    serial: <superuser required> Chassis: type: 15 serial: <superuser required>
  Mobo: HP model: 81C3 v: KBC Version 05.77 serial: <superuser required>
    UEFI: HP v: N25 Ver. 02.58 date: 07/28/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K540e
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  RAM: total: 7.18 GiB used: 2.62 GiB (36.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-6500T bits: 64 type: MCP arch: Skylake-S
    gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
    model-id: 0x5E (94) stepping: 3 microcode: 0xF0
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 800 min/max: 800/3100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 bogomips: 20004
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb erms est f16c flush_l1d fma fpu fsgsbase fxsr ht hwp
    hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap
    smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tsc
    tsc_adjust tsc_deadline_timer vme x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel HD Graphics 530 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
    active: HDMI-A-2 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:1912 class-ID: 0300
  Device-2: Logitech HD Webcam C510 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-11.1:5 chip-ID: 046d:081d class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.6 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-2 mapped: HDMI-2 model: Asus VG248 serial: <filter>
    built: 2015 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
    size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: Mesa Intel HD Graphics 530 (SKL
    GT2) direct render: Yes
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Hewlett-Packard driver: snd_hda_intel bus-ID: 1-11.1:5 v: kernel
    chip-ID: 046d:081d bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0e02
    serial: <filter> class-ID: 0403
  Device-2: Logitech HD Webcam C510 type: USB driver: snd-usb-audio,uvcvideo
  Sound API: ALSA v: k5.15.85-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.63 running: yes
Network:
  Device-1: Intel Ethernet I219-LM vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b7 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: noprefixroute scope: global broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Broadcom Bluetooth Device type: USB driver: btusb v: 0.8
    bus-ID: 1-11.4:6 chip-ID: 0a5c:2046 class-ID: fe01 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 704.24 GiB used: 174.12 GiB (24.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: PNY model: CS900 500GB SSD
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 0615 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Apacer model: Apricorn
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 0132 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 456.66 GiB size: 448.43 GiB (98.20%)
    used: 174.12 GiB (38.8%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: a8c0cc32-a321-4bc8-95a7-dc4103443512
  ID-2: /boot/efi raw-size: 301 MiB size: 300.4 MiB (99.79%)
    used: 164 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: EFI
    uuid: A7C6-1687
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: 34818188-e359-4b02-86bd-53a0f3b237d2
Unmounted:
  ID-1: /dev/sdb1 maj-min: 8:17 size: 260 MiB fs: vfat label: N/A
    uuid: 10E9-1764
  ID-2: /dev/sdb2 maj-min: 8:18 size: 128 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/sdb3 maj-min: 8:19 size: 238.1 GiB fs: ntfs label: Windows 10
    uuid: 4E8E10218E10045D
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: Logitech Unifying Receiver type: Keyboard,Mouse
    driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c534 class-ID: 0301
  Device-2: 1-3:3 info: HP Slice Collaboration Cover type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 03f0:204a class-ID: 0300
  Hub-2: 1-11:4 info: VIA Labs USB2.0 Hub ports: 5 rev: 2.1 speed: 480 Mb/s
    chip-ID: 2109:2817 class-ID: 0900
  Device-1: 1-11.1:5 info: Logitech HD Webcam C510 type: Audio,Video
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 046d:081d class-ID: 0e02 serial: <filter>
  Device-2: 1-11.4:6 info: Broadcom Bluetooth Device type: Bluetooth
    driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip-ID: 0a5c:2046
    class-ID: fe01 serial: <filter>
  Device-3: 1-11.5:7 info: AnkerInnovations Anker USB-C Hub Device
    type: Billboard driver: N/A interfaces: 1 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 291a:8346 class-ID: 1100 serial: <filter>
  Hub-3: 2-0:1 info: Super-speed hub ports: 10 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 2-4:2 info: Apricorn type: Mass Storage driver: usb-storage
    interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 8mA chip-ID: 0984:0301
    class-ID: 0806 serial: <filter>
  Hub-4: 2-6:3 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.2 speed: 5 Gb/s
    chip-ID: 2109:0817 class-ID: 0900
  Device-1: 2-6.3:4 info: Norelsys NS1081 type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 152mA
    chip-ID: 2537:1081 class-ID: 0806 serial: <filter>
Sensors:
  System Temperatures: cpu: 40.0 C pch: 46.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 196 Uptime: 6m wakeups: 2 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
  pkgs: 1401 libs: 356 tools: pamac pm: flatpak pkgs: 0 Shell: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.24

I have no issue when using KDE Wayland.

KDE menu → Keyboard → Turn on NumLock on Plasma Startup.

As mentioned above in my OP, it is already turned on in the keyboard settings.

You can also edit /etc/sddm.conf.
This is how the first part of that file looks on my system:

[General]
InputMethod=
Numlock=on
1 Like

Check System Settings:arrow_down:

Workspace → Startup and Shutdown → Background Services → Keyboard Daemon

It must be running for the automatic NumLock setting to work.

1 Like

Thanks @Aragorn that did the trick for me, it’s working again now. @ydar even though @Aragorn solution worked for me the setting in sddm.conf is still set to Numlock=none. Maybe in the future I’ll fiddle with that file setting if there’s a need.

Thanks!

1 Like

That’s for having NumLock come on in the login screen, in case you’ve got numbers in your password. :wink:

Ah, thank you, I’ll enable that for sure!

1 Like

And one last tip, if you also want NumLock to automatically come on in character-mode ttys: install systemd-numlockontty from the AUR… :arrow_down:

pamac build systemd-numlockontty
sudo systemctl enable --now systemd-numLockOnTty

:wink:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.