Solve the Problem of downgrading the resolution under the Ubuntu text interface (Terminal)

Source: Internet
Author: User

Like the brilliant desktop effects of ubuntu, which requires the NVIDIA driver. However, after installation, I found that the resolution of the terminal was reduced, which made me very uncomfortable. Google, and finally found a solution. You just need to change the grub file. The details are as follows:

1. Install the v86d and hwinfo packages:

Sudo apt-Get install v86d hwinfo

2. view the resolution supported by the video card:

Sudo hwinfo -- framebuffer

Mine is:

02: None 00.0: 11001 VESA framebuffer <br/> [created at bios.464] <br/> unique ID: rdcr. sbqupgmqm7f <br/> hardware class: framebuffer <br/> model: "NVIDIA g96 board-kl1_n10p" <br/> vendor: "NVIDIA Corporation" <br/> device: "g96 board-kl1_n10p" <br/> subvendor: "NVIDIA" <br/> subdevice: <br/> revision: "chip rev" <br/> memory size: 14 MB <br/> memory range: 0xcd000000-0xcddfffff (RW) <br/> mode 0x0300: 640x400 (+ 640 ), 8 bits <br/> mode 0x0301: 640x480 (+ 640), 8 bits <br/> mode 0x0303: 800x600 (+ 800 ), 8 bits <br/> mode 0x0305: 1024x768 (+ 1024), 8 bits <br/> mode 0x0307: 1280x1024 (+ 1280 ), 8 bits <br/> mode 0x030e: 320x200 (+ 640), 16 bits <br/> mode 0x030f: 320x200 (+ 1280 ), 24 bits <br/> mode 0x0311: 640x480 (+ 1280), 16 bits <br/> mode 0x0312: 640x480 (+ 2560 ), 24 bits <br/> mode 0x0314: 800x600 (+ 1600), 16 bits <br/> mode 0x0315: 800x600 (+ 3200 ), 24 bits <br/> mode 0x0317: 1024x768 (+ 2048), 16 bits <br/> mode 0x0318: 1024x768 (+ 4096 ), 24 bits <br/> mode 0x031a: 1280x1024 (+ 2560), 16 bits <br/> mode 0x031b: 1280x1024 (+ 5120 ), 24 bits <br/> mode 0x0330: 320x200 (+ 320), 8 bits <br/> mode 0x0331: 320x400 (+ 320 ), 8 bits <br/> mode 0x0332: 320x400 (+ 640), 16 bits <br/> mode 0x0333: 320x400 (+ 1280 ), 24 bits <br/> mode 0x0334: 320x240 (+ 320), 8 bits <br/> mode 0x0335: 320x240 (+ 640 ), 16 bits <br/> mode 0x0336: 320x240 (+ 1280), 24 bits <br/> mode 0x033d: 640x400 (+ 1280 ), 16 bits <br/> mode 0x033e: 640x400 (+ 2560), 24 bits <br/> mode 0x0345: 1600x1200 (+ 1600 ), 8 bits <br/> mode 0x0346: 1600x1200 (+ 3200), 16 bits <br/> mode 0x0347: 1400x1050 (+ 1400 ), 8 bits <br/> mode 0x0348: 1400x1050 (+ 2800), 16 bits <br/> mode 0x0349: 1400x1050 (+ 5600 ), 24 bits <br/> mode 0x034a: 1600x1200 (+ 6400), 24 bits <br/> mode 0x0352: 2048x1536 (+ 8192 ), 24 bits <br/> mode 0x0360: 1280x800 (+ 1280), 8 bits <br/> mode 0x0361: 1280x800 (+ 5120 ), 24 bits <br/> mode 0x0362: 768x480 (+ 768), 8 bits <br/> mode 0x0364: 1440x900 (+ 1440 ), 8 bits <br/> mode 0x0365: 1440x900 (+ 5760), 24 bits <br/> mode 0x0366: 1600x900 (+ 3200 ), 16 bits <br/> mode 0x0367: 1600x900 (+ 6400), 24 bits <br/> mode 0x0368: 1680x1050 (+ 1680 ), 8 bits <br/> mode 0x0369: 1680x1050 (+ 6720), 24 bits <br/> mode 0x0370: 1600x900 (+ 1600 ), 8 bits <br/> mode 0x037b: 1280x720 (+ 5120), 24 bits <br/> mode 0x037c: 1920x1200 (+ 1920 ), 8 bits <br/> mode 0x037d: 1920x1200 (+ 7680), 24 bits <br/> config status: CFG = new, avail = Yes, need = No, active = unknown <br/>

However, I don't think it makes much sense, because although there is no 1366x768 resolution above, we can still set the parameter to 1366x768 below. you can modify it based on your interests, but it is best to modify it based on the resolution supported by the above machine. Otherwise, unexpected problems may occur.

3. Modify the grub file:

 Sudo gedit/etc/default/GRUB

Change extract = "quiet Splash" to grub_cmdline_linux_default = "quiet splash nomodeset Video = uvesafb: mode_option = 1366x768-24, mtrr = 3, scroll = ywrap ".

Change # grub_gfxmode = 640 × 480 to # grub_gfxmode = 1366X768.

The final result is as follows (different machines are not necessarily the same, and I use Lenovo y450 ):

# If you change this file, run 'Update-grub 'afterwards to update <br/> #/boot/GRUB/grub. cfg. <br/> grub_default = 0 <br/> # grub_hidden_timeout = 0 <br/> timeout = true <br/> grub_timeout = 10 <br/> grub_distributor = 'lsb _ release- i-S 2>/dev/null | echo Debian '<br/> grub_cmdline_linux_default = "quiet splash nomodeset Video = uvesafb: mode_option = 1366x768-24, mtrr = 3, scroll = ywrap "<br/> grub_cmdline_linux =" "<br/> # uncomment to enable badram filtering, modify to suit your needs <br/> # This works with Linux (no patch required) and with any kernel that obtains <br/> # The Memory Map Information from grub (GNU Mach, kernel of FreeBSD ...) <br/> # grub_badram = "0x01234567, 0 xfefefefefe, 0x89abcdef, 0 xefefefef" <br/> # uncomment to disable graphical terminal (grub-PC only) <br/> # grub_terminal = console <br/> # The resolution used on graphical terminal <br/> # note that you can use only modes which your graphic card supports via VBE <br /># you can see them in real grub with the command 'vbeinfo' <br/> # grub_gfxmode = 1366X768 <br/> # uncomment if you don't want grub pass "root = UUID = xxx" parameter to Linux <br/> # grub_disable_linux_uuid = true <br/> # uncomment to disable generation of recovery mode menu entries <br/> # grub_disable_linux_recovery = "True" <br/> # uncomment to get a beep at grub start <br/> # grub_init_tune = "480 440 1"

4. Modify the/etc/initramfs-tools/modules file:

Sudo gedit/etc/initramfs-tools/modules

Add uvesafb mode_option = 1360x768-24 mtrr = 3 scroll = ywrap.

The final result is like this:

# List of modules that you want to include in your initramfs. <br/> # Syntax: module_name [ARGs...] <br/> # You must run Update-initramfs (8) to effect this change. <br/>#< br/> # examples: <br/> # raid1 <br/> # sd_mod <br/> uvesafb mode_option = 1366x768-24 mtrr = 3 scroll = ywrap

5. Update the grub configuration file:

Sudo update-grub2 <br/> sudo Update-initramfs-u

Just restart it.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.