|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。2 `+ T& | c$ x/ A9 f0 k' R) X% R
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
0 ^3 m/ J9 o! U 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
+ R: J2 d6 s" M- K/ e, w 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:2 d: R* e8 M- d5 z2 }
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。0 k7 x8 [, T: j4 V2 a
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。6 {3 q: N! q. U) F2 ^9 L+ Z
保存修改并关闭“系统配置编辑程序”窗口。
y) x* e$ k# P% }9 s* X 方法5、把下面的保存成VBS脚本,执行。2 J# M! T- {# I; j+ M
set WshShell=CreateObject(“WScript.shell”)
t0 L6 h/ ]# g3 c( } WshShell.SendKeys“{NUMLOCK}”
* b7 ?- i/ _5 `0 G5 `/ B* C7 i+ k$ w. p Linux5 q+ u( f1 n* Q, [" ?
1.
9 _9 d. q! O: b. f [root@localhost ~]# cat /etc/rc.d/rc.local3 p4 C8 J3 I, d7 X6 J- G0 V& z
#!/bin/sh
6 i4 R l8 W5 L #
% J1 t0 I, M% ^9 {$ X: d* y$ y0 G # This script will be executed *after* all the other init scripts.
/ [* M5 v9 L" N/ [6 i7 e' M # You can put your own initialization stuff in here if you don‘t* s3 d8 [9 F. w; X/ H7 Y
# want to do the full Sys V style init stuff.9 x8 T( b' x1 _( u
INITTY=/dev/tty[1-8]2 f) r5 ]) n1 ~% e8 K% u8 |$ E
for tty in $INITTY; do
7 b* ~0 f- ?, q+ B Z- n7 H setleds -D +num 《 $tty
: L% w$ b3 L+ e9 ?, ?' K s x: C" L( } done
( l! U. I; n- N7 K& t touch /var/lock/subsys/local
$ w1 M& i9 o9 P8 V$ C) g 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
, O' a, S) M; P7 Y9 r' } Windows Registry Editor Version 5.00& Q$ s, D7 n6 k
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]% j( N! h4 q# Z! a! q5 u+ a! c
“InitialKeyboardIndicators”=“2”, C4 @4 d& D. w& R3 h' f
|
|