Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #168221 > unrolled thread

GRUB Graphic to Console

Started byray <ray@aarden.us>
First post2016-05-24 20:20 +0200
Last post2016-05-26 04:00 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  GRUB Graphic to Console ray <ray@aarden.us> - 2016-05-24 20:20 +0200
    Re: GRUB Graphic to Console Sven Joachim <svenjoac@gmx.de> - 2016-05-24 21:20 +0200
      Re: GRUB Graphic to Console ray <ray@aarden.us> - 2016-05-25 04:20 +0200
        Re: GRUB Graphic to Console ray <ray@aarden.us> - 2016-05-26 04:00 +0200

#168221 — GRUB Graphic to Console

Fromray <ray@aarden.us>
Date2016-05-24 20:20 +0200
SubjectGRUB Graphic to Console
Message-ID<rCp5U-6JY-39@gated-at.bofh.it>
I would like to control the graphic resolution on a minimally installed stretch to help make the console easier to read.

This is a Toshiba 4K display on a laptop.  Stretch is a EFI boot on a 400 GB SSD.  

This is what I tried and found to work partially:

GRUB_GFXMODE=1920x1440
GRUB_GFXPAYLOAD_LINUX=keep

Being an EFI boot, there is no vbeinfo to test the available graphic modes.  I used xandr on a Jessie Live CD (legacy) boot on this machine to find the acceptable modes for the video.  It reported 19 modes.  I tested all of them, the following were the modes that did work under stretch:
3840x2160
1920x1440
1600x1200
1280x1024
1024x768
640x480

Partially worked:
The two above entries in /etc/default/grub worked for listing the GRUB menu and the subsequent screen (I'll call them screen 1 and screen 2) for each of the subsequent mode tests. The third screen looks like 3840x2160 (very small text, difficult to read) for all mode tests. Then, the subsequent screens and including the console screen looks like about 1920x1440 for all modes tests. So it seems the two mode statements only effect the screen 1 & 2, the Grub menu.

Maybe this is what is supposed to happen as the grub statement is GRUB_GFXMODE. But I thought the payload = keep was supposed to be 'keep' this mode for everything after GRUB.

How do I get control of the resolution and font at the console? What about the terminal?

Ray

[toc] | [next] | [standalone]


#168225

FromSven Joachim <svenjoac@gmx.de>
Date2016-05-24 21:20 +0200
Message-ID<rCq1X-7jq-7@gated-at.bofh.it>
In reply to#168221
On 2016-05-24 10:54 -0700, ray wrote:

> I would like to control the graphic resolution on a minimally
> installed stretch to help make the console easier to read.
>
> This is a Toshiba 4K display on a laptop.  Stretch is a EFI boot on a 400 GB SSD.  

Nice machine.

> This is what I tried and found to work partially:
>
> GRUB_GFXMODE=1920x1440
> GRUB_GFXPAYLOAD_LINUX=keep
>
> Being an EFI boot, there is no vbeinfo to test the available graphic
> modes.  I used xandr on a Jessie Live CD (legacy) boot on this machine
> to find the acceptable modes for the video.  It reported 19 modes.  I
> tested all of them, the following were the modes that did work under
> stretch:
> 3840x2160
> 1920x1440
> 1600x1200
> 1280x1024
> 1024x768
> 640x480
>
> Partially worked:
> The two above entries in /etc/default/grub worked for listing the GRUB
> menu and the subsequent screen (I'll call them screen 1 and screen 2)
> for each of the subsequent mode tests. The third screen looks like
> 3840x2160 (very small text, difficult to read) for all mode
> tests. Then, the subsequent screens and including the console screen
> looks like about 1920x1440 for all modes tests. So it seems the two
> mode statements only effect the screen 1 & 2, the Grub menu.
>
> Maybe this is what is supposed to happen as the grub statement is
> GRUB_GFXMODE. But I thought the payload = keep was supposed to be
> 'keep' this mode for everything after GRUB.

Only until a kernel graphics driver is loaded, those by default use the
resolution which is preferred by the monitor for the console.

> How do I get control of the resolution and font at the console?

You can specify the resolution with the "video" kernel parameter,
e.g. "video=1920x1440".  I suspect that this will not look good since it
does not match the 16:9 aspect ratio of your display.

The setfont program can change the font of the current virtual console,
e.g. "setfont Uni2-Terminus32x16".  Look in the directory
/usr/share/consolefonts/ to see which fonts are available.  Once you
have found a font which you like, use "dpkg-reconfigure console-setup"
or edit /etc/default/console-setup directly.

Good luck,
Sven

[toc] | [prev] | [next] | [standalone]


#168238

Fromray <ray@aarden.us>
Date2016-05-25 04:20 +0200
Message-ID<rCwAp-3nw-11@gated-at.bofh.it>
In reply to#168225
On Tuesday, May 24, 2016 at 2:20:04 PM UTC-5, Sven Joachim wrote:

> Only until a kernel graphics driver is loaded, those by default use the
> resolution which is preferred by the monitor for the console.

Sven,

Thank you for your response.  

hwinfo report the Intel graphic driver i915 is active.  How do I determine if something else is needed?
> You can specify the resolution with the "video" kernel parameter,
> e.g. "video=1920x1440".  I suspect that this will not look good since it
> does not match the 16:9 aspect ratio of your display.
> 
> The setfont program can change the font of the current virtual console,
> e.g. "setfont Uni2-Terminus32x16".  Look in the directory
> /usr/share/consolefonts/ to see which fonts are available.  Once you
> have found a font which you like, use "dpkg-reconfigure console-setup"
> or edit /etc/default/console-setup directly.

This will be my next step.

Thanks again,

Ray

[toc] | [prev] | [next] | [standalone]


#168255

Fromray <ray@aarden.us>
Date2016-05-26 04:00 +0200
Message-ID<rCSKB-8n2-1@gated-at.bofh.it>
In reply to#168238
On Tuesday, May 24, 2016 at 9:20:04 PM UTC-5, ray wrote:
> On Tuesday, May 24, 2016 at 2:20:04 PM UTC-5, Sven Joachim wrote:
> 
> This will be my next step.
> 
> Thanks again,
> 
I could not get this to work.  I probably have something wrong in /etc/default/grub:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="lsb_release -i -s 2> /dev/null || echo Debian"
#GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=hvc0 quiet video=/"eDP1:640x480/""
GRUB_CMDLINE_LINUX=video="eDP1:640x480"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#GRUB_CMDLINE_LINUX="console=tty0 console=hvc0 quiet"

I have a few items comments from experiments.

Did I not get the syntax right or is this the wrong approach?

Ray

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web