LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 7, Laptop, Key repeating doesn't work (https://www.linuxquestions.org/questions/linux-newbie-8/centos-7-laptop-key-repeating-doesnt-work-4175689314/)

Vargan_Hell 01-26-2021 03:10 PM

CentOS 7, Laptop, Key repeating doesn't work
 
Hello!
I am new to Linux and right as I installed CentOS 7 on my laptop I have encountered the issue.
When I press any button and hold it, it does not auto-repeat.
I have tried to google the issue, but had no success.

What I have tried:

1) Turning auto-repeat on (off and on, changing delay and repeat rate) in keybord settings
2) Using "xset r" command in terminal, no result
3) Using "sudo kbdrate -r 4" command in terminal yields "read: Operation not permitted"

"xinput list" yields:

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ASUSTeK Computer Inc. N-KEY Device id=12 [slave pointer (2)]
⎜ ↳ Logitech Gaming Mouse G502 id=13 [slave pointer (2)]
⎜ ↳ Logitech Gaming Mouse G502 id=14 [slave pointer (2)]
⎜ ↳ ELAN1205:00 04F3:30E9 Touchpad id=15 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ ASUSTeK Computer Inc. N-KEY Device id=10 [slave keyboard (3)]
↳ ASUSTeK Computer Inc. N-KEY Device id=11 [slave keyboard (3)]

redd9 02-24-2021 02:19 PM

Hmmm... does
Code:

sudo gsettings set org.gnome.desktop.peripherals.keyboard repeat true
do anything?

Vargan_Hell 02-25-2021 08:41 AM

Sadly, no...
After entering my sudo password the code ran without showing anything in the terminal. But it didn't fix the problem.

Gad 02-25-2021 09:14 AM

I assume the keyboard works fine other than the repeated keys option.

Out of interest can you send the output of
Code:

cat /etc/default/keyboard
Are you using a GUI? If so there is normally a "enable key repeat" option in the keyboard settings

Vargan_Hell 02-25-2021 09:59 AM

The keyboard works fine indeed.

The code outputs:
Code:

cat: /etc/default/keyboard: No such file or directory
I am using KDE GUI, and I tried enabling "key repeat" option in keyboard settings with no results. Additionally I tried changing repeat rate and repeat delay, but it didn't help ether.

Gad 02-25-2021 10:15 AM

What about posting the output of

Code:

localectl status
Just curious

Vargan_Hell 02-25-2021 10:21 AM

localectl status outputs:
Code:

  System Locale: LANG=en_US.UTF-8
      VC Keymap: us
      X11 Layout: us


Gad 02-25-2021 10:58 AM

Seems fine but I did expect to see more options, specifically something like "pc105" or similar but doubt its a train smash.

Code:

 
  System Locale: LANG=en_ZA.UTF-8
                  LANGUAGE=en_ZA:en
      VC Keymap: n/a
      X11 Layout: us
      X11 Model: pc105

Are you able to replicate the problem on a live distro?

Vargan_Hell 02-26-2021 03:37 AM

I was able to replicate the problem on a live version.
I downloaded the CentOS-7-live-KDE-x86_64.iso from here: https://buildlogs.centos.org/centos/...86_64/?C=D;O=A

Every method discussed in this thread thus far didn't seem to work on live version.

There were some differences that might be important:

1) "localectl status" on live version gave
Code:

System Locale: LANG=en_GB.UTF-8
    VC Keymap: us
  X11 Layout: us

2) Linux and KDE versions are slightly different between what I have and the live distro.
My Linux: CentOS 7 3.10.0-1160.15.2.el7.x86_64 ; KDE SC Version 4.14.8
Live Linux: CentOS 7 3.10.0-123.el7.x86_64 ; KDE SC Version 4.10.5

Another thing which may or may not be relevant: I updated my packages via "yum update", ergo additional numbers in my Linux version (CentOS 7 3.10.0-1160.15.2.el7.x86_64)

Gad 02-26-2021 05:18 AM

I am really not sure what else to suggest, if I didn't know any better I would think there is a issue with the hardware support but this does not happen very often in my experience so its just me thinking out loud. Could even be a bug but since you tested on 2 different version I am not quite sure it could be that. Perhaps maybe one of the more senior members might weigh-in.

What is the make and model number of your laptop? Is there a specific reason why you chose to use CentOS 7?

I don't want to put you in a position where I am throwing different distros at the problem to see which one works but out of interest are you able to try on another flavour of Linux? lets say something like Debian or Ubuntu or similar.

shruggy 02-26-2021 06:49 AM

Quote:

Originally Posted by Vargan_Hell (Post 6224393)
After entering my sudo password

Try the same without sudo. gsettings changes GNOME settings for the currently logged-in user, it's not supposed to be run as root.

DavidMcCann 02-26-2021 10:41 AM

I've checked at the CentOS forum and no-one else has reported this problem.

The first possibility is that it's KDE — Red Hat is very geared to Gnome. The command
Code:

dnf group list | grep gnome
should show you the name of the package to install gnome to see if that works. Alternatively, you could install Xfce which is a smaller download.

The second is that it's the combination of CentOS 7 and your hardware, in which case you might want to try CentOS 8.


All times are GMT -5. The time now is 04:30 AM.