特殊:Badtitle/NS100:ConsoleFramebuffer
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ConsoleFramebuffer }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/af | • {{#if: UbuntuHelp:ConsoleFramebuffer|Afrikaans| [[::ConsoleFramebuffer/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ar | • {{#if: UbuntuHelp:ConsoleFramebuffer|العربية| [[::ConsoleFramebuffer/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/az | • {{#if: UbuntuHelp:ConsoleFramebuffer|azərbaycanca| [[::ConsoleFramebuffer/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/bcc | • {{#if: UbuntuHelp:ConsoleFramebuffer|جهلسری بلوچی| [[::ConsoleFramebuffer/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/bg | • {{#if: UbuntuHelp:ConsoleFramebuffer|български| [[::ConsoleFramebuffer/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/br | • {{#if: UbuntuHelp:ConsoleFramebuffer|brezhoneg| [[::ConsoleFramebuffer/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ca | • {{#if: UbuntuHelp:ConsoleFramebuffer|català| [[::ConsoleFramebuffer/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/cs | • {{#if: UbuntuHelp:ConsoleFramebuffer|čeština| [[::ConsoleFramebuffer/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/de | • {{#if: UbuntuHelp:ConsoleFramebuffer|Deutsch| [[::ConsoleFramebuffer/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/el | • {{#if: UbuntuHelp:ConsoleFramebuffer|Ελληνικά| [[::ConsoleFramebuffer/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/es | • {{#if: UbuntuHelp:ConsoleFramebuffer|español| [[::ConsoleFramebuffer/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/fa | • {{#if: UbuntuHelp:ConsoleFramebuffer|فارسی| [[::ConsoleFramebuffer/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/fi | • {{#if: UbuntuHelp:ConsoleFramebuffer|suomi| [[::ConsoleFramebuffer/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/fr | • {{#if: UbuntuHelp:ConsoleFramebuffer|français| [[::ConsoleFramebuffer/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/gu | • {{#if: UbuntuHelp:ConsoleFramebuffer|ગુજરાતી| [[::ConsoleFramebuffer/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/he | • {{#if: UbuntuHelp:ConsoleFramebuffer|עברית| [[::ConsoleFramebuffer/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/hu | • {{#if: UbuntuHelp:ConsoleFramebuffer|magyar| [[::ConsoleFramebuffer/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/id | • {{#if: UbuntuHelp:ConsoleFramebuffer|Bahasa Indonesia| [[::ConsoleFramebuffer/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/it | • {{#if: UbuntuHelp:ConsoleFramebuffer|italiano| [[::ConsoleFramebuffer/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ja | • {{#if: UbuntuHelp:ConsoleFramebuffer|日本語| [[::ConsoleFramebuffer/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ko | • {{#if: UbuntuHelp:ConsoleFramebuffer|한국어| [[::ConsoleFramebuffer/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ksh | • {{#if: UbuntuHelp:ConsoleFramebuffer|Ripoarisch| [[::ConsoleFramebuffer/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/mr | • {{#if: UbuntuHelp:ConsoleFramebuffer|मराठी| [[::ConsoleFramebuffer/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ms | • {{#if: UbuntuHelp:ConsoleFramebuffer|Bahasa Melayu| [[::ConsoleFramebuffer/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/nl | • {{#if: UbuntuHelp:ConsoleFramebuffer|Nederlands| [[::ConsoleFramebuffer/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/no | • {{#if: UbuntuHelp:ConsoleFramebuffer|norsk| [[::ConsoleFramebuffer/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/oc | • {{#if: UbuntuHelp:ConsoleFramebuffer|occitan| [[::ConsoleFramebuffer/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/pl | • {{#if: UbuntuHelp:ConsoleFramebuffer|polski| [[::ConsoleFramebuffer/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/pt | • {{#if: UbuntuHelp:ConsoleFramebuffer|português| [[::ConsoleFramebuffer/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ro | • {{#if: UbuntuHelp:ConsoleFramebuffer|română| [[::ConsoleFramebuffer/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/ru | • {{#if: UbuntuHelp:ConsoleFramebuffer|русский| [[::ConsoleFramebuffer/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/si | • {{#if: UbuntuHelp:ConsoleFramebuffer|සිංහල| [[::ConsoleFramebuffer/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/sq | • {{#if: UbuntuHelp:ConsoleFramebuffer|shqip| [[::ConsoleFramebuffer/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/sr | • {{#if: UbuntuHelp:ConsoleFramebuffer|српски / srpski| [[::ConsoleFramebuffer/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/sv | • {{#if: UbuntuHelp:ConsoleFramebuffer|svenska| [[::ConsoleFramebuffer/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/th | • {{#if: UbuntuHelp:ConsoleFramebuffer|ไทย| [[::ConsoleFramebuffer/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/tr | • {{#if: UbuntuHelp:ConsoleFramebuffer|Türkçe| [[::ConsoleFramebuffer/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/vi | • {{#if: UbuntuHelp:ConsoleFramebuffer|Tiếng Việt| [[::ConsoleFramebuffer/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/yue | • {{#if: UbuntuHelp:ConsoleFramebuffer|粵語| [[::ConsoleFramebuffer/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/zh | • {{#if: UbuntuHelp:ConsoleFramebuffer|中文| [[::ConsoleFramebuffer/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/zh-hans | • {{#if: UbuntuHelp:ConsoleFramebuffer|中文(简体)| [[::ConsoleFramebuffer/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ConsoleFramebuffer | UbuntuHelp:ConsoleFramebuffer | {{#if: | :}}ConsoleFramebuffer}}/zh-hant | • {{#if: UbuntuHelp:ConsoleFramebuffer|中文(繁體)| [[::ConsoleFramebuffer/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ConsoleFramebuffer|:ConsoleFramebuffer|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ConsoleFramebuffer/zh | | {{#ifexist: ConsoleFramebuffer/zh | | {{#ifeq: {{#titleparts:ConsoleFramebuffer|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ConsoleFramebuffer|1|-1|}} | zh | | }}
Introduction
In most GNU/Linux systems, you are provide with multiple TTYs or virtual consoles. Typically 6. These are accessed by pressing Ctrl+Alt+F1 through F6 with your XServer typically running on TTY7 or Ctrl+Alt+F7 and the console logging done to TTY8 or TTY12. (Ctrl+Alt+F8 or F12). The default resolution for these console screens is 80 columns by 25 rows. This default resolution is inconvenient for most activities done on the console. Thankfully, this is not a new problem and has been solved for a long time. The following instructions will provide you the necessary steps to increase the resolution of console screens through the use of the vga kernel option. Warning: Be careful to not chose a resolution that is higher than what your display device supports. Doing so, will require you to boot a rescue disk and adjust the vga mode to a supported value.
Increase the resolution of the virtual consoles
Chose preferred console resolution
The default size of the console is 25x80 chars using vga (640x480 pixels) for historical reasons. I order to utilize modern display resolution you will need to override this settings during the operation system boot process. Please note that widescreen format support is very limited in the VESA standards. Pick a appropriate value from the matrix below, e.g. 791 for 16 bit 1280x1024.
320×200 640×400 640×480 800×500 800×600 896×672 1024×640 16 colors 770 256 colors 768 769 879 771 815 874 15-bit 781 801 784 880 787 816 875 16-bit 782 802 785 881 788 817 876 24-bit 783 803 786 882 789 818 877 32-bit 804 809 883 814 819 878 1024×768 1152×720 1280×1024 1440×900 1600×1200 772 774 773 869 775 864 796 790 870 793 865 797 791 871 794 866 798 792 872 795 867 799 824 873 829 868 834
A more complete description and table can be found on the Wikipedia VESA BIOS Extension article.
Append vga=791 in the end of the kernel line. Your root=UUID will look different and do not edit this since it will cause your computer to fail booting. Please be warned. In the kernel line below the option splash is removed since it might cause LCD monitors to entering sleep mode during the boot process when using DVI input. This is not a serious error but a very annoying side-effect from changing the console resolution. This failure might apply on other configurations as well.
title Ubuntu 8.10, kernel 2.6.27-9-generic uuid 636dc411-e53a-4776-a9e9-4fc9e277f445 kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=636dc411-e53a-4776-a9e9-4fc9e277f445 ro quiet splash vga=791 initrd /boot/initrd.img-2.6.27-9-generic quiet
- Tip, If you would like to test the setting but not make a permanent change as above it's possible to edit grub options during computer booting. When grub is loading press ESC to enter the boot menu, chose to edit the kernel line and append vga=791. Continue to boot linux.
Set usplash resolution
To keep the Ubuntu slash logo centered, you must set the resolution to match what you chose from the table.
sudo vi /etc/usplash.conf
Change xres= to the first 1/2 of the resolution and yres= to the second 1/2. e.g.
# Usplash configuration file xres=1024 yres=768
Rebuild the kernel image
This step is necessary to rebuild the usplash graphics in the kernel image being used upon next reboot. This step might also be necessary to perform after a kernel upgrade.
sudo update-initramfs -u
Reboot
Hopefully you should see the boot messages with a smaller font upon the boot process.
Hints
If you are interested in seeing the supported modes of your video card, you can set the vga= line to ask and reboot.
vga=ask
Upon Grub loading, it will present you with a table of the supported modes of your video card. The format is X by Y by Color Depth in bits. The number to the left of the resolution is the VESA mode. You need to convert the code to Linux VGA modes. This is typically done by adding 512 to the VESA mode. This is not always the case and can be values greater or lower.
Links
This section was assembled using information from different sources.