I upgraded to Ubuntu 20.04 Friday and have lost num Lock on boot - how can I set the system so that the keypad Num Lock is set on boot?
Did the following as normal user and reboot, still not working
gsettings get org.gnome.settings-daemon.peripherals.keyboard numlock-state
Did the above as root got answer:
(process:3378): dconf-WARNING **: 14:35:23.197: failed to commit changes to dconf: Erreur lors de la génération de la ligne de commande « dbus-launch --autolaunch=0f76e53a9e0b4f1f8ddd7b2736e88499 --binary-syntax --close-stderr » : Le processus fils s’est terminé avec le code 1
gsettings get org.gnome.settings-daemon.peripherals.keyboard numlock-state
'unknown'
Next ? Purchase new keyboard still not working, funny the maths key ∕⋅−+ works but not the numbers
In Ubuntu 16.04 i was able to open numlock on login screen as default with the help of this url:
How to enable numlock at boot time for login screen?
However it doesn't work with Ubuntu 18.04.It throws an error saying that there is no rc.local directory.
Is there a way to fix this?
Your help is very appreciated!
Thanks a lot.
What is the standard way to turn numlock on by default on startup on lubuntu 10.04?
Lubuntu installs LXDE. I saw some aother solutions for other flavours, but maybe there is a special setting for the lubuntu flavour.
I tried already numlock=0 and numlock=1 in /etc/lxdm/lxdm.conf , but numlock stays off on the next boot.
All other operating systems, also other ubuntu systems, do have numlock turned on on the same machine after booting.
I installed numlockx, and it can change the value, but is this the standard lubuntu way to go? If so, what is the standard place in the lubuntu startup sequene to insert 'numlockx on', how do I set this up correctly?
I also looked at the included lxde keyboard configuration system gui tool, but there are only few options, numlock default not among them.
(Please before you mark this as duplicate consider if it really fits, I could not find this answered in this way. I am interestd to know the standard way for lubuntu (and not kubuntu or gnome) in detail.)
There is also an explanation of the lxdm config file here, but it does not really explain what "lxde numlock suport" means (how could a gui not support numlock?) and what the settings 0 and 1 mean:
http://manpages.ubuntu.com/manpages/lucid/man1/lxdm.1.html
If there is no other LXDE or lubuntu standard way to do it, I am planning to use numlockx and add this line:
/usr/bin/numlockx on
at the beginning of either
/etc/X11/xinit/xinitrc
or
~/.xinitrc
following the instructions found here:
http://www.cyberciti.biz/faq/how-to-linux-turn-on-num-lock-on-gnome-startup/
Having NumLock on is convenient when using a full-sized external keyboard (having a keypad) and very inconvenient when using laptop's built-in keyboard (which places digits instead of letters on the keyboard's right sid unless Fn is pressed).
So I have to turn NumLock on every time I attach an external keyboard (or boot with it attached) and off every time I detach an external keyboard (or boot with it detached). And I do this frequently because I prefer using a full-sized external keyboard, but have not enough (only 3) USB ports to plug-in it alongside with a mouse, a 3G modem and an external hard/flash drive.
Can I automate this? Seems a very formaliseable, logically simple task: if there is an USB keyboard attached (some device in /dev present?) - NumLock is on, if not - NumLock is off. My laptop's built-in keyboard is PS/2-attached, external is USB.
Maybe I should code it myself, but where to put it in this case?
I use Ubuntu 10.10.