From 93e7ba697407219b24347f9c2ad8fc1c3d8a4ff1 Mon Sep 17 00:00:00 2001 From: sydarn Date: Fri, 29 Mar 2024 18:38:59 +0100 Subject: [PATCH] sway: extend gptokeyb timeout in es sway hack, fix xkb sway log error --- packages/ui/emulationstation/system.d/essway.service | 2 +- packages/wayland/compositor/sway/profile.d/050-sway.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/emulationstation/system.d/essway.service b/packages/ui/emulationstation/system.d/essway.service index d31fd867de..331a60e4d3 100644 --- a/packages/ui/emulationstation/system.d/essway.service +++ b/packages/ui/emulationstation/system.d/essway.service @@ -12,7 +12,7 @@ Type=simple ExecStart=/usr/bin/start_es.sh # This is hack, ES doesn't immediately detect the builtin gamepad # unless an input device is connected while ES is running -ExecStartPost=/usr/bin/timeout --preserve-status 1 /usr/bin/gptokeyb +ExecStartPost=/usr/bin/timeout --preserve-status 5 /usr/bin/gptokeyb WorkingDirectory=/storage Restart=always RestartSec=2 diff --git a/packages/wayland/compositor/sway/profile.d/050-sway.conf b/packages/wayland/compositor/sway/profile.d/050-sway.conf index b9e770fb21..244ebafbb2 100644 --- a/packages/wayland/compositor/sway/profile.d/050-sway.conf +++ b/packages/wayland/compositor/sway/profile.d/050-sway.conf @@ -7,3 +7,5 @@ export SWAYSOCK="${XDG_RUNTIME_DIR}/sway-ipc.0.sock" # this lets ppsspp to work with wayland and not segfault export SDL_VIDEODRIVER=wayland +export SDL_AUDIODRIVER=pulseaudio +export XKB_CONFIG_ROOT=/usr/share/X11/xkb