You are not logged in.

#1 2023-08-19 07:24:46

dr1fter
Member
From: Germany
Registered: 2022-01-21
Posts: 58

[cinnamon] keyboard rate is sporadically reset to very slow

I set my keyboard rate (and delay) using

xset r rate 200 90 # delay: 200ms, rate: 90/s

Starting some months ago, this setting is sporadically being reset to much slower values (very long delay, low repetition rate). I observed a very odd pattern for this to happen.

I usually only reboot my machine every few weeks (e.g. for kernel version updates) and typically put it to sleep (`systemctl suspend`) when not working on it.

Both (immediately) after rebooting, or (immediately) after resuming from sleep, keyboardrate is always as expected / as it was before. However, every now and then (maybe about half of the time), during maybe the first hour after having resumed from sleep, keyboardrate will reset to unbearingly slow values. This can be fixed by "xsetting" values back to my preference. I never observed the keyboardrate to have been ever reset for a second time during the same "working session".

Any ideas as to how this might be traced back to root cause very appreciated.

Offline

#2 2023-08-19 11:48:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: [cinnamon] keyboard rate is sporadically reset to very slow

The immediate cause will be that the keyboard re-attaches, root cause could be (USB) powersaving (autosuspend) or a wonky cable/signal.
The mitigation is the same:
https://wiki.archlinux.org/title/Xorg/K … ion_option

Offline

#3 2023-08-19 14:24:22

dr1fter
Member
From: Germany
Registered: 2022-01-21
Posts: 58

Re: [cinnamon] keyboard rate is sporadically reset to very slow

thanks! will configure according to the Xorg-related wiki-article and update this thread in a couple of days, stating whether or not this resolve my issue

Last edited by dr1fter (2023-08-19 14:24:45)

Offline

#4 2023-08-23 05:24:12

dr1fter
Member
From: Germany
Registered: 2022-01-21
Posts: 58

Re: [cinnamon] keyboard rate is sporadically reset to very slow

so after some more reboots / resumes, I can report the instructions below https://wiki.archlinux.org/title/Xorg/K … ion_option did not fix the issue for me. I will now try to xautocfg

Offline

#5 2023-08-23 05:59:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: [cinnamon] keyboard rate is sporadically reset to very slow

Please post an xorg log - ideally covering the rate drop, if you have.
The server config changes the default - if it's indeed applied, something™ might explicitly change the rate (check "xset q"), what is going to be a problem in terms of identifying "something".

Offline

#6 2023-08-23 06:27:19

dr1fter
Member
From: Germany
Registered: 2022-01-21
Posts: 58

Re: [cinnamon] keyboard rate is sporadically reset to very slow

sure: http://0x0.st/H9Ht.log.gz (I gzipped the logfile). This logfile is from today, and seems to include the resume-operation from today, after which keyboardrate was (again) reset

I also checked `xset q` - however only after resetting keyboardrate. It shows the same values I set (delay: 200, repeat rate: 90). I can try the same after next time my settings will be reset (I assume it will then show different values). As far as I can tell, the output of xset q does not seem to contain indications as to sources of changes to displayed configuration, though

Last edited by dr1fter (2023-08-23 06:30:54)

Offline

#7 2023-08-23 06:32:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: [cinnamon] keyboard rate is sporadically reset to very slow

[     4.594] (==) Using config file: "/etc/X11/xorg.conf"
[     4.594] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     4.594] (==) ServerLayout "Layout0"
[     4.594] (**) |-->Screen "Screen0" (0)
[     4.594] (**) |   |-->Monitor "Monitor0"
[     4.594] (**) |   |-->Device "Device0"
[     4.594] (**) |-->Input Device "Keyboard0"
[     4.594] (**) |-->Input Device "Mouse0"

Get rid of the nvidia-settings generated, static config.

Also post the xorg.conf.d configlet your added for this - whether because of the static config or some other mistake: No "AutoRepeat" option was ever applied here.

Edit: the journal starts

[     4.594] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Aug 17 16:54:08 2023

It's either the wrong file or the server was never restarted after adding the config (as this thread only starts Aug, 19th)

Last edited by seth (2023-08-23 06:33:40)

Offline

#8 2023-08-23 06:58:45

dr1fter
Member
From: Germany
Registered: 2022-01-21
Posts: 58

Re: [cinnamon] keyboard rate is sporadically reset to very slow

the last update to Xorg.0.log, according to `ls` is `Aug 23 07:19` (so from today). I did not reboot my machine since I created this posting (however, I did put it to sleep, and resumed from sleep again, last time a few hours ago (shortly before I updated this thread).

So you say the option I added to `/etc/X11/xorg.conf.d/00-keyboard.conf` will only become effective after restarting X11 (makes sense..)?

This is the contents I added into the aforementioned cfg-file:

Section "InputClass"
  Option: "AutoRepeat" "200 90"
EndSection

Get rid of the nvidia-settings generated, static config.

As in: remove the entries nvidia-settings seems to have written into /etc/X11/xorg.conf? All of them, or just the ones related to `InputDevice`? I am not too familiar w/ those specific cfg-files; will I not change e.g. my display configuration if I do?

Offline

#9 2023-08-23 07:09:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: [cinnamon] keyboard rate is sporadically reset to very slow

So you say the option I added to `/etc/X11/xorg.conf.d/00-keyboard.conf` will only become effective after restarting X11 (makes sense..)?

Yes.
Post the updated xorg log afterwards.

As in: remove the entries nvidia-settings seems to have written into /etc/X11/xorg.conf? All of them

Yes. Most of them are cruft or pointless. If you want specifics like CoolBits or (not present) TripleBuffering etc., use
/etc/X11/xorg.conf.d/20-nvidia.conf

Section "Device"                                                
    Identifier "My nvidia GPU"
    Driver  "nvidia"
…
EndSection

Edit: also the added inputsection configlet is bogus, you need to match something and the syntax is wrong. The colon is illegal syntax.
https://wiki.archlinux.org/title/Xorg/K … tion_files

Last edited by seth (2023-08-23 07:11:41)

Offline

Board footer

Powered by FluxBB