Linux caps lock delay

Linux Mint Forums

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

CAps LOck DElay PRoblem

Post by AiOGajo » Wed Apr 18, 2018 12:21 pm

I am using Linux Mint 18.3 on my laptop, and I am having one problem with the Caps Lock delay.

(PS: Please answers like — «Just use the shift key» are equal to «Just use Windows» since I never had this problem with this OS.)

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: CAps LOck DElay PRoblem

Post by MrEen » Wed Apr 18, 2018 4:47 pm

Hello AiOGajo. Welcome to the forum!

Could you please be more specific about the problem you are having? Just a quick guess, maybe the area around that key could use a little cleaning?

Image

My sound fix tips for Linux Mint

Re: CAps LOck DElay PRoblem

Post by samrux » Wed Apr 18, 2018 5:14 pm

MrEen wrote: ⤴ Wed Apr 18, 2018 4:47 pm Hello AiOGajo. Welcome to the forum!

Could you please be more specific about the problem you are having? Just a quick guess, maybe the area around that key could use a little cleaning?

HEllo, I’M experiencing the same problem. A Google search suggests this has been an issue for years in all kinds of linux distros, and there has been no official bugfix. THe problem resides in that the CAps Lock key takes a fraction of a second after being pressed to disable caps lock, and as such people who use it instead of shift end up messing up their messages in the way displayed here. I thought it was my fault at first, but it’s perfecty reproducible and it only happens in LInux.

I found this script: https://github.com/hexvalid/Linux-CapsLock-Delay-Fixer
It’s meant to run on start-up, and if executed correctly it will fix the issue for the rest of the session. it might cause other issues though, such as disabling caps lock completely sometimes, or acting as though the row of keys above the letters have had shift pressed at the same time, if pressed immediately after caps lock. for example I?m instead of I’m
I don’t know how to make it run on start-up, though; I HAve the following command set with delay 0 in Startup Applications and it doesn’t fix it automatically, but it works manually:

sudo bash -ic "sh /etc/capslockdelayfix/bootstrap.sh"

Re: CAps LOck DElay PRoblem

Post by MrEen » Wed Apr 18, 2018 7:32 pm

Читайте также:  Скрипт для linux for

It’s pretty old, but a few search results seem to offer the same.

Image

My sound fix tips for Linux Mint

Re: CAps LOck DElay PRoblem

Post by Cosmo. » Thu Apr 19, 2018 5:35 am

What is your version of Mint and what is the desktop environment ? Which kernel and which architecture? If you don’t know open a terminal and enter:

You need to give this information for every help request in every thread.
Do not forget this in the future.

lsemmens Level 11
Posts: 3710 Joined: Wed Sep 10, 2014 9:07 pm Location: Rural South Australia

Re: CAps LOck DElay PRoblem

Post by lsemmens » Thu Apr 19, 2018 7:19 am

How much of a delay? I find no issues on any of my machines. I do however have Use Visual and Audible indicators turned on in Accessibility which may, or may not, affect it.

Re: CAps LOck DElay PRoblem

Post by AiOGajo » Fri Apr 20, 2018 9:41 am

Kernel: 4.13.0-38-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm
Distro: Linux Mint 18.3 Sylvia

But this is a problem that I’ve encounter with Linux at least 10 years ago. For example I use this combination of keys:

«CAPS-LOCK» — «M» — «CAPS-LOCK» «E» «R» «Y»

It’s so annoying! I am used to type capital letters this way — and at least there’s a bunch of people that use caps as well and there’s no fix at site.

Re: CAps LOck DElay PRoblem

Post by Cosmo. » Fri Apr 20, 2018 9:50 am

So this cannot be a hardware issue, or do you run LM 118.3 on a 10 years old device?

Are you absolutely sure, that you pressed caps lock and m in the right order? Doing such kind of mistakes (e. g. writing bgu instead of bug) is not so uncommon. Because of this mistake office programs have a autocorrect function for such cases.

Re: CAps LOck DElay PRoblem

Post by AiOGajo » Fri Apr 20, 2018 9:52 am

MrEen wrote: ⤴ Wed Apr 18, 2018 4:47 pm Hello AiOGajo. Welcome to the forum!

Could you please be more specific about the problem you are having? Just a quick guess, maybe the area around that key could use a little cleaning?

HEllo, I’M experiencing the same problem. A Google search suggests this has been an issue for years in all kinds of linux distros, and there has been no official bugfix. THe problem resides in that the CAps Lock key takes a fraction of a second after being pressed to disable caps lock, and as such people who use it instead of shift end up messing up their messages in the way displayed here. I thought it was my fault at first, but it’s perfecty reproducible and it only happens in LInux.

I found this script: https://github.com/hexvalid/Linux-CapsLock-Delay-Fixer
It’s meant to run on start-up, and if executed correctly it will fix the issue for the rest of the session. it might cause other issues though, such as disabling caps lock completely sometimes, or acting as though the row of keys above the letters have had shift pressed at the same time, if pressed immediately after caps lock. for example I?m instead of I’m
I don’t know how to make it run on start-up, though; I HAve the following command set with delay 0 in Startup Applications and it doesn’t fix it automatically, but it works manually:

