Enable num lock at logon screen [SOLVED]
Tofloor
poster avatar
jesterjke
deepin
2016-07-05 11:25
Author
Edited by jesterjke at 2019-4-25 03:13

It's more comfortable to enter password at login screen using num keys. But I have to enable numlock each time I boot my laptop. So I googled.
I installed numlockx and tried some ways:

1.
  1. sudo sed -i 's|^exit 0.*$|# Numlock enable\n[ -x /usr/bin/numlockx ] \&\& numlockx on\n\nexit 0|' /etc/rc.local
Copy the Code

2. UPD: THIS WAY WORKS
  • Edit the file /etc/lightdm/lightdm.conf
    1. gksudo gedit /etc/lightdm/lightdm.conf
    Copy the Code

  • Edit:
    1. [Seat:*]
    2. greeter-setup-script=/usr/bin/numlockx on
    Copy the Code

3. install the numlockx package and add it to the /etc/X11/xinit/xinitrc

None of listed above works.
How can I make it work?
Also, I would like to make that num keys work always work as digits and there will be no opportunity to off it accidentially pressing numlock.(if you know how to make it - please write)
Deepin 15.2 with all latest updates.








Reply Favorite View the author
All Replies
nomko
deepin
2016-07-05 13:21
#1
If you search this page, there is something very fuzzy mentioned about numlockx: http://dwaves.de/2015/03/12/linu ... -on-giada-f-300-i5/
I have no cleu what the writer meants here but maybe you can figure this out.

Maybe this will help you:
https://wiki.archlinux.org/index ... mLock_on_by_default
Reply View the author
nomko
deepin
2016-07-05 13:26
#2
https://bbs.deepin.org/post/31228
If you search this page, there is something very fuzzy mentioned about numlockx: http://dwaves.de/20 ...

The solution given in the archlinux wiki works!
Reply View the author
jesterjke
deepin
2016-07-05 23:30
#3
https://bbs.deepin.org/post/31228
The solution given in the archlinux wiki works!

Yes, you are right. Thank you!
I did the same steps as yesterday and it started to work.
Magic  ¯\_(ツ)_/¯
Reply View the author