方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。 - g! g' Z* E3 q( e# \1 m" m: M 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。 + @1 R3 K Q& K9 _/ R* b 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。4 y4 ?3 J% _* A& n. W
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下: 7 h( f7 b* o6 Y" m O 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。( j% Y: V6 Z7 h3 y
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。 ( u+ j0 G2 P4 K 保存修改并关闭“系统配置编辑程序”窗口。 6 a- d9 _2 _: v9 ^! @ 方法5、把下面的保存成VBS脚本,执行。+ V Q& E1 y0 Z5 b# i
set WshShell=CreateObject(“WScript.shell”)( Z/ s) ~0 ^- o
WshShell.SendKeys“{NUMLOCK}” 1 e3 f& m/ P" R; F/ D0 b4 s: Y Linux% c; l$ O# _: | ?( n6 P9 [! e
1.' x( i3 e/ B5 l4 N% ~
[root@localhost ~]# cat /etc/rc.d/rc.local2 O% R& s; a1 Q3 |* |
#!/bin/sh 5 [( k# d' F+ \2 S/ L$ x a #0 O* y: Z7 G0 u# ]- u* a
# This script will be executed *after* all the other init scripts. 6 b; a" z1 X. }$ u # You can put your own initialization stuff in here if you don‘t . q" A7 }& z+ b- {; i" V0 H # want to do the full Sys V style init stuff. ! k4 ]7 p! A# c. v& k( k' r* q INITTY=/dev/tty[1-8] # H0 ]8 C: \ K2 }. d. e: ?( r for tty in $INITTY; do & h+ z) l# U. A4 c$ W. o. g setleds -D +num 《 $tty \& s) d/ l% }2 G% k' e" x$ N
done ! O% j q4 g' O7 A2 p touch /var/lock/subsys/local i6 A% ~( H9 P7 Y4 ]$ f
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll ) u, y0 ?) x6 J( \; }; [ Windows Registry Editor Version 5.00 ; q% B; S/ ]- W [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]3 e1 W8 G) K) k5 s. c
“InitialKeyboardIndicators”=“2”% ^5 t5 ~& f& p; M