如何在 tty 中启用 1280x800 分辨率?

goc*_*cio 13 grub2 nvidia 10.10 resolution tty

我有东芝 U500(nVidia)。尝试以多种方式更改 /etc/default/grub,现在我得到了:

GRUB_DEFAULT=5
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="vga=0x014c"
GRUB_CMDLINE_LINUX="vga=0x014c"
GRUB_GFXPAYLOAD_LINUX=1280x800x16
Run Code Online (Sandbox Code Playgroud)

0x014c Grub 中的 vbeinfo 与 1280x800x16 相关

我只是希望我的笔记本电脑能够以漂亮的高分辨率字体启动,并让 tty 控制台保持这种状态......这怎么可能?

问候,戈西奥

Lui*_*ado 14

  1. 安装 hwinfo 因为这是我知道的唯一方法。(sudo apt-get install hwinfosudo aptitude install hwinfo)

  2. 转到控制台(gnome-terminal 或任何其他)并键入sudo hwinfo --framebuffer,您将获得一个短列表或长列表,具体取决于您拥有的视频卡。该列表将如下所示:

    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
    
    Run Code Online (Sandbox Code Playgroud)
  3. 假设您想要 1600x1200 16 位分辨率。然后将十六进制值移到右侧,在这种情况下为 0x0346,然后将其写下来。

  4. 打开/etc/default/grub。您会发现 2 行与此类似:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    
    Run Code Online (Sandbox Code Playgroud)

    在第二个中,编辑该行,使其看起来像这样:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX="vga=0x0346"
    
    Run Code Online (Sandbox Code Playgroud)

    如您所见,您只需将十六进制值放在 grub 文件中 linux 行的末尾并保存。退出,然后键入sudo update-grub。等到它完成并重新启动。