sudo bash -ic "sh /etc/capslockdelayfix/bootstrap.sh"

I made the changes and it worked. but I do not know how to make a script to run at startup.
Can someone help?

Читайте также:  Можно ли поменять операционную систему linux

Источник

Fix CAps LOck delay in Ubuntu 21.04

I am one of those people who uses CAPS LOCK to capitalize text, so the issue is quite annoying on Linux distros where there is a delay. I had found a fix for this, which included changing the key data in a keyboard map and reloading the keyboard map to my keyboard. This fix no longer works in Ubuntu 21.04. Here’s what I was doing before:

// Create keyboard map xkbcomp -xkb $DISPLAY myxkbmap nano myxkbmap // Replace the part that says key with this: key < repeat=no, type[group1]="ALPHABETIC", symbols[group1]=[ Caps_Lock, Caps_Lock ], actions[group1]=[ LockMods(modifiers=Lock), Private(type=3,data[0]=1,data[1]=3,data[2]=3) ] >; // Reload the file xkbcomp myxkbmap $DISPLAY 

It should be noted that this is not a perfect fix. When typing quickly you’ll notice that the word I’m will result in I»m . This is a major improvement over I’M nonetheless. This works in almost every distro and has historically worked for me in every Ubuntu version to date. When I attempt this in 21.04, it doesn’t work and I’m greeted with this warning after creating the keyboard file:

Warning: Could not load keyboard geometry for :0 BadName (named color or font does not exist) Resulting keymap file will not describe geometry

This is the only difference that I noticed between creating the fix on 20.10 and 21.04, yet when I make the changes and reload the file it doesn’t fix the issue. Any ideas on how to fix this? I’m not going to start using shift haha I would rather use Windows. Clearly, they changed something between 20.10 and 21.04 that’s affecting this.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

That is the capslock delay problem’s fixer script

License

hexvalid/Linux-CapsLock-Delay-Fixer

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Update script suggested by issue 12

Git stats

Files

Failed to load latest commit information.

Читайте также:  Узнать активные порты linux

README.md

Linux CapsLock Delay Fixer

What is the capslock delay problem ?

The problem occurs if you are used to typing capital letters using capslock button instead of shift and if you are writing too fast. For example, you can see the same sentences in Linux;

«HEllo my RAin. HOw are you today?»

There is a delay while switching to lowercase. That problem occurs in every Linux-based operating system since years and it is still not fixed. I’ve tried different desktop computers, laptops, netbooks. Still same.

But this script fixed this problem! Usage

Add bootstrap.sh to your startup programs. For Ubuntu: bash -ic «sh bootstrap.sh»

Tested on Mint 20
Tested on Debian 10 Buster
Tested on Pardus 19
Tested on Ubuntu 14.10
Tested on Ubuntu 20.04
Tested on Arch Linux (Plasma 5)

About

That is the capslock delay problem’s fixer script

Источник

Reduce Caps Lock Delay in Linux

If you are used to using Caps Lock to switch between uppercase and lowercase letters, you’ve probably encountered a delay resulting in second uppercase letter.

A lot of Windows, and to some extent OS X users, are used to using Caps Lock while typing to switch between lowercase and uppercase letters. This is a result of learning how to use keyboard during the first interaction, thus becoming a default habit later on. Some people are saying that using Caps Lock for switching is incorrect and that the correct key for switching between uppercase and lowercase letters is Shift (including its usage for different symbols in numerical keyboard.). Before while the typewriters were in use, Caps Lock was mostly used for writing titles and the mechanical part of typewriter would adjust for it when activating it. If you wanted uppercase letter, you would use Shift while typing.

What’s the problem with Caps Lock?

All Linux distributions have the same behavior. The consequence is presence of delay when switching between uppercase and lowercase letter when using Caps Lock. This is due to the fact that on/off is switched when releasing a key instead of it being switched on key press.

For example if you use Caps Lock when switched the result would be: “LAtest version of Ubuntu Budgie is 17.10”. X Display server emulates behavior of typewriters which outputs the text with delay for first and second letter with third being correctly. This problem in relation to xorg, for example with Ubuntu has been reported multiple times

As well on the the freedesktop bug tracker

There are patches posted in reports which should correct the problem, but it doesn’t fix it completely.

Until that’s solved, or Wayland becomes the norm, we can temporarily fix the problem with the following shell script.

All you have to do is download the files above by cloning repository or by downloading zip file, and place the shell script and xbkmodmap in your /home folder. After that give it executable permission by opening terminal in /home after extraction typing: chmod +x fixer.sh.

After that, add the shell script to the list of startup programs via Startup Application Properties or similar GUI tool. (Add: sh “/home/fixer.sh” )

After next reboot, the delay should be less noticeable.

Источник

Оцените статью
Adblock
detector