Score:1

Numlock always ON

ng flag

I want Numlock to be always ON in Kubuntu, right from the login screen until shutdown, and then with every restart. The instructions available on various websites explain the steps in a manner that may be easy for an expert! I am only a standard computer user and want simple instructions to achieve this "feat" in Kubuntu. Most instructions refer to Dash. What is Dash and how to start Dash in Kubuntu? I could not locate the Dash even after searching every nook & corner of the software (Kubuntu) installed on my PC! Can someone please provide a simple set of instructions to get Numlock on (forever) in Kubuntu on my PC? The option to turn on numlock under keyboard settings somehow refuses to work, no matter what!

in flag
Based on [the help docs](https://help.ubuntu.com/community/NumLock), this is how it's done: From the K Menu, launch System Settings and click on Keyboard (Edgy users: K Menu -> System Settings -> Keyboard and Mouse -> Keyboard). You can see in the middle section the options for "NumLock on KDE Startup", where you can choose to Turn On, Turn Off, or Leave Unchanged. Select "Turn On" to turn NumLock on at startup.
guiverc avatar
cn flag
Please note any settings made in KDE only take effect when KDE is running, which is **not** the case until after you've logged in. You didn't provide release details; but the standard *greeter* used by Kubuntu is `sddm` which is **not** part of KDE thus KDE settings don't impact it; so your simple task mean you have multiple places to make the change (KDE settings & `sddm` for the login screen you want included). Unity-dash you've tagged relates to the Unity desktop, a different desktop to the K Desktop (KDE) and thus doesn't relate.
Nmath avatar
ng flag
@matigo Consider posting your comment as an answer!
Mathew avatar
ng flag
Thank you all who have responded to my query.
Mathew avatar
ng flag
Thank you @matigo for the reply. However, I have already done as suggested (the keyboard setting) but the system seems to default to the Numlock off state with every restart! And so I continue to use the software with putting Numlock into ON state manually at every login.
Mathew avatar
ng flag
Thank you @guiverc, but the Unity-dash is something I picked up from one of the suggestions available through google search. I actually do not understand the software beyond its normal use.
Mathew avatar
ng flag
@Nmath unfortunately I am unable to understand your statement. What means posting comment as an answer?
Am.Shekari avatar
ph flag
Hello can I ask what is your motherboard mark and what is Bios version?! In my Bios (Asus) there is an option to enable num lock at computer start I guess you should enable that option too I mean you maybe must enable that option in Bios and enable num lock at startup in KDE keyboard setting too ( @matigo comment )
Am.Shekari avatar
ph flag
If your Bios is Asus and they version is more than 2402 I can help you and locate that option in screen shots and send it to you in here
Score:1
ph flag

Let's clarify some terminology which has confused you. You are using Kubuntu - by default this uses the SDDM display manager and the KDE Plasma Desktop Environment. For comparison, "regular" Ubuntu uses the GDM display manager and GNOME Desktop Environment. The display manager, as far as you need to care for right now, is the login screen that you see after boot. Before you login you have not launched a Desktop Environment. From about 2010-2017 regular Ubuntu used a custom "shell" called Unity which included a feature called Dash. You are not using this, and Ubuntu itself no longer uses this (now it just uses GNOME). Be careful when you're looking for help online - there are LOTS of Linux distributions made up of lots of desktop environments and all kinds of other stuff. Sometimes "regular" Ubuntu help applies to Kubuntu, sometimes you need to look for help pertaining to KDE Plasma (and lots of times you'll find that help from the Arch Linux wiki - Arch Linux is a very "choose your own stuff" Linux distribution so advice pertaining to KDE Plasma there may pertain to you. One main difference is the way you install stuff is different on Ubuntu (and kubuntu) vs Arch.

You've already seen and apparently followed the answer for activating numlock once the desktop environment loads. I'll recap it here (unfortunately the KDE Plasma Desktop is highly customizable and I can't guarantee mine is just like yours but I haven't changed mine considerably from the defaults - if you've already followed these directions then don't worry about it, except to maybe double check): -click your button on the lower left (that's where it is by default - it's like the Windows start button). --click Settings --click System Settings --click Input Devices --click Keyboard

-the option to turn on NumLock on Plasma startup should be the first thing you see, but if not it's under the "Hardware" tab. Switch it to "Turn On"

Alternatively you could click the KDE "Start" button (officially it's called an Application Launcher if you're curious) and type the word Keyboard or even Numlock and it'll find the Keyboard settings option for you and you can go straight there.


That takes care of the desktop. But like we just discussed the desktop only launches after login. You want the Numlock button on for login too, which is an SDDM option. If you hunt around system settings (or type sddm into the application launcher) you'll see that the desktop environment offers you a few settings you can edit but not the Numlock one. We have to do that one manually. I found the guidance for this from https://wiki.archlinux.org/title/SDDM#Numlock (remember what I said about the Arch wiki being helpful) and https://man.archlinux.org/man/sddm.conf.5

Long story short, we are going to either edit or create a configuration file that SDDM will read when it loads to know how you'd like it configured. It appears that in Kubuntu (21.04 at least) that file doesn't exist by default. We're going to use the console - creating a 2-line text file in the console is not an "expert" task and is a reasonable expectation for a standard user here. Even if you wanted to try and do this via the file manager (Dolphin) GUI it's not allowed to create or edit these kinds of files by default and it's almost harder to get that working than to just do it. So let's just do it. I'm going into excruciating detail but this only takes about 30 seconds.

Open a terminal (lots of ways, easiest is probably ctrl+alt+t). Type cd /etc and enter (I'm not going to type "and enter" every time after this). You are now in the etc folder. This folder contains all manner of configuration files for stuff on your computer. Type ls to list all the names of stuff in the directory. They're in alphabetical order, you can go see if sddm.conf exists (by default it didn't on my kubuntu, it only would I think if you had tried to mess with the SDDM settings from the System Settings). It doesn't matter for the next step.

There are about 10 million ways to create/edit text files in a Linux terminal. People argue about their favorites - well I'm going to use a program called "nano." Type sudo nano sddm.conf - you'll be prompted for your password (by default the one you use to login). When you start a command with sudo you're running it as a "Super User" (Super User Do), this is how Ubuntu handles tasks that need admin privileges. Nano opens and either creates a blank sddm.conf if it didn't exist or opens it if it did.

I'm 99% sure the file won't exist on your computer so assuming that you now have a blank text editor in front of you. It works just like you expect. You're going to type this:

[General]  
Numlock=on

If the file did happen exist, if the [General] already existed then add the Numlock=on somewhere beneath it. If it didn't, just add those two lines anywhere. Either way, press Ctrl+O to actually "write" your new text to the file (I think you have to press enter one more time to confirm the file name), then press ctrl+x to exit. That's it, you're done. Close the console or even type exit. Restart and Numlock is on

Am.Shekari avatar
ph flag
who want to read this???
mock_blatt avatar
ph flag
Hah, basically it's enable numlock on in the plasma settings, then enable it for sddm via conf file. I thought it'd be helpful to clear up his obvious confusion (looking for Unity solutions in Kubuntu?!) and walk him through the text file editing since it didn't seem like he'd know how. I'm guessing he already found answers to that effect and thats what he meant by "for experts."
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.