GDM正在关闭numlock键。
我试过以下几点:
a) installing numlockx and inserting following lines at /etc/gdm/Init/Default
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
b) Using setleds +num, but it corrupts the numlock state.当我重新启动系统或gdm.service时
Numlock becomes on at boot
Numlock turns off at login screen[GDM]
Numlock again turns on after login. [ KDE / GNOME ]如何确保numlock始终处于登录状态(gdm)。
发布于 2018-03-23 17:56:56
按照@don_crissti的提示,我成功地在gdm登录屏幕上启用了numlock,如下所示:
sudo su #become root
su gdm -s /bin/sh #become gdm user with a shell
#do the work i don't 100% understand
export $(dbus-launcher)
GSETTINGS_BACKEND=dconf gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state on
exit #drop back to root user
systemctl restart gdm #restart gdmhttps://unix.stackexchange.com/questions/202268
复制相似问题