From 556aa785e865337967e7afe88075ab78b66f350b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 16 Jan 2020 12:15:14 +0100 Subject: [PATCH] input: invoke autorandr explicitely Acting on DRM change is a bad idea as monitors come and go during detection and autorandr running in parallel is not reliable enough. --- bin/input-event | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/input-event b/bin/input-event index c943d97..cfe8ff6 100755 --- a/bin/input-event +++ b/bin/input-event @@ -19,6 +19,11 @@ case "$event,$use,$(uname -n),$name" in XIDeviceDisabled,*) : ;; + *,XISlaveKeyboard,*,"Topre Corporation Realforce 87") + sleep 2 + autorandr --change + xkb default + ;; *,XISlaveKeyboard,zoro,"AT Translated Set 2 keyboard") xkb x1 ;;