You are not logged in.

#1 2022-08-23 10:59:35

PROBUBBLE01
Member
Registered: 2021-09-07
Posts: 11

[SOLVED] xset rate resets to default after suspending

Hello, i've installed arch linux and i'm using DWM as my window manager. Whenever i put my system to suspend or sleep and turn it back on, the custom xset rate values reset and it is so annoying. This sometimes also happens out of the blue on a fresh boot.  i use .xprofile to set these. here is my .xprofile:

# Compositor
picom & 

# Set Wallpaper
~/.config/fehbg &

# Systray Icon For NetworkManager
nm-applet &

# Status monitor
dwmblocks &

# Notification Server
dunst &

# Keyboard Repeat speed
xset r rate 300 50

i use ly as my display manager and a desktop file to start up dwm, which looks like this:

[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Suckless Window Manager
Exec=dwm > ~/.cache/dwm.log 2>&1
Icon=dwm
Type=XSession

I can provide more info if need be. any help would be awesome

Last edited by PROBUBBLE01 (2022-08-23 12:17:28)

Offline

#2 2022-08-23 11:27:10

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

Re: [SOLVED] xset rate resets to default after suspending

Keyboard gets dis-and reconnected by the S3, use a configlet, if possible:
https://wiki.archlinux.org/title/Xorg/K … up_options

Othrewise you'd have to add a sleep hook, https://wiki.archlinux.org/title/Power_ … stem-sleep (don't forget to export DISPLAY and you might need to delay the invocation briefly if the hook is executed before the keyboard is configured by the server)

Online

#3 2022-08-23 11:49:43

PROBUBBLE01
Member
Registered: 2021-09-07
Posts: 11

Re: [SOLVED] xset rate resets to default after suspending

seth wrote:

Keyboard gets dis-and reconnected by the S3, use a configlet, if possible

Thank you so much for the reply. Is there a downside to this? Also, I'm confused as to why you said "if possible".

Offline

#4 2022-08-23 11:58:00

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

Re: [SOLVED] xset rate resets to default after suspending

Also, I'm confused as to why you said "if possible".

You need to be on control of the server configuration - or ask the system administrator.
Otherwise there's no downside, it's more robust and you can even discriminate input devices.

Online

#5 2022-08-23 12:16:19

PROBUBBLE01
Member
Registered: 2021-09-07
Posts: 11

Re: [SOLVED] xset rate resets to default after suspending

Tried it out and it works like a charm. thank you so much!.  Just to let others know, you have to add an Identifer on this config file, the example in the wiki has it truncated. my config file looks like this

Section "InputClass"
	Identifier "system-keyboard"
	MatchIsKeyboard "on"
	Option "AutoRepeat" "200 30"
EndSection

Offline

Board footer

Powered by FluxBB