Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My computer, an old Toshiba Satellite, starts with NumLock on. The kernel seems to pick up on this and sets NumLock on in every virtual terminal, even though I've used setleds to turn it off as soon as I can in the boot process. I'd like to make it off. Is there something I can change to make the kernel so decide?
A computer I had in the '90s had NumLock setting as a settable feature in the BIOS. This computer doesn't.
If you turn the numlock off, then reboot, does the numlock come back on at startup? If so, I can't imagine how it can be anything other than a BIOS setting.
It's been a long time since I've mucked about in a BIOS, but I recall that some of the were much easier to navigate than others. Perhaps a web search will turn up a copy of the manual for the particular type/version of BIOS in that machine.
If you turn the numlock off, then reboot, does the numlock come back on at startup?
yes.
Quote:
Originally Posted by frankbell
If so, I can't imagine how it can be anything other than a BIOS setting.
It could be in ROM.
I assume that the kernel has taken it over after it loads, which should mean I can get the kernel to police this for me.
Quote:
Originally Posted by frankbell
It's been a long time since I've mucked about in a BIOS, but I recall that some of the were much easier to navigate than others. Perhaps a web search will turn up a copy of the manual for the particular type/version of BIOS in that machine.
It's nothing to do with the BIOS — it's an init script. In System V init, the file is /etc/rc.d/init.d/numlock, but no doubt Slackware does something different!
It's nothing to do with the BIOS — it's an init script. In System V init, the file is /etc/rc.d/init.d/numlock, but no doubt Slackware does something different!
Slackware lacks this, but the BIOS can be involved. All my previous computers started with numlock off except the 1 that allowed setting it in the BIOS. This computer starts with it on and it's not settable in the BIOS. I was wondering if Linux took a cue from the BIOS's setting.
Quote:
Originally Posted by henderson
Have you looked in ROM? Is it there? I want to know, too, because my laptop also starts with Num Lock. I see no ROM in Bios.
It's not in my BIOS but is in some. I'm sure you can figure yours out.
Quote:
Originally Posted by sgosnell
What distro and desktop environment? There are settings in most DEs for numlock. That won't affect it before the DE starts, but will afterwards.
Slackware. I use FVWM95 for my window manager, no desktop: I start only an xterm, run all commands from the command line.
Quote:
Originally Posted by dugan
"numlockx", maybe?
Ubuntu has this; some distributions have rc.numlock.
@rinaldij posted in another thread:
Code:
for n in 1 2 3 4 5 6 7 8 9 10
do
setleds -num < /dev/tty$n
done
in rc.local turns it off for every virtual terminal, but not xterm, my real target.
It annoys me that X turns on the NumLock LED (but not the state!) when it starts and every time it's switched to. Because I never had the problem before, and this computer turns NumLock on at boot, I wondered if they are related.
You can install it and add in ~/.xinitrc "/usr/bin/numlockx off" to turn numlock off in X.
It doesn't work for me. I searched and found a few others with my complaint, but no solutions. I had a complete set of X docs 30 years ago. It's hard to believe there isn't a setting, an XkbOptions, for this, but I can't find it.
My old Satellite with GM965 chipset and openSUSE Leap has no NUM setting in BIOS, no separate NUM pad, no NUM key, and behaves NAICT like NUM is off. When I plug in a USB keyboard, NUM is off, and turning it on produces entirely expected results.
Have you ever tried booting something other than Slack to see if your's behavior then differs?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.