In file include/linux/kd.h was declared KDKBDREP ioctl number
to tune up keyboard rate/delay with struct kbd_repeat.
But in 2.4.x kernel there is only m68k version for that.
I wrote some code for implement this feature on x86 machines.
Gzipped and uuencoded patch for kernel 2.4.5 is attached.
To setup keyboard rate/delay on x86 you should use code like that:
struct kbd_repeat kbd_rep={
1000, /* delay in ms */
30 /* repeat rate in cps */
};
ioctl(0,KDKBDREP,&kbd_rep);
After that ioctl kbd_rep is filled with previous values.
I hope it will be useful for someone.
------------B912C1FC2DD4EE15
Content-Type: application/x-gzip; name="patch-kbdrate-2.4.5.gz"
Content-Transfer-Encoding: x-uue
Content-Disposition: attachment; filename="patch-kbdrate-2.4.5.gz"
begin 644 patch-kbdrate-2.4.5.gz
M'XL(""02)CL"`W!A=&-H+6MB9')A=&4M,BXT+C4`G1AK4]I8]'/X%<=QID,$
M)`3P@:4K%MQQ16G5[K;3Z61B<M&,(6%O@H^U_/<]Y^;>D`1$6\9'[GF_[PFN
M-QY#;<:_@AL&L4NG>W.[M=VN^UXP>ZR[W+MG/*H[MS:O3QWKCCU=;SNP#EFJ
MU6IO$:(=<P]Z4PZP`Z;9:9F==AM,PVB4*I7*6@W:U8S!7[,`&B8T=CO-9L<P
M$L[#0ZBUF\WJ#E3HW]X.'!Z60)N7`']*E4V7C;V`07]PW/LRO+).!]^.K(O!
M)ZL_&/:^:6;;6$-ST;L::$U#JV^!,XU@JUZJE"I1;,>>`U',9TX,=]>NQ=F4
MV>*1VS'K/I<JVFIUU5484E*JS`\RLF=!Y-T$S`4*`DQM'C%+*$+QY67%6UPO
M54AKWC1NWA-0\P)\1LX#.N1%W]L^0>>@I$???W2?M>=VU7ALM.9DKZ8][]+)
M4*>&@4?#28]$:^RIHRFP*:LIL*8Z-@76F)/.@R6#W8S!+O/MI]<L%D3"9%2$
MHI6:MF%4&ZGUB#$7QB.JF>I7H>D:52&K:PCH&,H<-KIP_F4XU%.3O&K`'D24
MNN@'/2<\J%H8*MAJ'X@`WG?!T(5*">G*ZM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!))XM83`^45V4/NI#UK`R)&M`SMGD9]P1'.C8SU-FI
MYAWD?(C#Q(.LY9)3>?"K]D-V@M*;0"TMV#3+>(N>C?H#2C-6TJNS2[92'7NP
M1J66:41XE6)YGJTAUBZQQ,YPA<#>-'8Z!KXB-8J3;1U[8<8U4G;J>=S5L>/Q
M[_*(DP,$!P3S5XX/+YR&/"9498G+73$:Y;Q$L'R[HA>>4>^B;YU<?,:LI5,7
M+3)WI45)P287O_U@34*74=6S1VSL0+X-B:UC%K#'*7-BAH_3P@*%T7#RC**V
M$D:?N5&!GD!4Q)+X;:O-2N%TLUJW#Z*6,Q2%USE!&CU%_%_KT4<5WQOFW@_J
M;0I(LT4!::I;2`6/6&)N!Q$Q:%HB(P7DZ7*QT5;$*T].[BN)]+QX'U8Q4%B^
MI$HZK`CD,4^3\53194#H]J\TGQCV:YNO0+&^^0K$VC^8I#YSZ/L)`]>#9J>U
M1]UCO-!\1?9"\YD=8S_3?"*S^%=FUAMCD,"R3@<7YX.A9:WJ1]S$QM[-VYLN
MLT%`JD)>P)];1O)EB6BY]NYB"*Q*:#+XT34!>K$0U?V0J<45Y9.]18H:<^4A
-"//5\3_V!/'UKQ(`````
`
end
------------B912C1FC2DD4EE15--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/