You are not logged in.

#1 2022-06-14 21:11:00

lfitzgerald
Member
Registered: 2021-07-16
Posts: 175

[SOLVED] X settings get reset when I change screens

I have KVM switch connected to my computer. There are also some keyboard settings I customize by putting "xset" etc. in my i3 config. This works fine, but when I switch screens with the KVM, the X settings get reset. I'm guessing what happens is that autorandr detects changing monitors and drops the X stuff.

How do I make it persist? I know there's a hook for autorandr, but does that mean I'd have to maintain a separate X config script, which I then source from the hook and the i3 config? Or is there a simpler way?

Last edited by lfitzgerald (2022-06-18 00:15:46)

Offline

#2 2022-06-15 05:11:06

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

Re: [SOLVED] X settings get reset when I change screens

I'm guessing what happens is that autorandr detects changing monitors and drops the X stuff.

It's probably rather gonna be the keyboard (instead of guessing, check the xorg log, https://wiki.archlinux.org/title/Xorg#General )

Also what settings in particular? Autorepeat?

keyboard settings I customize by putting "xset" etc. in my i3 config. This works fine, but when I switch screens with the KVM, the X settings get reset.

https://wiki.archlinux.org/title/Xorg/K … tion_files

Offline

#3 2022-06-15 21:14:13

lfitzgerald
Member
Registered: 2021-07-16
Posts: 175

Re: [SOLVED] X settings get reset when I change screens

seth wrote:

It's probably rather gonna be the keyboard (instead of guessing, check the xorg log, https://wiki.archlinux.org/title/Xorg#General )

Good idea, I'll check the log!

seth wrote:

Also what settings in particular? Autorepeat?

Autorepeat, and some remaps like swapping caps lock and escape. I think I just took the path of least resistance by putting the command in i3's init, and then forgot that there are better options smile I'll try making a config, and post here with the result. Thank you!

Offline

#4 2022-06-16 23:11:40

lfitzgerald
Member
Registered: 2021-07-16
Posts: 175

Re: [SOLVED] X settings get reset when I change screens

Well, looking at this more closely, I don't understand how I would set the typematic delay and repeat rate with xorg.conf files. The wiki only explains how to use xset.

Offline

#5 2022-06-17 06:17:04

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

Re: [SOLVED] X settings get reset when I change screens

https://cgit.freedesktop.org/xorg/xserv … 907ffee66b
It's apparently not even in the manpage (the feature was "lost" for over a decade, https://www.phoronix.com/scan.php?page= … AutoRepeat )
This might justify a notion of the option in the wiki.

Offline

#6 2022-06-18 00:15:23

lfitzgerald
Member
Registered: 2021-07-16
Posts: 175

Re: [SOLVED] X settings get reset when I change screens

Thank you, that option worked.

Offline

Board footer

Powered by FluxBB