Ubuntuhelp: fixvideoresolutionhowto/ZH

Source: Internet
Author: User
Source: 

Https://help.ubuntu.com/community/FixVideoResolutionHowto

Click to translate: 

English •Chinese

 

 

Directory

[Hide]

  • 1 Overview
  • 2. Run the automatic detection script again.
  • 3 unidentifiable display type
  • 4 Intel Graphics Driver (i810) cannot use High Resolution
  • 5. The default color depth setting is incorrect.
  • 6 Ati-Fast Setting of refresh frequency and resolution
  • 7. There seems to be no problem with gmtms, but gnome seems to have a problem.
  • 8. Using a resolution different from that on my computer
  • 9. You are using the NVIDIA Driver (Binary driver)
  • End 10

[Edit] Introduction

This article is intended for people with problems with screen resolution or screen refresh frequency (pop-up screen). No matter why they encounter such problems, one possible reason is your hardware (graphics card/display) not correctly detected by the system. One solution is useful to this person, and the other is useful to another person. I hope to provide several different solutions here, which are listed in descending order based on the frequency and success rate of the problems I have seen. This may only help a few people. In this way, we hope to provide an answer for everyone. Let's start with the most common solution. For ATI users, I suggest you refer to the ATI-Refresh frequency and resolution Quick Setting section at the bottom of this page.

[Edit] re-run the automatic detection script

I cannot guarantee that this method is useful to most people, but it is the fastest and simplest. All we need to do is run the script like when you have just installed your system to try to detect your display hardware. This is useful sometimes, especially when the graphics card or monitor is different from the one you install ubuntu. Run the following command. If you enter Sudo-V to open a sudo session, you can simply copy and paste the following text.

For Ubuntu 6.06 (dapper Drake ):

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom sudo sh -c 'md5sum /etc/X11/xorg.conf > /var/lib/x11/xorg.conf.md5sum' sudo dpkg-reconfigure xserver-xorg

A configuration page is displayed, asking if you want to automatically detect and display hardware. Select Yes, and then you will wait for a period of time to receive the automatically detected configuration. After that, close the window you opened and the program running on the desktop, and press Ctrl-alt-backspace to restart the desktop environment. You will be asked to log on to the gnome page again, hoping all problems will be solved. If not, try the next method.

[Edit] Unrecognized display type

Open/etc/X11/Xorg. conf in the familiar text editor. I suppose you use nano as the editor because it is intuitive.

sudo nano /etc/X11/xorg.conf

Now look for the section "Monitor" item. Once you find this item, check whether there should be two lines between the text between the section "Monitor" item and the endsection that start with horizsync and vertrefresh respectively. If you don't have these two lines, you don't have to worry about them. This means we may have discovered the problem. You have to find the data from your monitor manual, command line, or online. Use Google search to find your display model. There are also a list of many models on the lapis forum. We need a horizontal synchronization frequency (usually indicated by kHz) and a vertical flushing rate (usually indicated by Hz ). These two values are generally in the following range: "30-kHz" or "50-Hz ". If your monitor supports this function, you can run the following command (if not, install the 'xresprobe 'Package): sudo ddcprobe | grep monitorrange

The first one of the returned values is your horizsync value (horizontal synchronization frequency), and the second one is the vertrefresh value. There are two ways to enter your display information to a file. One is to run the following command to regenerate the file, and the above two numerical values are required during running.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom sudo sh -c 'md5sum /etc/X11/xorg.conf > /var/lib/xfree86/xorg.conf.md5sum' sudo dpkg-reconfigure -plow xserver-xorg

Another method is to use a text editor to open the/etc/X11/Xorg. conf file and add the above data to the file. But first we have to back up this file to prevent errors:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Add two rows to the section "Monitor" section of the Xorg. conf file. For example, my display is as follows.Note:Only those two lines starting with horizsync and vertrefresh are added. Do not change any original text content. This section in my document is just an example. Your hardware information may not be like that. More importantly, if your monitor is not correctly identified, it will be labeled as "generic monitor". In this case, do not change anything else, otherwise, the graphic interface is not loaded and the monitor cannot be found.

