Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm getting annoyed by the numlock light not being on after switching from tty1-6 (console) to GUI. It turns on when it first runs GUI. I tried using numlockx and using LFS setnumlock. Both does not work while switching from console to GUI. If I switch from GUI to console, the numlock for console (lets say tty1) stays on. I tried everything that I can think of. Though it seems that the numpad works but light will not show.
One might use setleds in /etc/rc to define the initial and
default state of NumLock, e.g. by
INITTY=/dev/tty[1-8]
for tty in $INITTY; do
setleds -D +num < $tty
done
...setleds ... kde control center ... numlockx ... setnumlock ...
From what I've read about the issue, all these things work for some people and not for others. Not worth the hassle. Only reason it's bothersome at all is because we've all been brainwashed by Windows. Doesn't take long to get used to turning NumLock on manually when you boot Linux.
You say your problem is not that the numberic keypad being disabled, but the light turning off. My solution would be to disable the keypad ... the light's already off ... Presto! One keystroke solves two problems.
I rarely create any threads because I always search the internet using Google.
Quote:
You say your problem is not that the numberic keypad being disabled, but the light turning off. My solution would be to disable the keypad ... the light's already off ... Presto! One keystroke solves two problems.
I have been doing this from the very start I installed Gentoo. I'll just include a log option when I start up X Window Server and then check the logs.
I tried putting it in ~/.xinitrc and other xinitrc files.
Re: Numlock turns off while swtiching console to GUI
Quote:
Originally posted by Electro I'm getting annoyed by the numlock light not being on after switching from tty1-6 (console) to GUI. It turns on when it first runs GUI. I tried using numlockx and using LFS setnumlock. Both does not work while switching from console to GUI. If I switch from GUI to console, the numlock for console (lets say tty1) stays on. I tried everything that I can think of. Though it seems that the numpad works but light will not show.
I'm using Gentoo 2005.0 and KVM switch.
Please throw some suggestions.
Funny, I see no mention of your ~/.xinitrc here...
There is a mention though in a few posts down, but "I tried putting it in ~/.xinitrc" isn't really all that descriptive to me. My apologies if my suggestion didn't work, better luck next time.
I added the code below in /etc/X11/xorg.conf and it worked. If I press capslock, its light gets an reminder to stay on when switching from the console to GUI. Both numlock and caplock work.
Code:
Option "Xleds" "1 2 3"
Several months ago, I tried the above in Slackware 10, but it did not work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.