<p>Currently, there's no way to change the screen mode to the optimum mode for the monitor.  This patch adds two options to rectify that.  The first option, '-a' or '--auto', chooses the first EFI graphics mode, which on most systems is the native mode.</p>

<p>However, on some systems the first mode is the mode the BIOS interface is designed to use, and may not actually be the native resolution of the monitor (i.e. the monitor resolution is 1600x900, while the first mode is 1280x1024).  So the second option, '-w' or '--max-width', chooses the widest EFI graphics mode, on the assumption that that is the native monitor resolution.</p>

<p>In this patch, -w takes precedence over -a and both override the sizes given by -x, -y and -p.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/ipxe/ipxe/pull/47'>https://github.com/ipxe/ipxe/pull/47</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>[efi] Add options to set console to native resolution</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/47/files#diff-0">src/hci/commands/console_cmd.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/47/files#diff-1">src/include/ipxe/console.h</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/47/files#diff-2">src/interface/efi/efi_fbcon.c</a>
    (59)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/ipxe/ipxe/pull/47.patch'>https://github.com/ipxe/ipxe/pull/47.patch</a></li>
  <li><a href='https://github.com/ipxe/ipxe/pull/47.diff'>https://github.com/ipxe/ipxe/pull/47.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/ipxe/ipxe/pull/47">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AArTVBD7n_MdsV8E0EA4eYjiAIuPjanRks5psyavgaJpZM4HvYr7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/ipxe/ipxe/pull/47"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>