Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How to persist keyboard repeat rate and delay for external devices

Post

How to persist keyboard repeat rate and delay for external devices

+3
−0

Problem

I want to set a global keyboard rate for both the X session and the console that persists for external keyboards, across plug-ins and removals. To my understanding, Xorg and console settings have to be configured independently.

Ideally, I'd like to disable repeat rate entirely, which is why the delays in my snippets are so long.

I seem to have a working solution for the X session, but not for the console. The X session solution does not actually disable the keyboard repeat; I'd like it to.

Console

I have a systemd service for setting the keyboard rate in the console, which I have enabled:

/etc/systemd/system/kbdrate.service
-
[Unit]
Description=Keyboard repeat rate in tty.

[Service]
Type=oneshot
RemainAfterExit=yes
StandardInput=tty
StandardOutput=tty
ExecStart=/usr/bin/kbdrate -d 1000 -r 2
 
[Install]
WantedBy=multi-user.target

This works, until I unplug and replug the keyboard.

Xorg

I set this in my .xinitrc:

xset r off

which works, until I unplug and replug the keyboard.

The persistent method seems to be:

/etc/X11/xorg.conf.d/00-keyboard.conf
-
Section "InputClass"
        Identifier "keyboard-rate"
        MatchIsKeyboard "on"
        Option "AutoRepeat" "5000 5000"
EndSection

I am not aware of how to actually disable repeat rate from this config, so I am using a long delay and interval. I would love a solution to this.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Solution suggestions (1 comment)
Ghost title (3 comments)
Solution suggestions
Quasímodo‭ wrote over 1 year ago

Xorg: Option "AutoRepeat" "0 0"

Console: Maybe Udev rules can help