From ae2542e86a4e2ee222a8e666f1b85999bd8bc43c Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 23 Jan 2021 16:52:03 +0100 Subject: [PATCH] Small update to the custom event scripts documentation. --- INSTALL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index bbfd676f8..ec539901b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1521,11 +1521,11 @@ Then create the end script, which we'll name `set_resolution_4K.sh`: ``` #!/bin/sh xrandr -s 3840x2160 -xdotool search --class emulationstation windowactivate +sleep 0.3 xdotool search --class emulationstation windowactivate ``` -The last two lines are optional, they're used to set the focus back to ES-DE in case you're running attention-seeking applications such as Kodi which seems to love to steal focus after resolution changes. Not sure why you need to run the command twice though, probably it's due to some kind of timing or race condition issue. +The last two lines are optional, they're used to set the focus back to ES-DE in case you're running attention-seeking applications such as Kodi which may steal focus after resolution changes. You may need to adjust the sleep time to get this to work reliably though, as the timing may differ between different computers and graphics drivers. After creating the two scripts, you should have something like this on the filesystem: