Mouse Arrow moving Slowly Using keyboard Keys
Solution 1
It's more than likely the delay that you have set for they keyboard repeating keys.
- Go to "System Settings"
- Click on "Keyboard"
- Lower the "Delay" slider under "Repeat Keys"
- Raise the "Speed" slider under "Repeat Keys"
Comment back if this doesn't solve the problem.
Solution 2
I use these commands:
sudo apt-get install xkbset
xkbset ma 60 10 10 5 2
Solution 3
Use gsettings to change the speed parameters keys.
-
To find these keys I used:
gsettings list-recursively | grep keyboard | grep mouse
I found:
org.gnome.desktop.a11y.keyboard mousekeys-max-speed 10 org.gnome.desktop.a11y.keyboard mousekeys-init-delay 300 org.gnome.desktop.a11y.keyboard mousekeys-accel-time 300 org.gnome.desktop.a11y.keyboard mousekeys-enable true
-
To know what each key does I use:
gsettings describe org.gnome.desktop.a11y.keyboard mousekeys-max-speed; gsettings describe org.gnome.desktop.a11y.keyboard mousekeys-init-delay; gsettings describe org.gnome.desktop.a11y.keyboard mousekeys-accel-time; gsettings describe org.gnome.desktop.a11y.keyboard mousekeys-enable;
-
I performed the following procedure to change these keys:
gsettings set org.gnome.desktop.a11y.keyboard mousekeys-max-speed 2000; gsettings set org.gnome.desktop.a11y.keyboard mousekeys-init-delay 20; gsettings set org.gnome.desktop.a11y.keyboard mousekeys-accel-time 2000; gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable true;
These key values are personal, you must enter the values that are suitable for you.
The image below shows how to control your cursor:
Source: https://www.repairwin.com/wp-content/uploads/2019/03/image-8.png
Matt
Updated on September 18, 2022Comments
-
Matt over 1 year
I have the following code in shell.
It does not work. So I don't know what's my mistake I was wondering if someone could help me
echo $i | awk -F "," '{if(NF == 1) print "Exiting..." system("exit")}'
so
$i
is a parameter for examplehi,hello
. And if the number of fields is equal to 1, I'd like the program to exit.-
Admin almost 11 yearsConfirmed on an Ubuntu 12.10. Same problem: the cursor moves extremely slow when using the keyboard keys. Unfortunately, Fly's post didn't show any improvements.
-
user000001 over 10 yearsDo you want the script that contains the above code to exit? Since the awk command runs in a different process you cannot exit like this. You could however call the exit command (without system) from awk, with a specific exit code, and then check awk's exit code from the shell script.
-
Matt over 10 years@user000001 if NF is equal to 1, I want the WHOLE code to exit.
-
user000001 over 10 years@ Matin Added an example for that
-
Admin about 10 yearsI am having this same problem but this fix did not work for me. Please help.
-
Admin almost 8 yearsPossible duplicate of Adjust mouse keys in 12.04?
-
-
user000001 over 10 years@Matin It shouldn't exit for
NF>1
. Perhaps you did not separate the fields with comma (,
)? Also note that you forgot a set of curly brackets in the code in your question -
Matt over 10 yearsi do :( I have my string is
--only:4,3,2,1
lots of commas. but it still exits -
user000001 over 10 years@Matin Strange... Try
echo "1,2,3 " | awk -F "," '{if(NF==1){ print NF "Exiting"; exit -1}}' || exit
. I did it on my system and it worked... -
Matt over 10 yearsit worked The problem was
<<< "1"
I didn't have to put that -
user000001 over 10 years@Matin Yes the
<<< "1"
is a different way of specifying input redirection when the input is a string (equivalent toecho "1" | ...
) If the input comes from another command, then you should not add it. -
Meetai.com almost 10 yearsThis didn't solved it for me. Running 14.04.
-
elect almost 7 yearssame with 17.04
-
Zanna over 6 yearsI don't have a numeric keypad, so I can't test your answer, but
xkbset
seems like a good solution here. It would be great if you could explain a little how to usexkbset
and how you worked out these settings. -
davidvandebunte about 5 yearsTo partially understand the settings, read the man page for xkbset and: en.wikipedia.org/w/…
-
garciparedes about 3 yearsAwesome answer! In Ubuntu 20.10 the sliders are located on: "Settings" -> "Accessibility" -> "Repeat Keys".
-
Toshik Langade almost 3 yearsThis method works even for Windows. Thanks.