Ubuntu Ctrl+alt+f1~f6 no support for Chinese display after entering command mode

Source: Internet
Author: User

Objective

I was experimenting with the problem of booting into the Linux system to start Xwindow server without launching desktop systems such as KDE gnome. Only start X server and not start the desktop system, run a full-screen graphical interface program on top of Xserver, so that the program to achieve the exclusive display, for the average user he can not do other actions on this computer, only use this program. Some industrial control, supermarket cashier and other scenarios will have such a requirement, currently these programs are running under Windows XP (embeded), but also run in DOS. Because Windows XP is so familiar to the public, the software will not run stably. Windows is also unable to implement the application of the exclusive window, the desktop system is implemented in the Windows kernel, can not say that does not start the desktop system, as long as the desktop system is started, the desktop window can be turned off or into the background.

The realization of this graphical interface program to the display of exclusive, there is another way-not to start the X server, and start the system's framebuffer ability; Use a graphics library that supports graphical interfaces on framebuffer to develop such programs. As a result of the research, QT 4.6 and later can be done. However, framebuffer cannot support graphics rendering with the ability to call graphics cards, framebuffer is just an area of memory that corresponds to every logical pixel on the display, The framebuffer can only be modified by the CPU execution instructions and then directly react to the monitor. There is another technology DIRECTFB under Linux, which describes the ability to use the GPU to accelerate the main application in the embedded environment, do not know can not be compiled to X86 to use?

(PS: A lot of people are wrong about the Xwindow and KDE gnome's understanding of these desktop system relationships.) Please refer to http://www.cnblogs.com/sunsonbaby/archive/2004/08/26/36683.html)

Because it is difficult to meet the above scenario using a method that does not start the X server, you first try to start the X server-only method that does not start the desktop system. The result of editing the boot configuration so as not to enter the desktop system failed, the card into the desktop system where not move, had to cut into the naming mode. But the resolution only 800*600, Chinese characters can not be displayed, is really depressed. Reluctantly put into the desktop system configuration after the recovery, began to solve this low resolution, does not support the Chinese problem.

In Linux everything is a file, if Linux boot support framebuffer, must be a piece of memory, virtual a file fb0. It is estimated that by reducing the consumption of resources, Ubuntu does not turn on framebuffer by default.

The first step is to see the mode supported by the graphics card

Use HWInfo if it is not installed first.

sudo apt-get install HWInfo

After installation, you can use the following command to view the mode supported by the graphics card.

sudo hwinfo--framebuffer

In fact, when you install Ubuntu if you do not follow the video card drivers will be prompted to install, the general driver is installed. Other guidance also said to install v86d, this depends on the specific please look, if the view mode is not the result of installation is not too late.

sudo apt-get install v86d
The second step, select a mode to set the startup item

My Computer view mode will have the following mode, the highest resolution, color up to 16 bits, choose this.

Mode 0x0317:1024x768 (+2048), + bits

Then edit the file/etc/default/grub, find the following item, and change it to the same as below. In fact, the vga=0x0317 is added in the back.

grub_cmdline_linux_default= "Quiet Splash vga=0x0317"

Step three, set INITRAMFS support framebuffer

Edit the file/etc/initramfs-tools/modules, and then add the line

Fbcon
Vesafb
Vga16fb

(For Mao to add these three, it is also estimated that we copy each other.) Have time to verify if only add VESAFB is possible. )

Edit the file/etc/modprobe.d/blacklist-framebuffer.conf, and comment out the blacklist that appears above the contents.

#blacklist Fbcon
#blacklist VESAFB
#blacklist VGA16FB

(VGA VESA con is the old graphics card mode standard, now the graphics card can support one is good.) )

Fourth step, with new grub and INITRAMFS

Execute the following instruction.

sudo update-grubsudo update-initramfs-u

Fifth, add users who need to use in command mode to join the video group

This is a lot of the way, many commands can do this function. It is also possible to change the/etc/group file directly, but it is not recommended.

sudo adduser your_name video

With the above four steps, restarting the system and then entering the naming mode, you will find that the resolution has been improved. My computer has been able to support Chinese display in this step. Because I followed Ubuntu followed by the Chinese language pack.

Some tutorials start with fbterm installation. This is not necessary, without Chinese input, you can not install this. Need Chinese input words, whether can not need fbterm direct realization, I also did not investigate, temporarily not this demand. Write a blog when you need it later.

The rest.

What the hell is a Initramfs? I am also a novice, as far as I find the data and my understanding, it is a pre-allocated memory of the system startup of a management technology. Linux all the resources are files, then the system starts the pre-allocated memory is also a file, as a file management, it is necessary to provide storage space allocation of the file system, Initramfs is such a file system.

Ubuntu Ctrl+alt+f1~f6 no support for Chinese display after entering command mode

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.