ubuntu 16.04 开机开启小键盘数字键

首先安装numlockx

$ sudo apt-get install numlockx

方法一:

完成后修改

$ sudo vim /etc/rc.local

在最后一行exit 0前增加一下内容

if [-x /usr/bin/numlockx ]; then
numlockx on
fi

方法二:

$ sudo vim /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

在最后添加:greeter-setup-script=/usr/bin/numlockx on
重启或者注销便可。启动时,便会发现小键盘灯自动打开。

参考资料http://blog.csdn.net/ldl22847/article/details/8552894
http://www.linuxidc.com/Linux/2016-09/135365.htm

猜你喜欢

转载自blog.csdn.net/gongchenyu/article/details/51410634
今日推荐