Section "Monitor" Identifier "FLATRON 995F" Option "DPMS" HorizSync 30-96 VertRefresh 50-160 EndSection

Save the file, close all open programs, and press Ctrl-alt-backspace to restart the graphic interface. If everything works properly, you will be prompted to log on to your system again.Note:-If you are using XFree86, You have to edit/etc/X11/XF86Config-4. If you only find 800X600 in the resolution drop-down box, edit the Modes row in Section "Monitor" and add the required resolution to solve this problem.

SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection

If it still cannot be solved, deleting the resolution you don't need should completely solve this problem.

[Edit] Intel Graphics Driver (i810) cannot use High Resolution

A common problem with Intel Graphics is that although the above content is added to the xorg. conf file, the resolution is still unavailable. This often occurs on the i810 graphics card, but this problem does not exist on the updated driver.Install the updated intel graphics card driverUnfortunately, the updated driver is available only in Versions later than 6.10 (Edgy, Feisty, etc.), but not in 6.06.1 (Dapper. If you have Versions later than Edgy, you can use the following command to install the updated Intel Graphics DRIVER:

sudo apt-get install xserver-xorg-video-intel

Edit the/etc/X11/xorg. conf file and change Driver i810 to Driver "intel ". Run the following command to edit the xorg. conf file:

Sudo nano/etc/X11/xorg. conf or sudo gedit/etc/X11/xorg. conf

You can also use the GUI to edit the file as follows: ALT + F2

gksudo gedit /etc/X11/xorg.conf

Add 915 resolution with the old i810 driverThis problem sometimes occurs on a laptop equipped with an Intel graphics chip that does not have a standard resolution. Background: It seems that the video BIOS (vbios) has passed the correct resolution to the LCD screen to set the Resolution automatically. However, sometimes the resolution is not transmitted correctly and the correct resolution cannot be achieved. The best solution is to use the "915resolution" software. Check ubuntuhelp: i915driver. You can use this software in the memory to overwrite the vbios settings to solve the problem. This is what 915resolution software developers say: "915resolution is a video BIOS tool that can modify intel800, 900 series graphics chips ." Before installing 915resolution on Ubuntu, make sure you have selected the "Universe" source and type (replacing 915 resolution with 855resolution On breezy ):

sudo apt-get install 915resolution

Once the program is installed, you can use this program to list available vbios modes:

sudo 915resolution –l

The result should look like:

Intel 800/900 Series VBIOS Hack : version 0.5.2 Chipset: 845G BIOS: TYPE 1 Mode Table Offset: $C0000 + $269 Mode Table Entries: 27 Mode 30 : 640x480, 8 bits/pixel Mode 32 : 800x600, 8 bits/pixel Mode 34 : 1024x768, 8 bits/pixel Mode 38 : 1280x1024, 8 bits/pixel Mode 3a : 1600x1200, 8 bits/pixel Mode 3c : 1920x1440, 8 bits/pixel Mode 41 : 640x480, 16 bits/pixel Mode 43 : 800x600, 16 bits/pixel Mode 45 : 1024x768, 16 bits/pixel Mode 49 : 1280x1024, 16 bits/pixel Mode 4b : 1600x1200, 16 bits/pixel Mode 4d : 1920x1440, 16 bits/pixel Mode 50 : 640x480, 32 bits/pixel Mode 52 : 800x600, 32 bits/pixel Mode 54 : 1024x768, 32 bits/pixel Mode 58 : 1280x1024, 32 bits/pixel Mode 5a : 1600x1200, 32 bits/pixel Mode 5c : 1920x1440, 32 bits/pixel

If your screen resolution does not appear in the list above, you can rewrite the value that your screen will never use. For example, if you want to change mode 41 to 2400x1600, edit the/etc/default/915resolution file.

Ubuntu gksudo gedit /etc/default/915resolution
Kubuntu kdesu kate /etc/default/915resolution

Your file should look like:

# # 915resolution default # # find free modes by /usr/sbin/915resolution -l # and set it to MODE or set to 'MODE=auto' # MODE=41 # # and set resolutions for the mode. XRESO=2400 YRESO=1600

This ensures that your vbios mode 41 is overwritten in the memory before X-Windows initialization. Now you can use the resolution. After your system is restarted, The vbios will be automatically set to the correct resolution.

[Edit] Incorrect default color depth settings

Sometimes the automatic graphic interface sets an excessively high color depth value that your hardware cannot correctly handle. If this is the case, first back up your/etc/X11/Xorg. conf file.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Open your most familiar text editor. I suppose you are using nano, which is relatively easy to use. Of course you can use any text editor you like.

sudo nano /etc/X11/xorg.conf

Search for the keyword defadedepth in the file (note this is a word). The default color depth set by hoary is typical "24", but as mentioned, some hardware cannot use that high color depth. It's safe to change this value to 16 to test if your video problem has been solved. If this change does not solve any problem, simply change it back. Once defadedepth value is changed, save the file, close all programs on the desktop, and press Ctrl-alt-backspace to restart the graphic interface. If everything goes well, you will be prompted to log on again when you enter gnome, hoping to use a higher color depth.

[Edit] Ati-Fast Setting of refresh frequency and resolution

For those who use ATI graphics card and fglrx driver, try to run in one terminal:

sudo aticonfig

Follow the instructions on the screen to solve this problem after you restart the agent. For example, a current setting:

One common monitor has no video output

I will run the following command:

sudo aticonfig --initial --input=/etc/X11/xorg.conf sudo aticonfig --resolution=1600x1200,1280x1024,1024x768 sudo aticonfig --force-monitor=crt1,notv

After running the aticonfig command, you need to restart the target instance. Run the following command to restart the agent:

/etc/init.d/gdm restart

The problem should be solved. If you use a higher resolution than your desktop, you can scroll to the bottom of this page and see "the resolution of the difference between the two is different from that of my computer" to solve the problem.

[Edit] However, gnome seems to have a problem.

This problem exists in the installation of vanilla 5.10 on a virtual machine. Because this is not in a general device, I use the following command to set it to VESA in settings management, with a resolution of 1024x768:

sudo dpkg-reconfigure xserver-xorg

Confirm that you have correctly configured your hardware. These settings allow GTM to provide a normal logon screen. However, the logon result is a failure. To solve this problem, you can run the gconf-Editor tool as a common user and modify and set the Registry in GNOME's XML. This is equivalent to/etc/X11/Xorg. conf settings:

startx gconf-editor

In the Browser Editor, desktop/gnome/screen/default/% d, % d should be 0 correctly. select this mode to change to the resolution you choose, and the frequency is also suitable for your display device. Log out of the editor and try to log on again.

 

[Edit] Using a different resolution than my computer

This problem can be easily solved by following the methods below: 1) Back Up Your xorg. conf

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

