[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kbdrate set by normal users



Jason Pepas, 2002-Oct-06 18:11 -0500:
> hello,
> 
> I would like to change the default keyboard repeat rate.
> 
> I have tried writting a /etc/ini.d/kbdrate.sh script, but it does not seem to 
> change things globally.
> 
> any ideas?
> 
> thanks,
> jason pepas

Hey Jason,

I'm not sure I know what you mean by "globally".  Do you mean for all
users?  Does it work at all?

I do this on my laptop (Woody, 2.4.19) through the use of APMD.  I put
the script below in /etc/apm/resume.d/ called typematic:

<bof>
#!/bin/sh
# Set keyboard repeat rate to something fast
case "$1" in
    resume|start)
         if [ -f /sbin/kbdrate ]; then
             kbdrate -r 30 -d 250
         else
         exit 1
         fi
         ;;
    *)
         exit 0
         ;;
esac
<eof>

It seems to work when the system is rebooted too, although I don't
understand how.  Also, if your script doesn't work at all at boot, it
could be because you haven't place a link to it in /etc/rc2.d.

jc


--
Jeff Coppock		Systems Engineer
Diggin' Debian		Admin and User



Reply to: