LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2003, 12:02 PM   #1
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
Lightbulb Turning on Keyboard LEDs on startup


I don't know you guys, but I'm a bit lazy to turn on the Num Lock led each time I boot Linux. Windoze does it automatically. So i did some research and I concluded that in order to do it I must modify the /etc/X11/XF86Config file... There are some references about three LEDs in that file, but I couldn't undertand them. Any suggestions?
 
Old 08-03-2003, 12:40 PM   #2
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
on start up my mandrake server does this in a startup file

setleds -D +num

and to take it off:

setleds -D -num

just put that in a start up file and your off
 
Old 08-03-2003, 06:25 PM   #3
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
yup it really works. thanks.
 
Old 08-03-2003, 06:32 PM   #4
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
...however strangely enough this does not work on RED HAT 9... it gives me this error:

KDGKBLED: Invalid argument
Error reading current flags setting. Maybe you are not on the console?


Any suggestions?
 
Old 08-03-2003, 08:01 PM   #5
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
Quote:
yup it really works. thanks.
no problem



Quote:
KDGKBLED: Invalid argument
i should have just posted the hole line out of my start up script D'OH!

basically to make the numlock come on on all the screens it does a mini loop

in that loop it does this:

setleds -D +num < /dev/ttyX

where /dev/ttyx is the console your on e.g. /dev/tty6

have a play
and let us know
 
Old 08-04-2003, 02:23 AM   #6
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
yes i've tested it with that script (infact on mandy it works...) The problem is in RedHat Linux (apologies, that error came up prior to the script), but still no LEDs light after that script (and no errors)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard leds flashing.. what does it mean? rohan208 Programming 7 02-03-2007 01:49 PM
Why is my USB Keyboard LEDs are not Glowing? pmrseshu Linux - Hardware 0 05-24-2005 01:15 AM
Loading Modules at startup - turning off hotplug? numb Slackware 47 03-21-2005 11:23 AM
Keyboard NumLock is always off at startup jborges Linux - Hardware 0 11-16-2004 04:04 PM
MDK8.2 --> Turning on startup messages amp2000 Linux - Distributions 3 05-23-2002 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration