setting keyboard (auto)repeat rate ?

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Mon, 25 Oct 1999 14:40:34 +0200


why is there no kernel support to set the repeat rate and delay
for autorepeating keys for normal PCs?

there are two ioctls defined in the kernel sources.
one isn't used at all:
# find /usr/src/linux -type f | xargs grep KDKBDREP
/usr/src/linux/include/linux/kd.h:#define KDKBDREP 0x4B52 /* set keyboard delay/repeat rate;

and the other one is only used for sparc:
# find /usr/src/linux/. -type f | xargs grep KIOCSRATE
/usr/src/linux/include/asm-sparc/kbio.h:#define KIOCSRATE _IOW('k', 40, struct kbd_rate)
/usr/src/linux/include/asm-sparc64/kbio.h:#define KIOCSRATE _IOW('k', 40, struct kbd_rate)
/usr/src/linux/drivers/sbus/char/sunkbd.c: case KIOCSRATE:
/usr/src/linux/arch/sparc64/kernel/ioctl32.c: case KIOCSRATE:

I'd like to have some (if possible generic) support to change the
keyboard repeat rate for the X server. calling kbdrate as external program
or replicating it's code doesn't seem to be the optimal solution to me...

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/