I wrote:
> Recently, someone asked about disabling L1-A. I haven't seen the Summary.
>
> Is it possible to disable the L1-A. If so, how?
Several people sent me a copy of the program to disable the L1-A Key. Thanks
/*
* LA-1.c - enable or disable L1-A abort sequence.
* Usage: LA-1 y|n
*/
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sundev/kbd.h>
#include <sundev/kbio.h>
main(argc,argv)
int argc;
char *argv[];
{
struct kiockey key;
int fd;
int mode;
char *c;
if (argc != 2) {
printf("\nUsage: LA-1 y|n\n\n");
exit(1);
}
switch (*(c= argv[1])) {
case 'y':
mode = 1;
break;
case 'n':
mode = 0;
break;
default:
printf("\nInvalid Argument\n");
printf("Usage: LA-1 y|n \n\n");
exit(1);
}
fd = open("/dev/kbd", 1);
if (fd < 0) {
perror("OPEN");
exit(1);
}
key.kio_tablemask = KIOCABORT1;
ioctl( fd, KIOCGETKEY, &key); /* read abort key entry */
if (key.kio_station == 0)
printf("L1-A reset sequence was disabled\n");
else if (key.kio_station == 1)
printf("L1-A reset sequence was enabled\n");
if (mode == 1)
key.kio_station = 1;
else
key.kio_station = 0;
ioctl(fd, KIOCSETKEY, &key); /* map it to a 'hole' in map */
if (key.kio_station == 0)
printf("L1-A reset sequence now disabled\n");
else if (key.kio_station == 1)
printf("L1-A reset sequence now enabled\n");
}
Can also be ftp`ed - disable-L1-A.tar.Z from thor.ece.uc.edu
Thanks, to All
lab@sylvester.access.com (Larry Blom - Access Graphics SE)
25835-transue <odt@cc.bellcore.com>
Stoehr@Uni-Augsburg.DE (Konradin Stoehr)
kwak@snoopy.postech.ac.kr (Kwak Jong-Geun)
sysadmin@ph.tn.tudelft.nl (Wouter Smaal)
murff@irt.com (Jim Murff)
hkatz@nucmed.NYU.EDU (Henry Katz)
Juergen Rothenanger <unrz57@rzsuna.rrze.uni-erlangen.de>
twhitely@tr1072.to.ford.com (Ted Whitely)
ballisti@ifh.ee.ethz.ch
Gene Rackow <rackow@mcs.anl.gov>
Richard J. Niziak" <rickn@copley.com>
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:10 CDT