[GLLUG] Num Lock

Matt Graham danceswithcrows at usa.net
Thu Oct 30 15:28:36 EST 2003


On Thursday 30 October 2003 14:04, after a long battle with technology, 
Melson, Paul wrote:
> Mark Tarquini wrote:
>> uhh, how to i set RH9 to turn num lock on when it starts up?
>> i have my bios for num lock on but linux turns it off.
> You can use `setleds -D +num < $tty`.

This isn't going to work unless you have the line
  Option "XLeds" "1" # can be "1 2 3" or "1 2" or...
in your XF86Config's keyboard section.  "man keyboard" for more.

I could swear there was something in KDE's Control Center that allowed 
you to choose whether Num Lock was on or off at KDE startup, but I 
can't find it now.  OTOH,

echo -e "KeyStrPress Num_Lock\nKeyStrRelease Num_Lock" | xmacroplay :0

...will always work as long as you have access to display :0 .  
xmacroplay can be neat/useful in many other ways, since it allows you 
to simulate mouse movements and mousebutton presses.

-- 
 As a dog stood outside the gate of a temple, the Buddha called to him,
 "Dog, why do you not enter?" The dog looked back and replied, "I do not
 see myself as outside."  At that moment, the Buddha was enlightened.
There is no Darkness in Eternity/But only Light too dim for us to see



More information about the linux-user mailing list