Tiny Core Linux

General TC => General TC Talk => Topic started by: hitsware on July 22, 2012, 06:49:05 PM

Title: Can key repeat be turned off ?
Post by: hitsware 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 ?
Title: Re: Can key repeat be turned off ?
Post by: gerald_clark 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.
Title: Re: Can key repeat be turned off ?
Post by: Rich 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
Title: Re: Can key repeat be turned off ?
Post by: tinypoodle on July 23, 2012, 02:26:10 AM
Also check in your BIOS for key repeat.
Title: Re: Can key repeat be turned off ?
Post by: hitsware 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 '
Title: Re: Can key repeat be turned off ?
Post by: Rich on July 24, 2012, 12:33:50 AM
Hi hitsware
Maybe if you add that command to your  bootlocal.sh  file?
Title: Re: Can key repeat be turned off ?
Post by: hitsware on July 24, 2012, 01:27:34 AM
Also check in your BIOS for key repeat.
can't find it in bios
Title: Re: Can key repeat be turned off ?
Post by: tinypoodle on July 24, 2012, 02:39:55 AM
Some BIOS feature a "key repeat" option - but not all.
Title: Re: Can key repeat be turned off ?
Post by: curaga 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.
Title: Re: Can key repeat be turned off ?
Post by: Rich 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.
Title: Re: Can key repeat be turned off ?
Post by: Juanito on July 24, 2012, 09:30:43 AM
Shouldn't that be:
Code: [Select]
echo "#!/bin/sh" > ~/.X.d/repeatoff
 :)
Title: Re: Can key repeat be turned off ?
Post by: Rich on July 24, 2012, 09:37:41 AM
Hi Juanito
Either way seems to work.
Title: Re: Can key repeat be turned off ?
Post by: gerald_clark on July 24, 2012, 10:20:31 AM
Depends on where you happen to be perched at the moment.
Title: Re: Can key repeat be turned off ?
Post by: Rich 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.
Title: Re: Can key repeat be turned off ?
Post by: curaga on July 24, 2012, 12:12:30 PM
Not the script, the redirection ;) Consider if your current dir was /tmp.
Title: Re: Can key repeat be turned off ?
Post by: Rich on July 24, 2012, 12:18:56 PM
Hi curaga
Oh, don't I feel foolish. I didn't notice the added tilde in the path. I will update my post accordingly.
Title: Re: Can key repeat be turned off ?
Post by: tinypoodle on July 24, 2012, 12:22:52 PM
A preceeding simple "cd" could solve this as well ;)