GSettings configuration tool can do the jobs via 2 commands, though the gdm user privilege is required.
1. Get gdm user privilege in a terminal window.
1. Open terminal by either pressing Ctrl+Alt+T or searching for ‘Terminal’ from software launcher.
2. Run command to get root privilege (type your password when it prompts):
sudo -i
3. In the terminal, run command to allow gdm to make connections to the X server:
xhost +SI:localuser:gdm
4. Finally switch to user gdm in this terminal via command:
su gdm -s /bin/bash
2. In this terminal, run command to enable numlock automatically in login screen:
gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'
3. To enable tap to click, run command in the same terminal:
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
That’s it. Enjoy!
I get an error message at step 2.
[email protected]:/root$ gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state ‘on’
(process:8962): dconf-WARNING **: 10:22:28.071: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/user: Permission denied
[email protected]:/root$
Any suggestions please?
sudo gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state ‘on’
That’s all!
what is the default state of those settings?
[email protected]:~$ sudo -i
[email protected]:~# su gdm -s/bin/bash
No passwd entry for user ‘gdm’
[email protected]:~# gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state ‘on’
No such schema “org.gnome.settings-daemon.peripherals.keyboard”
[email protected]:~# su don -s/bin/bash
[email protected]:/root$ gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state ‘on’
No such schema “org.gnome.settings-daemon.peripherals.keyboard”
[email protected]:/root$ xhost +SI:localuser:gdm
localuser:gdm being added to access control list
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0xd
Serial number of failed request: 7
Current serial number in output stream: 9
[email protected]:/root$ su gdm -s /bin/bash
No passwd entry for user ‘gdm’
[email protected]:/root$ gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state ‘on’
No such schema “org.gnome.settings-daemon.peripherals.keyboard”
[email protected]:/root$ gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
[email protected]:/root$
Using xubuntu 18.04 and was just updated. But this problem has existed with EVERY Linux install on EVERY computer I’ve used in 20 years. The ONE AND ONLY thing that drives me bats$%t crazy about linux. Windows reads the bios or eufi or whatever which says to turn on at login. ALL linux distros and desktop managers ignore this! The above doesnt work!
Sorry man. XUbuntu 18.04 uses a different display manager, you may search on web with ‘xubuntu’ or ‘xfce’ as keyword.
Thank You very Much
May I know how to reverse the settings back? I think it makes the solution complete. Thanks