Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!rutgers!phoenix.princeton.edu!subbarao From: subbarao@PHOENIX.PRINCETON.EDU (Kartik Subbarao) Newsgroups: alt.hackers Subject: Keyboard hack Message-ID: <7579@idunno.Princeton.EDU> Date: 27 Mar 91 15:26:22 GMT Sender: nobody@rutgers.rutgers.edu Lines: 18 Approved: nobody@rutgers.rutgers.edu We're writing a small operating system as part of our OS course, and so far we've had to read keys from the keyboard, write to the screen, etc... I decided it'd be neat-o-kool to have the keyboard LEDs working, so I started playing around with blasting various values into the keyboard data port. If anyone has a Sun 4 keyboard that uses a z8530 chip, you have to blast the value 14 into the port, then blast a masked value corresponding to which LED lit. People should write better manuals that document this stuff. -Kartik -- internet# find . -name core -exec cat {} \; |& tee /dev/tty* subbarao@phoenix.Princeton.EDU -| Internet kartik@silvertone.Princeton.EDU (NeXT mail) SUBBARAO@PUCC.BITNET - Bitnet