Skip to content

Set VGA resolution#776

Draft
vinc wants to merge 13 commits into
trunkfrom
feature/graphic-mode-resolution
Draft

Set VGA resolution#776
vinc wants to merge 13 commits into
trunkfrom
feature/graphic-mode-resolution

Conversation

@vinc
Copy link
Copy Markdown
Owner

@vinc vinc commented Aug 27, 2025

The following resolutions can be written to /dev/vga/mode:

  • 80x25c (char mode)
  • 320x200p (pixel mode)
  • 640x480p (pixel mode)

TODO: Add 320x240p and fix 640x480p, both are planar modes while 320x200p is a linear mode.

The format will evolve in time, for example it could become 320x200p 8bpp and 640x480p 4bpp without breaking changes. Or it could move to a ini file at the same time as all the other drivers.

@vinc
Copy link
Copy Markdown
Owner Author

vinc commented Apr 19, 2026

The code to reduce the kernel size and set the text mode during init was cherry picked from #835

@vinc vinc changed the title Set VGA graphic mode resolution Set VGA resolution Apr 19, 2026
@vinc
Copy link
Copy Markdown
Owner Author

vinc commented Apr 24, 2026

TODO: Add a write planar and a special clear if the resolution is 640x480x16

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