Mouse Arrow moving Slowly Using keyboard Keys

182

Solution 1

It's more than likely the delay that you have set for they keyboard repeating keys.

  1. Go to "System Settings"
  2. Click on "Keyboard"
  3. Lower the "Delay" slider under "Repeat Keys"
  4. 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: enter image description here

Source: https://www.repairwin.com/wp-content/uploads/2019/03/image-8.png

Share:
182
Matt
Author by

Matt

Updated on September 18, 2022

Comments

  • Matt
    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 example hi,hello. And if the number of fields is equal to 1, I'd like the program to exit.

    • Admin
      Admin almost 11 years
      Confirmed 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
      user000001 over 10 years
      Do 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
      Matt over 10 years
      @user000001 if NF is equal to 1, I want the WHOLE code to exit.
    • user000001
      user000001 over 10 years
      @ Matin Added an example for that
    • Admin
      Admin about 10 years
      I am having this same problem but this fix did not work for me. Please help.
    • Admin
      Admin almost 8 years
      Possible duplicate of Adjust mouse keys in 12.04?
  • user000001
    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
    Matt over 10 years
    i do :( I have my string is --only:4,3,2,1 lots of commas. but it still exits
  • user000001
    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
    Matt over 10 years
    it worked The problem was <<< "1" I didn't have to put that
  • user000001
    user000001 over 10 years
    @Matin Yes the <<< "1" is a different way of specifying input redirection when the input is a string (equivalent to echo "1" | ...) If the input comes from another command, then you should not add it.
  • Meetai.com
    Meetai.com almost 10 years
    This didn't solved it for me. Running 14.04.
  • elect
    elect almost 7 years
    same with 17.04
  • Zanna
    Zanna over 6 years
    I 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 use xkbset and how you worked out these settings.
  • davidvandebunte
    davidvandebunte about 5 years
    To partially understand the settings, read the man page for xkbset and: en.wikipedia.org/w/…
  • garciparedes
    garciparedes about 3 years
    Awesome answer! In Ubuntu 20.10 the sliders are located on: "Settings" -> "Accessibility" -> "Repeat Keys".
  • Toshik Langade
    Toshik Langade almost 3 years
    This method works even for Windows. Thanks.