|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。
7 s3 \4 R. s3 C) `5 n 方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。/ K2 h2 U. }$ ~. G6 L& y
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。 T, Q$ E* z5 l$ d5 O( r: A5 s
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下: ?" W8 a! G7 n1 |
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。
f. ` n. o/ e( A1 R 单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
" M: q8 Q* m) |2 h1 F& s; V 保存修改并关闭“系统配置编辑程序”窗口。
1 x. ~1 R( Y% O/ z1 i 方法5、把下面的保存成VBS脚本,执行。4 A0 o$ L! h/ A2 Z# e
set WshShell=CreateObject(“WScript.shell”)
" ~, D) y' e" b WshShell.SendKeys“{NUMLOCK}”
- W! g8 H; ]! j Linux w3 s5 t! L6 C1 |6 d. r' _
1.
8 I. a1 e: |/ f) i [root@localhost ~]# cat /etc/rc.d/rc.local
7 ]: W: V% u1 b- [1 p# V, u #!/bin/sh
1 l- P; s3 v( A/ \ #
8 s& I0 E" L3 t, J C4 i # This script will be executed *after* all the other init scripts.
5 ]! X* r8 o" A6 ]8 T( \. {! q # You can put your own initialization stuff in here if you don‘t
# I7 D. l. W$ b8 M # want to do the full Sys V style init stuff.
6 Y7 w3 M4 t, i. ^ INITTY=/dev/tty[1-8]' ` J* L1 m* @# d) r! c" Q
for tty in $INITTY; do
6 M% c C7 G- c* e setleds -D +num 《 $tty
% }/ G" t. ]* N( x P done* f% n5 |: {- P6 \
touch /var/lock/subsys/local5 \ z$ i! X1 O# J5 j
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll5 j6 F1 ?! x& w- I
Windows Registry Editor Version 5.002 E- {4 s, p$ S" k* X1 D. R
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]# \" e( v1 M3 Q$ g3 P
“InitialKeyboardIndicators”=“2”' X; Y8 F: l% M& _! d4 v
|
|