Directfb installation configuration under ubuntu10.04

Source: Internet
Author: User

I
1. Download directfb and directfb-Example
Go to direct official website: http://www.directfb.org/
DirectFB-1.4.2.tar.gz download point: menu on the left> main> download> core> DirectFB-1.4> DirectFB-1.4.2.tar.gz
DirectFB-example-1.2.0.tar.gz download point: menu on the left> main> download> extra> DirectFB-example-1.2.0.tar.gz
Suppose you download these two files to your home directory "~ /"

2. Decompress these two files
Tar -zxfdirectfb-1.4.2.tar.gz
Tar -zxfdirectfb-example-1.2.0.tar.gz

3. install necessary package
If you want to install directfb on your own, you need tools such as Autoconf and automake.
Sudo apt-Get installautoconf
Sudo apt-Get installlibtool (used by autoreconf)

4. Install direct-1.4.2
Cd ~ DirectFB-1.4.2
Autoreconf
./Configure -- Help

Using the "./configure -- Help" command, you can see that some installation options can be adjusted.

./Configure -- enable-extra-warnings -- enable-profiling -- enable-Debug -- enable-trace -- enable-Multi
Make
Sudo make install

5. Install DirectFB-example-1.2.0

The process of installing directfb-example is roughly the same as that of directfb. I will not go into details here.
I only open the -- enable-debug option, and use its default value for others.

Cd ~ DirectFB-example-1.2.0
Autoreconf
./Configure -- enable-Debug
Make
Sudo make install

6. Now we have installed directfb and directfb-example.

II

The latest kernel already supports framebuffer. You only need to specify relevant parameters for startup, such as "VGA = resolution. The specific settings are as follows:

VI/etc/default/GRUB

1. Find the following line: grub_cmdline_linux = "" add the VGA = ** mentioned above. The result is as follows:

Grub_cmdline_linux = "VGA = 792"

2. Set another line:

Grub_gfxmode = 1024x768

This line was originally commented out, and the resolution needs to be set to be consistent with VGA = 792 above.

3. Update the grub configuration file as follows:

Sudoupdate-grub

After the restart, you can use framebuffer on other tty servers. For example, press Alt + Ctrl + F1 to enter v1st terminal and log on to it.

4. In addition, a common user needs to set the vedio viewing permission, for example:

Sudochmod O + RW/dev/fb0

5. software requirements: FBI

Sudo apt-getinstall FBI

3.

Whether it is a ATI or NVIDIA video card, enabling the restricted driver on ubuntu10.04 system (or manually installing the official driver) will cause the splash resolution to decrease. As this problem is common in ubuntu10.04, many cool people provide us with solutions, the following is a solution that I have seen on the Ubuntu Chinese Forum (refer to the three posts above) and tried and solved the problem in person.

1. Install the v86d and hwinfo packages. We will use them below.

Sudo apt-Get install v86d hwinfo

2. view the resolution supported by your video card.

Sudo hwinfo -- framebuffer

None 00.0: 11001 VESA framebuffer
[Created at bios.464]
Unique ID: rdcr. qojhfkjgnm2
Hardware class: framebuffer
Model: "(c) 1988-2005, ATI ~iesinc. M92"
Vendor: "(c) 1988-2005, ATI ~iesinc ."
Device: "M92"
Subvendor: "ATI atombios"
Subdevice:
Revision: "01.00"
Memory size: 16 MB
Memory range: 0xd0000000-0xd0ffffff (RW)
...
Mode 0x03ee: 1366X768 (+ 1408), 8 bits
Mode 0x03ef: 1366X768 (+ 2752), 16 bits
Mode 0x03f0: 1366X768 (+ 5504), 24 bits
Config status: CFG = new, avail = Yes, need = No, active = unknown

3. Modify the/etc/default/GRUB file and start it using the framebuffer of uvesafb.

Sudo gedit/etc/default/GRUB

Put the following two rows

Grub_cmdline_linux_default = "quietsplash"

# Grub_gfxmode = 640x480

To:

Grub_cmdline_linux_default = "quietsplash nomodeset Video = uvesafb: mode_option = 1366x768-24, mtrr = 3, scroll = ywrap"

(PS: nomodeset disables kernel kms, my opinion)

Grub_gfxmode = 1366X768

This should be modified according to the maximum resolution supported by the video card (of course, other supported resolutions) found in step 1. Note that you should remove the # above.

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

Sudo gedit/etc/initramfs-tools/modules

Add the following line:

Uvesafb mode_option = 1366x768-24 mtrr = 3 scroll = ywrap

(PS: the modification in this step is consistent with that in section 1st in the previous step)

5. Run the following command to enable framebuffer.

Echo framebuffer = Y | sudo tee/etc/initramfs-tools/CONF. d/splash

6. Run the following command to update the grub configuration and the initramfs image file.

Sudo Update-grub
Sudo Update-initramfs-u

7. Restart.

Related Problems and Solutions:
After following the steps above, it does solve the problem of low boot splash resolution, but there is another problem: failure to use the virtual console (tty1-6), that is, switch to the virtual console-"black screen ".

If you cannot log on to the console after this modification, you need to add the VGA = xxx parameter.

In fact, this problem should also be caused by the use of the official closed-source drive (or restricted drive), that is, not caused by the above operations.
Accordingly, add the VGA = xxx parameter in step 1 of the preceding step.

Grub_cmdline_linux_default = "quietsplash nomodeset Video = uvesafb: mode_option = 1366x768-24, mtrr = 3, scroll = ywrap VGA = 792"

Note that 792 represents 1024x768x16 m (the resolution rate is 1024x768, and the color depth is 24 bits), which can be set according to your own situation.

Thu

Environment variable settings

Pkg_config_path =/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

VI/etc/lD. So. conf is added to/usr/local/lib in the last line. Save and exit.
Ldconfig

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.