testsAndMisc/docs/superpowers/evidence/monitor-autoconfig-boot-2026-11-12.json
Krzysztof kuhy Rudnicki ba7b502322
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Monitors: survive boot, biggest is primary
The watcher started at the LightDM greeter, X refused it, and it hit
the systemd restart limit in 15 s, so DP-2 never came up. It now waits
for X, the unit passes XAUTHORITY, and i3 restarts it at login. The
biggest monitor is now primary and leftmost (DP-0 was hardcoded).
Prunes the oldest evidence file (60-file cap).

CI_GREEN_SKIP: main is red from a runner DNS outage (apt could not
resolve security.ubuntu.com), not code; failed jobs re-run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWTekMNwEdyLgWRgTs
2026-11-12 08:03:06 +01:00

39 lines
1.7 KiB
JSON

{
"intent": "DP-2 connects automatically at every boot; the biggest monitor is primary and leftmost.",
"scope": [
"linux_configuration/features/monitor_{layout,autoconfig}.py, unit, setup script",
"linux_configuration/i3/config",
"Non-goal: per-monitor custom layouts"
],
"changes": [
"monitor_autoconfig._open_display waits (2 s steps) while X refuses the connection; the unit no longer burns its restart limit at the greeter",
"Unit sets XAUTHORITY=%h/.Xauthority; i3 exec_always restarts the unit at login and reload",
"Default primary is now the connected output with the largest best mode (was hardcoded DP-0, absent on this machine)"
],
"verification": [
{
"command": "python3 -m pytest -q linux_configuration/tests/test_monitor_layout.py linux_configuration/tests/test_monitor_autoconfig.py",
"result": "pass",
"evidence": "4 new tests red before the change; 26 passed after"
},
{
"command": "setup_monitor_autoconfig.sh && xrandr --listmonitors",
"result": "pass",
"evidence": "applied: DP-2 3840x2160@144 --pos 0x0 --primary, HDMI-0 2560x1440@143.98 --pos 3840x0; kuhy confirmed layout"
},
{
"command": "XAUTHORITY=/dev/null timeout 7 monitor_autoconfig.py",
"result": "pass",
"evidence": "exit 124: still waiting for X, no crash"
}
],
"risks": [
"Watcher waits forever if X never accepts it (cheap: one connect attempt per 2 s)",
"exec_always restart re-applies the layout on i3 reload, overriding a manual xrandr change"
],
"rollback": [
"git revert this commit, rerun setup_monitor_autoconfig.sh, copy i3/config to ~/.config/i3/config",
"Check systemctl --user status monitor-autoconfig"
]
}