|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。" R- \ A; J4 d& q) p
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。' g6 B( m# P5 q. R2 I+ D
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。
* h$ u7 ]1 I$ p 方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:
& j7 }3 V+ ~. |* x! y- j* D8 F) t 单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。( z3 l7 h* F; ~. `; j) ^) V
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。( R) m/ d4 r+ V Q6 ^% a
保存修改并关闭“系统配置编辑程序”窗口。
7 W2 _& p8 P J 方法5、把下面的保存成VBS脚本,执行。' f3 J# I5 A. o. R) W
set WshShell=CreateObject(“WScript.shell”)" K+ d% ` I' j/ M$ W
WshShell.SendKeys“{NUMLOCK}”
( X, F9 M8 q" Y! q' w; s Linux
, e* K6 p: l4 } 1.# R8 j, ~ @: e" h
[root@localhost ~]# cat /etc/rc.d/rc.local
+ l( P0 ^: \3 I- ? #!/bin/sh
7 `. g4 b( T- a& g, L! V; T- L #
7 D, {3 T: o7 H # This script will be executed *after* all the other init scripts.
; D- G! a2 c7 h y I" t4 A* e" I/ I # You can put your own initialization stuff in here if you don‘t
* r/ V( a/ `/ q/ |7 Q) ?! E. { # want to do the full Sys V style init stuff.
* M! l0 |; ~3 j" q1 _' y8 t INITTY=/dev/tty[1-8]
& @# \& H" u* c; t' W/ x for tty in $INITTY; do7 i# E ~) A- h3 @
setleds -D +num 《 $tty6 _$ Z. w- f# X5 b; C
done( b9 A) q0 u4 }7 Z) K9 P+ Z
touch /var/lock/subsys/local# z; M7 u1 C6 j% ~; m
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll/ ?- Q$ b9 q7 H7 R; f1 `+ y
Windows Registry Editor Version 5.009 [( b9 i5 E1 a
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]: O2 ^ Y' ]0 M0 J! ^2 ~
“InitialKeyboardIndicators”=“2”
" U a5 C; t* Y. }2 | |
|