tty resolution / nvidia proprietary driver

Share your own howto's etc. Not for support questions!

tty resolution / nvidia proprietary driver

Postby maximus1978 » 2017-11-25 19:01

I just found this so cool that I needed to post.

My tty resolution was looking so big.

I had to pass the kernel vga=792

In /etc/default/grub ....

Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="vga=792"


then run...

update-grub

My tty resolution is much better now. :)
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49

Re: tty resolution / nvidia proprietary driver

Postby maximus1978 » 2017-11-26 02:07

I will test with these modes. Not sure yet.

Mode 0x0300: 640x400 (+640), 8 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+800), 8 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0307: 1280x1024 (+1280), 8 bits
Mode 0x030e: 320x200 (+640), 16 bits
Mode 0x030f: 320x200 (+1280), 24 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0317: 1024x768 (+2048, 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x031a: 1280x1024 (+2560), 16 bits
Mode 0x031b: 1280x1024 (+5120), 24 bits
Mode 0x0330: 320x200 (+320), 8 bits
Mode 0x0331: 320x400 (+320), 8 bits
Mode 0x0332: 320x400 (+640), 16 bits
Mode 0x0333: 320x400 (+1280), 24 bits
Mode 0x0334: 320x240 (+320), 8 bits
Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x0347: 1400x1050 (+1400), 8 bits
Mode 0x0348: 1400x1050 (+2800), 16 bits
Mode 0x0349: 1400x1050 (+5600), 24 bits
Mode 0x034a: 1600x1200 (+6400), 24 bits
Mode 0x0352: 2048x1536 (+8192), 24 bits
Mode 0x0360: 1280x800 (+1280), 8 bits
Mode 0x0361: 1280x800 (+5120), 24 bits
Mode 0x0362: 768x480 (+768, 8 bits
Mode 0x0364: 1440x900 (+1440), 8 bits
Mode 0x0365: 1440x900 (+5760), 24 bits
Mode 0x0368: 1680x1050 (+1680), 8 bits
Mode 0x0369: 1680x1050 (+6720), 24 bits
Mode 0x037c: 1920x1200 (+1920), 8 bits
Mode 0x037d: 1920x1200 (+7680), 24 bits
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49

Re: tty resolution / nvidia proprietary driver

Postby 4D696B65 » 2017-11-26 02:21

You can find out what modes your card will support with hwinfo tool.
Code: Select all
hwinfo --framebuffer
02: None 00.0: 11001 VESA Framebuffer                           
  [Created at bios.459]
  Unique ID: rdCR.NyKnCvZOrv2
  Hardware Class: framebuffer
  Model: "NVIDIA GF106 Board - 1069dd10"
  Vendor: "NVIDIA Corporation"
  Device: "GF106 Board - 1069dd10"
  SubVendor: "NVIDIA"
  SubDevice:
  Revision: "Chip Rev"
  Memory Size: 14 MB
  Memory Range: 0x01000000-0x01dfffff (rw)
  Mode 0x0300: 640x400 (+640), 8 bits
  Mode 0x0301: 640x480 (+640), 8 bits
  Mode 0x0303: 800x600 (+800), 8 bits
  Mode 0x0305: 1024x768 (+1024), 8 bits
  Mode 0x0307: 1280x1024 (+1280), 8 bits
  Mode 0x030e: 320x200 (+640), 16 bits
  Mode 0x030f: 320x200 (+1280), 24 bits
  Mode 0x0311: 640x480 (+1280), 16 bits
  Mode 0x0312: 640x480 (+2560), 24 bits
  Mode 0x0314: 800x600 (+1600), 16 bits
  Mode 0x0315: 800x600 (+3200), 24 bits
  Mode 0x0317: 1024x768 (+2048), 16 bits
  Mode 0x0318: 1024x768 (+4096), 24 bits
  Mode 0x031a: 1280x1024 (+2560), 16 bits
  Mode 0x031b: 1280x1024 (+5120), 24 bits
  Mode 0x0330: 320x200 (+320), 8 bits
  Mode 0x0331: 320x400 (+320), 8 bits
  Mode 0x0332: 320x400 (+640), 16 bits
  Mode 0x0333: 320x400 (+1280), 24 bits
  Mode 0x0334: 320x240 (+320), 8 bits
  Mode 0x0335: 320x240 (+640), 16 bits
  Mode 0x0336: 320x240 (+1280), 24 bits
  Mode 0x033d: 640x400 (+1280), 16 bits
  Mode 0x033e: 640x400 (+2560), 24 bits
  Mode 0x0345: 1600x1200 (+1600), 8 bits
  Mode 0x0346: 1600x1200 (+3200), 16 bits
  Mode 0x034a: 1600x1200 (+6400), 24 bits
  Mode 0x0360: 1280x800 (+1280), 8 bits
  Mode 0x0361: 1280x800 (+5120), 24 bits
User avatar
4D696B65
 
Posts: 2041
Joined: 2009-06-28 06:09

Re: tty resolution / nvidia proprietary driver

Postby maximus1978 » 2017-11-26 02:47

I also found that editing this line in /etc/default/grub works. :)

Code: Select all
GRUB_GFXPAYLOAD_LINUX=1024x768


I need to run "update-grub" after editing this command.
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49

Re: tty resolution / nvidia proprietary driver

Postby maximus1978 » 2017-11-26 02:48

4D696B65 wrote:You can find out what modes your card will support with hwinfo tool.
[code]hwinfo --framebuffer


Thanks
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49

Re: tty resolution / nvidia proprietary driver

Postby maximus1978 » 2017-11-26 15:37

gfxpayload

Below gives description of this variable.

If this variable is set, it controls the video mode in which the Linux
kernel starts up, replacing the 'vga=' boot option (*note linux::). It
may be set to 'text' to force the Linux kernel to boot in normal text
mode, 'keep' to preserve the graphics mode set using 'gfxmode', or any
of the permitted values for 'gfxmode' to set a particular graphics mode


/etc/default/grub has the variable "GRUB_GFXPAYLOAD_LINUX"
This is where to set the resolution that will be passed to the linux console.

GRUB_GFXPAYLOAD_LINUX gets sourced and placed in another variable "linux_gfx_mode"
"linux_gfx_mode" then get placed into "gfxpayload"

The value then in gfxpayload is passed to the kernel. I still would need to look at the grub source code to see what is happening with this variable and how it finally passes it to the linux kernel as a parameter.

The menu entry does not display which parameter and value is being passed.
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable