Skip to content

fix: keep Pocket DS dual screen desktop-only - #160

Open
pacoa-kdbg wants to merge 8 commits into
virtudude:mainfrom
pacoa-kdbg:fix/pocket-ds-desktop-dual-screen
Open

fix: keep Pocket DS dual screen desktop-only#160
pacoa-kdbg wants to merge 8 commits into
virtudude:mainfrom
pacoa-kdbg:fix/pocket-ds-desktop-dual-screen

Conversation

@pacoa-kdbg

@pacoa-kdbg pacoa-kdbg commented Jul 26, 2026

Copy link
Copy Markdown

Summary

  • Add AYANEO Pocket DS dual-screen metadata in the same style as AYN Thor: primary/top panel on DSI-1, secondary/bottom panel on DSI-2, touchscreen names, and shared ARMADA_PANEL_ORIENTATION=left.
  • Keep Game Mode primary-panel-only by inhibiting the lower Goodix touchscreen in the Steam/gamescope session and explicitly disabling the secondary KScreen output during desktop → Game Mode handoff.
  • Keep Desktop Mode dual-screen by making desktop-bootstrap re-run setup-dual-screen for dual-screen devices and by having setup-dual-screen enable and rotate both outputs before positioning them.
  • Make missing touchscreen devices non-fatal so display layout still succeeds if the lower Goodix device probes late or is absent.

Companion PR

Test Plan

  • python3 -m py_compile system_files/usr/libexec/armada/setup-dual-screen
  • bash -n system_files/usr/libexec/armada/session-control system_files/usr/libexec/armada/desktop-bootstrap system_files/etc/gamescope-session-plus/sessions.d/steam system_files/usr/libexec/armada/device-env
  • git diff --check
  • for test_file in tests/*-test.sh; do bash "$test_file"; done
    • Pocket DS desktop-only dual-screen checks passed
    • powerbutton resume and cleanup test passed
    • missing touchscreen is non-fatal

Live Pocket DS validation

Validated with the companion kernel hotfix on real AYANEO Pocket DS hardware:

  • Game Mode:
    • DSI-2: disabled / DPMS Off
    • sy7758-backlight: bl_power=4
    • lower Goodix touch: inhibited
    • physical result: lower screen/backlight dark
  • Desktop Mode:
    • DSI-1: enabled / On
    • DSI-2: enabled / On
    • sy7758-backlight: bl_power=0
    • lower Goodix touch: uninhibited
    • physical result: bottom screen lit and correctly oriented

Notes

  • PR CI validates the image build. Publishing/signing/installability still follows the repository workflow policy for PR events.
  • Temporary broad sudo used during live validation was removed after testing.

@pacoa-kdbg

Copy link
Copy Markdown
Author

This still requires testing

@pacoa-kdbg

Copy link
Copy Markdown
Author

Done with personal testing, ready for someone else tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant