|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。2 K, J5 _3 \; p7 Q1 l7 R4 d
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。
5 n! y" Y( y6 O0 M* ~! ? 方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。* m( r9 U* Q- O6 [
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:4 ^6 k9 \6 R7 P* y. d; b% e
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
8 ~* A6 M- ^# v7 ?1 n3 Q 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。) T8 i L' j$ [) }" k
保存修改并关闭“系统配置编辑程序”窗口。3 a( | D2 U( T, @' a, ~- w3 {: u* T, [
方法5、把下面的保存成VBS脚本,执行。' ]! c5 q. K" ^* a4 J/ t) C
set WshShell=CreateObject(“WScript.shell”)
' k* ~+ F- D! @+ b$ K0 K; z" y WshShell.SendKeys“{NUMLOCK}”
4 j: a! [# C9 W Linux
; o8 n, i. B" p( s 1.2 N4 [* ?; {, Q
[root@localhost ~]# cat /etc/rc.d/rc.local7 w3 y" u" J& Q( @# W \, J! a- {- J
#!/bin/sh
# N/ M& j& y8 U4 }$ \& K% h5 i #
5 z. U1 U0 [+ i' k2 D # This script will be executed *after* all the other init scripts.) S, c' ]9 }* s
# You can put your own initialization stuff in here if you don‘t& W; V& A' [, V; n6 s5 t
# want to do the full Sys V style init stuff.* I) y7 F# J V& }
INITTY=/dev/tty[1-8]
Y8 b; d0 _* O! O" W1 x for tty in $INITTY; do
5 }( M V0 l0 f( R# T: K setleds -D +num 《 $tty
0 Q! ~: A) t4 t0 K+ P1 ? done
+ w V' r! k. o- j) R, z4 `; M; U touch /var/lock/subsys/local; b+ _( \' R n) N' _, @
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll
' u( M2 ?1 W4 |7 ^* T. g7 ? Windows Registry Editor Version 5.005 j6 u% J: N {5 ^
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
3 a m% a2 ^- q5 B0 R9 b “InitialKeyboardIndicators”=“2”
1 n4 A6 E" ]" V" W |
|