Bad Penguin Logo
Advertisement

KITT Sillyness PDF Print E-mail
 

By TuxInvader, on 04-09-2006 08:52

Views : 1266

Published in : Technology, Linux

The Knight Industries Two Thousand on your keyboard! Remember KnightRider? This evolved during a wildly off-topic discussion on slashdot. Add these two aliases to your .bashrc and then run KITT to make your num,caps,scoll lock LEDs behave like the panel in KITTs bonnet.
 
aliases:
 alias setleds='setleds -L < /dev/tty1'
 alias KITT='while :; do setleds -L +num; setleds -L -caps ; sleep 0.2; setleds -L; setleds -L +caps ; setleds -L -num; sleep 0.1 ; setleds -L ; setleds -L +scroll ; setleds -L -caps; sleep 0.2; setleds -L ; setleds -L +caps ; setleds -L -scroll; sleep 0.1;setleds -L ; done'
 
Just run "setleds" after you've finished with KITT to get the LEDs back to how they should be.
 
These aliases use /dev/tty1, Psuedo terminals don't seem to support the KDGETLED ioctl that setleds uses. If you're not actualy looged into /dev/tty1 you will need to run this as root.  
 
Enjoy 

Last update : 08-11-2006 17:28

   

Users' Comments  
 

Display 1 of 1 comments

need to use console in X

By: Mark () on 17-03-2010 16:19

need to use console in X

By: Mark on 17-03-2010 16:19

If you are in X, this no longer works, the setleds alias needs to use /dev/console 
 
alias setleds='setleds -L < /dev/console'

 

» Report this comment to administrator

» Reply to this comment...

Display 1 of 1 comments



Add your comment
Name
E-mail
Title  
 
Comment
 
Available characters: 600
 
  This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

   
   

< Prev   Next >