如何让NumLock灯开机自动亮
发表于 : 2011-05-29 23:50
在X下有x/numlockx,在控制台下有没有办法?
On Fri, May 31, 2002 at 11:22:22PM +0200, ptiJo wrote:
> Hi,
>
> dunno if that's due to my keyboard (Logitech Cordless iTouch) but I
> can't get my numlock automatically set to on...
> I remember there was a linux command named "setleds" but I can't find
> the same thing on *BSD ...
> Any clue ?
>
> thX for answers,
> ptiJo <ptiJo@xxxxxxx>
>
hi,
if you wanna set it the led state under a wscons console, you need to change
the ledstate wsconsctl variable, like that
wsconsctl -w ledstate=1
or any other number, you'll see what they do
if you're under X, you can effectively use xset.
bye
--
Run NetBSD - www.NetBSD.org
David Ferlier - krp@xxxxxxxxxxxxx
估计是这个原因了,香港有例行的动静,兄弟你对硬件硬件蛮熟悉的,佩服一下。hlwork 写了:试了一下,应该是只亮灯,没效果。我需要开启数字键功能。
把ledstate设想为一个3位的二进制数,第一位数控制Caps Lock,第二位数控制Num Lock,第三位数控制Scroll Lock。设置的时候还是要写十进制。设置ledstate为8和0的效果一样,9相当于1,然后循环下去。设置-1显示设置为4294967295,看来ledstate是32位无符号整数。设置小数会舍去小数点后面的数。
google.com有时行有时不行。最近几天不行的时候比以前多一些,不知道是不是因为六月快到了。
你在国外留学?