特殊:Badtitle/NS100:ConsoleFramebuffer:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第13行: | 第13行: | ||
blacklist gxfb | blacklist gxfb | ||
to the blacklist-framebuffer file and the system no longer tried to switch to a frame buffer console. | to the blacklist-framebuffer file and the system no longer tried to switch to a frame buffer console. | ||
== | == Increase the number of visible rows and columns in console == | ||
=== 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 is currently not supported by the kernel console driver. Pick a appropriate value from the matrix below, e.g. '''0x31A''' for 16 bit 1280x1024. | |||
<pre><nowiki>Colours 640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200 | |||
--------+-------------------------------------------------------------- | |||
4 bits | ? ? 0x302 ? ? ? ? | |||
8 bits | 0x300 0x301 0x303 0x305 0x161 0x307 0x31C | |||
15 bits | ? 0x310 0x313 0x316 0x162 0x319 0x31D | |||
16 bits | ? 0x311 0x314 0x317 0x163 0x31A 0x31E | |||
24 bits | ? 0x312 0x315 0x318 ? 0x31B 0x31F | |||
32 bits | ? ? ? ? 0x164 ? ? | |||
</nowiki></pre> | |||
=== Edit /boot/grub/menu.lst === | |||
Append ''vga=0x31A'' 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. | |||
<pre><nowiki>title Ubuntu 7.10, kernel 2.6.22-14-generic | |||
root (hd0,0) | |||
kernel /vmlinuz-2.6.22-14-generic root=UUID=98c2b6c5-4f08-4fbf-bd9c-c470b286f614 ro vga=0x31A | |||
initrd /initrd.img-2.6.22-14-generic | |||
quiet | |||
</nowiki></pre> | |||
* 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=0x31A. Continue to boot linux. | |||
=== Edit /etc/initramfs-tools/modules === | |||
A framebuffer is the device forwarding the text to be outputted on your display. In order to make the operation system aware we changed the size of the console the framebuffer driver needs to be notified. | |||
Add two lines containing '''vesafb''' and '''fbcon''' to ''/etc/initramfs-tools/modules'' | |||
<pre><nowiki>sudo bash | |||
echo vesafb >> /etc/initramfs-tools/modules | |||
echo fbcon >> /etc/initramfs-tools/modules | |||
</nowiki></pre> | |||
=== Rebuild the kernel image === | |||
This step is necessary to include these two modules in the kernel image being used upon next reboot. This step might also be necessary to perform after a kernel upgrade. | |||
<pre><nowiki>sudo update-initramfs -u | |||
</nowiki></pre> | |||
=== Edit /etc/modprobe.d/blacklist-framebuffer === | |||
Framebuffers are sometimes causing problems to wake up the computer from suspend mode and are hence disabled by default. Comment out the line ''blacklist vesafb'' to load the module anyway. | |||
<pre><nowiki># blacklist vesafb | |||
</nowiki></pre> | |||
=== Edit /etc/modules === | |||
Although we stopped blacklisting the the vesa framebuffer we force to load it. Append one line with '''vesafb | |||
''' in ''/etc/modules'' | |||
<pre><nowiki>echo vesafb >> /etc/modules | |||
</nowiki></pre> | |||
=== Reboot === | |||
Hopefully you should see the boot messages with a smaller font upon the boot process. | |||
=== Links === | |||
This section was assembled using information from different sources. | |||
* [http://ubuntuforums.org/showthread.php?p=3826742] | |||
* [http://ubuntuforums.org/showthread.php?p=1505142] | |||
* [https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/61285] | |||
---- | ---- | ||
[[category:CategoryDocumentation]] | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年4月23日 (三) 10:36的版本
文章出处: |
{{#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
If you are having trouble with an embedded system giving you the following message Console: switching to colour frame buffer device 80x30 then this answer will help you.
The Blacklist Solution
The reason the console switches to a frame buffer device is that during boot time a frame buffer driver was loaded for your hardware. To discover what frame buffer driver was loaded, you will have to run
- lsmod
and look at the output. For my system, I noticed this line gxfb 8832 1 Now the question is, "How do I prevent the frame buffer driver from being loaded?" Well, Ubuntu has an unusual system for preventing the automatic loading of drivers. In /etc/modprobe.d there are a set of blacklist files. To fix my problem, I simply added blacklist gxfb to the blacklist-framebuffer file and the system no longer tried to switch to a frame buffer console.
Increase the number of visible rows and columns in console
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 is currently not supported by the kernel console driver. Pick a appropriate value from the matrix below, e.g. 0x31A for 16 bit 1280x1024.
Colours 640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200 --------+-------------------------------------------------------------- 4 bits | ? ? 0x302 ? ? ? ? 8 bits | 0x300 0x301 0x303 0x305 0x161 0x307 0x31C 15 bits | ? 0x310 0x313 0x316 0x162 0x319 0x31D 16 bits | ? 0x311 0x314 0x317 0x163 0x31A 0x31E 24 bits | ? 0x312 0x315 0x318 ? 0x31B 0x31F 32 bits | ? ? ? ? 0x164 ? ?
Append vga=0x31A 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 7.10, kernel 2.6.22-14-generic root (hd0,0) kernel /vmlinuz-2.6.22-14-generic root=UUID=98c2b6c5-4f08-4fbf-bd9c-c470b286f614 ro vga=0x31A initrd /initrd.img-2.6.22-14-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=0x31A. Continue to boot linux.
Edit /etc/initramfs-tools/modules
A framebuffer is the device forwarding the text to be outputted on your display. In order to make the operation system aware we changed the size of the console the framebuffer driver needs to be notified. Add two lines containing vesafb and fbcon to /etc/initramfs-tools/modules
sudo bash echo vesafb >> /etc/initramfs-tools/modules echo fbcon >> /etc/initramfs-tools/modules
Rebuild the kernel image
This step is necessary to include these two modules 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
Edit /etc/modprobe.d/blacklist-framebuffer
Framebuffers are sometimes causing problems to wake up the computer from suspend mode and are hence disabled by default. Comment out the line blacklist vesafb to load the module anyway.
# blacklist vesafb
Edit /etc/modules
Although we stopped blacklisting the the vesa framebuffer we force to load it. Append one line with vesafb in /etc/modules
echo vesafb >> /etc/modules
Reboot
Hopefully you should see the boot messages with a smaller font upon the boot process.
Links
This section was assembled using information from different sources.