mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-23 06:46:02 +00:00
3.0 KiB
3.0 KiB
name, description
| name | description |
|---|---|
| diagnose-game | Find why a game crashed, hung or ran badly in DroidDeck, from session state and logs |
droiddeckctl state:session.phase,session.failure,session.focus.focusedApp(769 is Steam's own UI) andsession.logDir.- Read that log folder directly; it is on your filesystem. Earlier sessions are its siblings:
ls -t "$(dirname <logDir>)"; the crash may be in the one before a restart.logs latestmakes a redacted, partial copy with renamed files: use it only to hand logs to someone.games/<time>-<id>-<appid>/, one folder per launch:launch.txt(exe, Proton, environment) andsteam-<appid>.log(Proton and Wine).session.log(the session script,==lines),wayland.log(compositor),app.log,events.jsonl,crash.log(Android's crash buffer at session end),memory-pressure.log(low-memory kills),graphics-report.txt,vulkan-summary.txt,steam/(client logs).- The game's own log is in its prefix,
/root/.local/share/Steam/steamapps/compatdata/<appid>/pfx/drive_c/users/steamuser/: Unity writesAppData/LocalLow/<company>/<game>/Player.log, UnrealAppData/Local/<game>/Saved/Logs/.
- Find the fatal error, not the first
err:. Every run logs harmless ones (err:nsibind errno 13,err:hid,winebth,tabtip,overriding CPU configuration), andtrace:sehfirst-chance exceptions are often handled. Look for the last exception before the process ends:grep -nE "EXCEPTION_ACCESS_VIOLATION|Unhandled exception|virtual_setup_exception|DEVICE_LOST|VK_ERROR" steam-<appid>.log. Same address in every launch means a deterministic fault; compare with an older launch that worked before blaming a line. - For performance,
droiddeckctl pacing --seconds 20(fpsOnScreen,offCadencePercent) anddroiddeckctl thermal: atSEVEREor worse the device is throttling, so say that first. - Explain the cause in plain words with the lines that show it (file and line number). Propose
the smallest reversible change and ask before applying it:
- Proton for one game: list
/root/.local/share/Steam/compatibilitytools.dandsteamapps/common/Proton*, thendroiddeckctl cdp eval 'SteamClient.Apps.SpecifyCompatTool(<appid>, "<tool dir name>")'; checkCompatToolMappinginconfig/config.vdf. - Launch options for one game: read them first,
droiddeckctl cdp eval 'appDetailsStore.GetAppDetails(<appid>)?.strLaunchOptions', keep them, thenSteamClient.Apps.SetAppLaunchOptions(<appid>, "VAR=1 %command%"). - For every game:
droiddeckctl env set KEY=VALUEapplies to the next session only (--persistentkeeps it); restart the session withdroiddeckctl stopandstart steam.
- Proton for one game: list
- Relaunch and read the new launch folder before saying it is fixed. If Steam stays on
"Stopping",
droiddeckctl quit <appid>, then look for leftover Wine processes withdroiddeckctl guest -- sh -c 'ps -eo pid,args | grep -i wine'; never kill the Steam client.