2) Open xorg. conf.

gksudo gedit /etc/X11/xorg.conf

3) Find your Screen item:

Section "Screen"

You will find several items, such:

SubSection "Display" Depth 24 Modes "1280x1024" "1024x768" EndSubSection

The first line of the "Modes" will be used for the running, so change it to a lower or a higher point (make sure your display and video card support this Resolution) to save this file, shut down all running programs and restart the running program (/etc/init. d/gestation restart); another method is logout. Press Ctrl-Alt-Backspace at the logon screen. Check whether everything is running normally. If the set Display resolution (for example, "1152x864") is different from the screen resolution of the virtual machine, add Matching lines to the Display sub-item of the xorg. conf file:

Virtual 1152 864

If these changes are useless, you can use:

sudo cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf

Restore your system to the previous state.

[Edit] You are using the nvidia Driver (Binary driver)

When the nvidia driver is used, xorg does not seem to detect possible resolutions. For me, the only resolution I can use is the preset resolution of my LCD (1680X1050). below is how you can correct this: 1) back up your/etc/X11/xorg. conf. 2) Open/etc/X11/xorg. conf 3) Add the following row to your "Screen" item:

Option "UseEdidFreqs" "false"

If it fails, run the following command:

sudo nvidia-settings

Under Video Configuration sets your resolution and update rate, click apply, and then save X Config.

[Edit] ended

So far, this is all possible solutions to this problem I have collected. If there is no way to solve your problem, you should post your problem to the Ubuntu support forum or the # ubuntu IRC channel irc.freenode.net.

��

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.