# Set Numlock to On by default at boot

**URL:** <https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [June 9, 2026, 6:09pm UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588 "2026-06-09T18:09:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeteC](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@PeteC](https://forums.rockylinux.org/u/PeteC)\
**Post date:** [June 9, 2026, 6:09pm UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/1 "2026-06-09T18:09:59Z")

</div>

I would like the Numlock to default to on when Rocky boots - how can I achieve this? I can’t find anything in Settings. I am using 9.8.

---

<div class="post-metadata">

**Author:** ![FrankCox](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/frankcox/32/1572_2.png) [@FrankCox](https://forums.rockylinux.org/u/FrankCox)\
**Post date:** [June 9, 2026, 6:20pm UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/2 "2026-06-09T18:20:22Z")

</div>

You want numlock set to enabled on the login screen or on the desktop?

Which login manager are you using? GDM? Lightdm? Text? Something else?

Which desktop are you using? Gnome? KDE? Mate? Text? Something else?

---

<div class="post-metadata">

**Author:** ![PeteC](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@PeteC](https://forums.rockylinux.org/u/PeteC)\
**Post date:** [June 9, 2026, 6:53pm UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/3 "2026-06-09T18:53:59Z")

</div>

Ideally both login and desktop, but only desktop would be OK.

The desktop is Gnome. The login manager will be whichever is the default for Rocky 9.8.

---

<div class="post-metadata">

**Author:** ![FrankCox](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/frankcox/32/1572_2.png) [@FrankCox](https://forums.rockylinux.org/u/FrankCox)\
**Post date:** [June 9, 2026, 7:59pm UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/4 "2026-06-09T19:59:44Z")

</div>

For the desktop you can probably set that using dconf-editor.

For the login screen and the desktop togther I think you could use numlockx.

Note that I personally use neither gdm or gnome so I haven’t tried either one of these solutions myself.

---

<div class="post-metadata">

**Author:** ![PeteC](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@PeteC](https://forums.rockylinux.org/u/PeteC)\
**Post date:** [June 10, 2026, 2:18pm UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/5 "2026-06-10T14:18:31Z")

</div>

Thanks - turns out that numlockx is not relevant for Wayland (which 9.8 is running) but enough of a clue to find that simply entering the command below turns numlock on (for both login and desktop)

gsettings set org.gnome.desktop.peripherals.keyboard numlock-state true

Further details at [https://askubuntu.com/questions/1536465/how-can-i-enable-numlock-on-login-ubuntu-24-10](https://askubuntu.com/questions/1536465/how-can-i-enable-numlock-on-login-ubuntu-24-10)

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [June 16, 2026, 12:57am UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/6 "2026-06-16T00:57:47Z")

</div>

Did you check the BIOS settings?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [June 16, 2026, 5:58am UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/7 "2026-06-16T05:58:43Z")

</div>

For me, using Cinnamon, which is effectively Gnome underneath it remembers when numlock was turned on or not. I’d be surprised if Gnome worked any differently, so it should remember once you’ve logged in and it would get re-enabled.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [August 15, 2026, 5:59am UTC](https://forums.rockylinux.org/t/set-numlock-to-on-by-default-at-boot/20588/8 "2026-08-15T05:59:29Z")

</div>

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