Key repeat getting reset

I have the key repeat rate set with dconf

dconf write /org/cinnamon/settings-daemon/peripherals/keyboard/delay "uint32 150"
dconf write /org/cinnamon/settings-daemon/peripherals/keyboard/repeat-interval "uint32 10"

But after the computer stays on for a while the setting changes to the default.

Writing the above commands again doesn’t fix it so it must be changed in some other way than with dconf. All other dconf configurations I have keeps working normally.

I can right click the panel → Troubleshoot → Restart Cinnamon as a workaround.

I’ve had this same problem for a few months and I haven’t been able to figure out what is changing the settings. Is there any way for me to know if there is a program changing the settings?

You can try checking the system logs to see if there are any messages related to changes in the keyboard settings. You can use the command “journalctl -f” to view the logs in real-time and check if there are any messages related to changes in the keyboard settings.

Another option is to use the “strace” command to trace the system calls made by a specific program. For example, you can use “strace -p PID” (where PID is the process ID of the program) to trace the system calls made by that program. This may help you identify if a specific program is making changes to the keyboard settings.

You can also try disabling any keyboard-related services or daemons that may be running on your system, such as gnome-settings-daemon, to see if that stops the settings from changing.

Lastly, you can try searching for any scripts or configuration files that may be running on your system that may be modifying the keyboard settings. These could be located in the /etc/ or /usr/local/etc/ directories.

— ChatGPT

I haven’t found a solution to this issue yet.

It seems that you are experiencing an issue where your key repeat rate settings are resetting to default after your computer stays on for a while. You have mentioned that running the dconf commands again doesn’t fix the issue, and you are currently using the workaround of restarting Cinnamon.

One possible reason for this issue could be a conflict with another program or service that is modifying the keyboard settings. To monitor dconf for changes in real-time, you can use the dconf watch command in a terminal. To monitor the entire tree, you can use dconf watch / [12]. This will show a running output as values change, which might help you identify if any other program or service is changing the settings.

Another option is to search for any scripts or configuration files that may be running on your system and modifying the keyboard settings. These could be located in the /etc/ or /usr/local/etc/ directories[11].

If the issue persists, you can try disabling any keyboard-related services or daemons that may be running on your system, such as gnome-settings-daemon, to see if that stops the settings from changing[11].

Lastly, you may want to consider reporting this issue to the Cinnamon GitHub repository, as other users have reported similar issues with key repeat rate settings[1][8]. This could help the developers identify and fix the problem in future updates.

Citations:
[1] https://github.com/linuxmint/cinnamon/issues/11602
[2] https://github.com/linuxmint/cinnamon-settings-daemon/issues/347
[3] https://stackoverflow.com/questions/59177743/how-to-reset-restart-cinnamon-if-the-panels-become-invisible
[4] https://askubuntu.com/questions/400911/changing-keyboard-rate-for-initial-keypress-in-ubuntu
[5] https://www.reddit.com/r/gnome/comments/x1pxth/how_can_i_check_modifiedchanged_settings_in_dconf/
[6] https://forums.linuxmint.com/viewtopic.php?f=47&t=359681
[7] https://discussions.apple.com/thread/253292818
[8] https://github.com/linuxmint/cinnamon/issues/11457
[9] https://forums.linuxmint.com/viewtopic.php?t=217250
[10] https://askubuntu.com/questions/143838/how-do-i-restart-cinnamon-from-the-tty
[11] https://forum.manjaro.org/t/key-repeat-getting-reset/131030
[12] https://askubuntu.com/questions/359593/is-it-possible-to-monitor-dconf-for-changes
[13] https://stackoverflow.com/questions/28344571/change-keyboard-shortcuts-in-cinnamon-does-not-work
[14] https://bbs.archlinux.org/viewtopic.php?id=208876
[15] https://www.technipages.com/linux-mint-how-to-configure-the-key-repeat-delay-and-speed/
[16] https://unix.stackexchange.com/questions/685162/mint-cinnamon-cannot-add-keyboard-layout-anymore
[17] https://unix.stackexchange.com/questions/698992/how-can-i-restart-the-cinnamon-panel-keyboard-layout-selector
[18] https://blog.rodolfocarvalho.net/2017/01/configuring-keyboard-repeat-rate-on.html
[19] https://www.makeuseof.com/access-hidden-gnome-desktop-settings-dconf-editor/
[20] https://www.cclaude.rocks/linux-wiki/mint/reset-cinnamon-settings/
[21] https://forums.linuxmint.com/viewtopic.php?t=342583
[22] https://askubuntu.com/questions/846030/how-to-set-keyboard-repeat-delay-and-speed-in-ubuntu-gnome-16-10
[23] https://bugzilla.redhat.com/show_bug.cgi?id=1978276
[24] https://www.linux.org/threads/linux-mint-cinnamon-how-to-reset-panel-settings-default.31389/
[25] https://kb.parallels.com/en/124863
[26] https://unix.stackexchange.com/questions/687514/how-to-change-dconf-settings-in-chrooted-mode-via-terminal
[27] https://www.reddit.com/r/linuxquestions/comments/tbj2mp/anyone_know_how_to_reset_keyboardshortcut_to/
[28] https://forums.linuxmint.com/viewtopic.php?t=140948
[29] https://tldp.org/HOWTO/Keyboard-and-Console-HOWTO-17.html
[30] https://bbs.archlinux.org/viewtopic.php?id=171274
[31] https://forums.linuxmint.com/viewtopic.php?t=205044
[32] https://www.reddit.com/r/Ubuntu/comments/n4qgfe/my_solution_to_get_faster_keyboard_key_input/
[33] https://www.putorius.net/gnome-advanced-power-settings-dconf-editor.html
[34] https://developercommunity.visualstudio.com/content/problem/505881/unable-to-reset-keyboard-shortcuts-to-default.html
[35] https://discussions.apple.com/thread/252323263
[36] https://packages.debian.org/bullseye/cinnamon-settings-daemon
[37] https://www.youtube.com/watch?v=XGA1ue9T7SY
[38] https://stackoverflow.com/questions/67266828/ubuntu-20-04-occasionally-disables-key-repetition
[39] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/configuration-overview-gsettings-dconf
[40] https://wiki.archlinux.org/title/cinnamon
[41] https://ludditus.com/2016/07/15/microsoft-the-keyboard-repeat-rate-and-sleeping-how-to-work-around-their-idiocy/
[42] http://billauer.co.il/blog/2023/05/cinnamon-volume-buttons-dbus/
[43] https://discussion.fedoraproject.org/t/cinnamon-missing-panel/73401
[44] https://raspberrypi.stackexchange.com/questions/99913/permanently-set-keyboard-repeat-rate-on-raspberry-pi
[45] https://linuxconfig.org/introduction-to-the-dconf-configuration-system
[46] https://packages.fedoraproject.org/pkgs/cinnamon-settings-daemon/cinnamon-settings-daemon/fedora-rawhide.html
[47] https://www.reddit.com/r/linuxmint/comments/mrts3v/i_tried_restarting_cinnamon_but_this_keeps/
[48] https://manpages.ubuntu.com/manpages/trusty/man7/dconf.7.html

— AI