mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
Performance: a switch to keep Steam's xalia helper out of the session
xalia is an x86 Windows program Proton launches to give Windows programs gamepad navigation. Under FEX it cannot load the session's aarch64 preload shim, so its socket() and memfd calls reach the vendor's seccomp filter raw - and where that answers ENOSYS, measured on a Galaxy Fold, it storms: 89 refusals of each in a few seconds, then a broken Wayland pipe and a session that is gone 6-12 seconds after Big Picture appeared. Fourteen sessions in eighteen minutes died that way on one device while the same build ran for minutes on another. Proton has its own gate for it, PROTON_USE_XALIA, so the switch sets that rather than interfering with the helper. Off by default: xalia is Valve's, and on a device whose seccomp answers its syscalls normally there is no reason to take it away.
This commit is contained in:
1 parent
d7038a2b50
commit
13c512de0b
5 files changed
+44
-5
No files matched your search
@@ -36,9 +36,11 @@ fun PerformanceDialog(
|
||||
gameCores: Set<Int>,
|
||||
tuSysmem: Boolean,
|
||||
zinkLazy: Boolean,
|
||||
noXalia: Boolean,
|
||||
onClientOverride: (Boolean) -> Unit,
|
||||
onTuSysmem: (Boolean) -> Unit,
|
||||
onZinkLazy: (Boolean) -> Unit,
|
||||
onNoXalia: (Boolean) -> Unit,
|
||||
onClientCore: (Int, Boolean) -> Unit,
|
||||
onGameCore: (Int, Boolean) -> Unit,
|
||||
onDismiss: () -> Unit,
|
||||
@@ -82,9 +84,9 @@ fun PerformanceDialog(
|
||||
HorizontalDivider()
|
||||
Spacer(Modifier.height(10.dp))
|
||||
|
||||
Text("Driver tunables", style = MaterialTheme.typography.titleSmall)
|
||||
Text("Session fixes", style = MaterialTheme.typography.titleSmall)
|
||||
Text(
|
||||
"Two switches for a runtime that renders slowly, tried one at a time. Both apply at the next session start.",
|
||||
"For a device the runtime does not sit well on, tried one at a time. All apply at the next session start.",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
@@ -110,6 +112,17 @@ fun PerformanceDialog(
|
||||
}
|
||||
Switch(checked = zinkLazy, onCheckedChange = onZinkLazy)
|
||||
}
|
||||
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth().padding(vertical = 4.dp)) {
|
||||
Column(modifier = Modifier.weight(1f)) {
|
||||
Text("Skip Steam's xalia helper", style = MaterialTheme.typography.bodyMedium)
|
||||
Text(
|
||||
"xalia is a Windows program Proton starts to give Windows programs gamepad navigation. On some devices its system calls are refused in a way it cannot cope with, and the session dies seconds after Big Picture appears — 89 refusals then a broken pipe, in the session log. Turn this on if a session will not stay up. Costs gamepad navigation in Windows programs that are not games.",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
Switch(checked = noXalia, onCheckedChange = onNoXalia)
|
||||
}
|
||||
}
|
||||
},
|
||||
confirmButton = { TextButton(onClick = onDismiss) { Text("OK") } },
|
||||
|
||||
Reference in new issue
Block a user