UbuntuServer modify resolution

Source: Internet
Author: User
To set the framebuffer resolution of the javastuserver console, modify the following files: sudovi/boot/grub/menu. lst (this corresponds to/etc/grub. conf is the same file.) Note:/etc/X11/xorg. the conf file is the resolution of the modified graphic interface. To support framebuffer, you must set support in the kernel.

Ubuntu Server console framebuffer resolution

To set the console framebuffer resolution, modify the following files:

Sudo vi/boot/grub/menu. lst (this file is the same as/etc/grub. conf)

Note that the/etc/X11/xorg. conf file is the resolution of the modified graphic interface.

To support framebuffer, you must first set support in the kernel. If ubuntu OS is used, you do not need to configure the kernel option. The default value is yes, check cat/proc/device. You can see that the device Number of fb in the vedio section is 29. If no fb0 device file exists under/dev, do not create it manually. Modify the menu. after the lst is restarted, the system will be created by yourself. Be sure not to test it in x windows. You should directly go to the character console interface after the lst is started. Otherwise, the video may be blurred. If you enter the graphic interface, press ctrl + alt + F1 and run sudo/etc/init. d/gestation stop turn it off and then perform the test.

Method: Enter the following lines in the menu. lst file:

Title XXXXOS (2.6.XX)
Root (hd0, X)
Kernel/boot/vmlinuz-2.6.XXX ro root = XXX quiet vga = 0x318

Add vga = 0x318 or vga = 792 at the end of the line of the kernel (first hexadecimal, followed by decimal, refer to the following table)

Vga = configurable values can be configured using the fbset tool (if not, use sudo apt-get install fbset),/etc/fb. modes, or sudo hwinfo -- framebuffer reference, mainly based on hwinfo (sudo apt-get install hwinfo)

The following table lists some common values:

# FRAMEBUFFER RESOLUTION SETTINGS
# + Region +
# | 640x480 800x600x1024 768x1280 1024x1280 800x1600x1200
# ------ + Response +
#256 | 0x301 = 769 0x303 = 771 0x305 = 773 0x307 = 775 0x31C = 796
#32 K | 0x310 = 784 0x313 = 787 0x316 = 790 0x319 = 793 0x360 = 864 0x31D = 797
#64 K | 0x311 = 785 0x314 = 788 0x317 = 791 0x31A = 794 0x361 = 865 0x31E = 798
#16 M | 0x312 = 786 0x315 = 789 0x318 = 792 0x31B = 795 0x362 = 866 0x31F = 799
# + Region +
After restart, enter the console character interface and run the command in the mplayer directory.
./Mplayer-vo fbdev-zoom-x 1024-y 768 xxx. wmv
(Mplayer problem: fbdev has almost the same performance as x11. We recommend that you configure it to xv, that is, to run X server)
Set-zoom-x 1024-y 768 to enable full screen playback. No matter how much resolution your movie will be scaled to the vga = 0x318 resolution.

Related Article

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.