turn on numlock at boot

Asked by pauls

I have a dual boot machine, DOS and Lubuntu 14.04.
I have the BIOS set to turn on the numlock key but it doesn't work when I boot to Lubuntu.
It doesn't work at boot for either system but I have configured DOS to turn it on in the autoexec.bat file
Is there a way to set the numlock 'on' at boot for Lubuntu?

Thje system is an old pentium 4 1.3 Ghz machine with 1 gb ram and two physical hard drives. One for DOS and the other for Lubuntu.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
pauls
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
pauls (pauls1950) said :
#2

Andrew,
Thank you so much!
This worked:
sudo apt-get install numlockx
sudo sed -i 's|^exit 0.*$|# Numlock enable\n[ -x /usr/bin/numlockx ] \&\& numlockx on\n\nexit 0|' /etc/rc.local

I thought I would try it even though the page said it doesn't work on Ubuntu. It turns on the numlock after I login with my password. You made this old man very happy!

I will mark this as solved.
Thankyou so much!
Paul

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Its almost like I used a too to search the web.........and one of the results was that page......

weird huh

Revision history for this message
pauls (pauls1950) said :
#4

In spite of your sarchsm, you still have my thanks. I had done multiple searches over a period of a couple of months, used the built-in help and not found the answer that you provided. When I finally did ask for an answer the question and answer system also ran a search and found nothing that applied.

I hope when you get to be a senior citizen and start using some new technology there is someone around who will offer help without the sarchasm. Perhaps you could share the search parameters and the search engine you used so that I might try something I haven't tried before to get an answer to my question.

Anyway, thanks again.

Paul