Skip to content

Conversation

@eivindga
Copy link

@eivindga eivindga commented Dec 9, 2025

Some displays don't correctly negotiate their resolution on startup, resulting in incorrect display modes being selected. This adds the ability to force a specific resolution using environment variables.

Changes:

  • Add apply_custom_resolution() function to set display mode via xrandr
  • Convert WINDOW_SIZE (1920,540) to xrandr format (1920x540)
  • Use WINDOW_POSITION for display positioning (converted from comma format)
  • Require both DISPLAY_OUTPUT and WINDOW_SIZE to apply custom resolution
  • Update documentation with new usage instructions

Usage:
environment: DISPLAY_OUTPUT: 'HDMI-1' WINDOW_SIZE: '1920,540'

Some displays don't correctly negotiate their resolution on startup,
resulting in incorrect display modes being selected. This adds the
ability to force a specific resolution using environment variables.

Changes:
- Add apply_custom_resolution() function to set display mode via xrandr
- Convert WINDOW_SIZE (1920,540) to xrandr format (1920x540)
- Use WINDOW_POSITION for display positioning (converted from comma format)
- Require both DISPLAY_OUTPUT and WINDOW_SIZE to apply custom resolution
- Update documentation with new usage instructions

Usage:
environment:
  DISPLAY_OUTPUT: 'HDMI-1'
  WINDOW_SIZE: '1920,540'
@flowzone-app
Copy link
Contributor

flowzone-app bot commented Dec 9, 2025

A repository maintainer needs to approve these workflow run(s).

To approve, maintainers can either:

Submit an approval review on this pull request, OR

Submit a review comment starting with /deploy

Then re-run the failed job(s) via the Checks tab above.

Reviews must be on the specific commit SHA of the workflow run to be considered.

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