How to adjust keyboard repeat rate? SOLVED

Booting, installing, newbie
Post Reply
Message
Author
User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

How to adjust keyboard repeat rate? SOLVED

#1 Post by Varmint »

Is anyone aware of a a way to re-adjust the keyboard repeat rate while using x-vesa? I tried this once in x-org, and that doesn't work too well either. Never had this problem with earlier bios, but a real problem in any recent system. I'm using a gateway P-III/450mhz. Dingo otherwise ROCKS!
I've noticed this is a problem with ALL live CD's. Amazing nobody thinks of this when building these distros!


UPDATE: Elsewhere in this thread (my final post) I detailed an elegant solution for this.
Last edited by Varmint on Sat 08 Jan 2011, 17:00, edited 2 times in total.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

Gxset should be in the menu for that. I'm not sure if something replaced it in Puppy 4 or what, but if you can't find anything, run `xset -h` in a terminal and it is fairly straightforward to figure out how to use.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Bruce B

#3 Post by Bruce B »

Dingo 4.00 has a gui utility but I don't think it holds settings between reboots. A shell script placed in ~/Startup can set the delay and repeat rate on each boot.

This may not look right but it works:

xset r rate 250 32 for a delay of .250 sec and a repeat rate of 32 per sec

Check it, if you want, after Xvesa starts with xset q

User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

kbd rate in X-Vesa, not X-org

#4 Post by Varmint »

Sorry, guys, but it appears you didn't pay attention to my earlier post. I'm trying to adjust the keyboard rate in X-Vesa. X-org is fine if you have a newer & faster system. It will not work reliably in slower systems than, say, 5000mhz like mine. The utillity for this is readily visable in x-org, and needs little, if any, elaboration. What I can't understand is the absolute absence of such a utility in x-vesa, where it is just as necessary as in faster systems. It is a major oversite, and I just can't understand how it always gets overlooked in virtually EVERY live cd distro I've looked at. Am I the only one that can't type that fast? And why should I have to, anyway?
That said, I appreciate the input from everyone. I'll take a look at the config files for dingo and see if I can find a way to do this here, but it looks like it won't happen.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#5 Post by Béèm »

I have setup a virtual (qemu) PC running in xvesa.

If you type Xvesa in a rxvt terminal you get a long list of options. At first quick sight I don't see anything for keyboard rate only setting for autorepeat.

But it could be your starting point.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#6 Post by Béèm »

pfffft. The double posting problem strikes again.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Bruce B

Re: kbd rate in X-Vesa, not X-org

#7 Post by Bruce B »

Varmint wrote:Sorry, guys, but it appears you didn't pay attention to my earlier post. I'm trying to adjust the keyboard rate in X-Vesa.
I did and my answer is for Xvesa.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#8 Post by Béèm »

My Xvesa virtual machine is lacking the extension "Xfree86-Misc" in Xlib.
So the xset r rate cmd isn't executed.
But should be valid for Xvesa
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Bruce B

#9 Post by Bruce B »

Béèm wrote:My Xvesa virtual machine is lacking the extension "Xfree86-Misc" in Xlib.
So the xset r rate cmd isn't executed.
But should be valid for Xvesa
Béèm,

I'm on a borrowed Win machine, so I can't do the checking and verifying I'd otherwise do.

I think it is successfully executed. You can check the truth with xset q

The problem is that its execution is good for one X session only, that's why I wrote to put the command in ~/Startup, so it runs one time for each new X(vesa) session.

Check and see if it works that way, OK?

Bruce

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#10 Post by Béèm »

Ok Bruce I see what you mean.

I made this script and did put it in ~Startup

Code: Select all

#!/bin/sh
xset r rate 250 32
and rebooted. I then executed xset q

Code: Select all

# xset q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  auto repeat delay:  250    repeat rate:  32
  auto repeating keys:  00ffffffdffffbbf
                        fadfffffffedffff
                        ffffffffffffffff
                        ffffffffffffff7f
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
  /usr/X11R7/lib/X11/fonts/misc/,/usr/X11R7/lib/X11/fonts/TTF/,/usr/X11R7/lib/X11/fonts/Type1/,/usr/X11R7/lib/X11/fonts/Type1/,/usr/X11R7/lib/X11/fonts/TTF/
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Display is not capable of DPMS
#

It seems that the script did execute properly, as I didn't had the auto repeat delay: statement before.

So your idea seems to be the solution.

EDIT:
Wonder why I did get that long line. :oops:
It's just a copy/paste from the rxvt terminal.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Bruce B

Re: How to adjust keyboard repeat rate?

#11 Post by Bruce B »

Varmint,

By your first post, I thought you wanted to control the delay and rate. I've shown that.

If you want to simply turn it off for no autorepeat, this command:

xset -r

Bruce

User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

kbd rpt rate

#12 Post by Varmint »

Thanks Bruce, for your reply. I did modify the argument, however to reflect my intended purpose, thus:

"xset r off" which I typed in the console window. Nice. Real nice. It doesn't turn it off completely, but it sure slows it down considerably, and to my liking. I'm going to do the other command you listed, and try the script also mentioned. As far as I can tell, this should work, or some variant thereof, in just about any distro, which is almost as good as having it controlled in the system bios. The bios solution is, imho, the finest/simplest solution for this, but I'm too lazy to modify/re-burn my bios chip just to tinker with it. Not even certain if it would work on modern systems, but since this seems to work, fine with me! Thanks again!

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#13 Post by Béèm »

When all is to your liking can you update your initial post and add [SOLVED] to the subject line?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

Solved

#14 Post by Varmint »

Thanks for all the quick & helpful replies, gang! Works great now, and is such a simple solution for old/arthritic slow fingers like mine!

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#15 Post by Béèm »

Glad you're happy with puppy. :D
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

Real Solution for Keyboard Rate

#16 Post by Varmint »

I got into the /etc/rc.d/rc.local file and added the following line of code:

kbdrate -r 25 -d 975

Close the file and reboot. When you reboot, you'll find you can type at a normal speed, even if you have old, slow fingers like me. I entered this line in the "rc.local" file in EVERY distro I have on every PC. Works like a charm, even from the command line, unlike a lot of the earlier solutions I've seen that work only under X.

What this means to newbies and others is that when you get to your login prompt, you won't have to worry about how fast or slow you type, so you won't get so many retries. Simple and elegant.

Once upon a time when computer manufacturers were far more bright this was handled in the bios, but I suspect this was relegated to the OS once the need arose for USB and other items that needed controled from there. After all, there's only so much space in a rom chip.

Enjoy....73

Post Reply