WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can key repeat be turned off ?  (Read 4539 times)

Offline hitsware

  • Jr. Member
  • **
  • Posts: 97
Can key repeat be turned off ?
« on: July 22, 2012, 06:49:05 PM »
Or at least slowed down ?
And
It seems like the minimize button on the windows
actually acts like close ?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Can key repeat be turned off ?
« Reply #1 on: July 22, 2012, 07:48:06 PM »
Just seems that way.
Right click or the desktop, select your window and click on the running program to pop it back up.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Can key repeat be turned off ?
« Reply #2 on: July 22, 2012, 08:02:15 PM »
Hi hitsware
To turn off key repeat:
Code: [Select]
xset -rIf you don't have xset on your system, install one of the following:
Xorg-7.5-bin.tcz
Xorg-7.6-bin.tcz
Xlibs.tcz

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Can key repeat be turned off ?
« Reply #3 on: July 23, 2012, 02:26:10 AM »
Also check in your BIOS for key repeat.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline hitsware

  • Jr. Member
  • **
  • Posts: 97
Re: Can key repeat be turned off ?
« Reply #4 on: July 23, 2012, 11:11:51 PM »
Hi hitsware
To turn off key repeat:
Code: [Select]
xset -r
That works but doesn't seem to ' persist '

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Can key repeat be turned off ?
« Reply #5 on: July 24, 2012, 12:33:50 AM »
Hi hitsware
Maybe if you add that command to your  bootlocal.sh  file?

Offline hitsware

  • Jr. Member
  • **
  • Posts: 97
Re: Can key repeat be turned off ?
« Reply #6 on: July 24, 2012, 01:27:34 AM »
Also check in your BIOS for key repeat.
can't find it in bios

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Can key repeat be turned off ?
« Reply #7 on: July 24, 2012, 02:39:55 AM »
Some BIOS feature a "key repeat" option - but not all.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Can key repeat be turned off ?
« Reply #8 on: July 24, 2012, 03:51:02 AM »
Hi hitsware
Maybe if you add that command to your  bootlocal.sh  file?

It's an X util, so it needs to run with X running.
The only barriers that can stop you are the ones you create yourself.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Can key repeat be turned off ?
« Reply #9 on: July 24, 2012, 09:25:46 AM »
Hi hitsware
I stand corrected, don't add the command to your bootlocal.sh file, instead execute:
Code: [Select]
echo "#!/bin/sh" > ~/.X.d/repeatoff
echo "xset -r" >> ~/.X.d/repeatoff
chmod 775 ~/.X.d/repeatoff
That will create a script which runs the xset command every time the GUI starts.
« Last Edit: July 24, 2012, 12:20:32 PM by Rich »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Can key repeat be turned off ?
« Reply #10 on: July 24, 2012, 09:30:43 AM »
Shouldn't that be:
Code: [Select]
echo "#!/bin/sh" > ~/.X.d/repeatoff
 :)

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Can key repeat be turned off ?
« Reply #11 on: July 24, 2012, 09:37:41 AM »
Hi Juanito
Either way seems to work.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Can key repeat be turned off ?
« Reply #12 on: July 24, 2012, 10:20:31 AM »
Depends on where you happen to be perched at the moment.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Can key repeat be turned off ?
« Reply #13 on: July 24, 2012, 12:03:04 PM »
Hi gerald_clark
Quote
Depends on where you happen to be perched at the moment.
I don't think so. From  fs/binfmt_script.c  of the 3.0.3 Tinycore source:
Code: [Select]
        if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!') ||
            (bprm->recursion_depth > BINPRM_MAX_RECURSION))
                return -ENOEXEC;
This tests the first two characters to see if they are #!, if not, it exits.
A little further down in the code:
Code: [Select]
        for (cp = bprm->buf+2; (*cp == ' ') || (*cp == '\t'); cp++);
        if (*cp == '\0')
                return -ENOEXEC; /* No interpreter name found */
        i_name = cp;
The first line starts scanning one character past the #! (the bprm->buf+2 part) for the first character that is not a
space or a tab. If that character is not zero, i_name points to  /bin/sh.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Can key repeat be turned off ?
« Reply #14 on: July 24, 2012, 12:12:30 PM »
Not the script, the redirection ;) Consider if your current dir was /tmp.
The only barriers that can stop you are the ones you create yourself.