![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
Skinny Extra Sweet Ubuntu
![]() Join Date: Apr 2005
Location: Finland
My beans are hidden!
Hardy Heron (Ubuntu Development)
|
HOWTO: change resolution/refresh rate in Xorg
Howto: change resolution/refresh rate in Xorg If you can't change your display resolution or refresh rate (no desired option available) these instructions may help. Backup your configuration file Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup How to reconfigure Xorg Notice that auto detection of devices works best if Xorg is not running. Therefore it's recommended to stop X before reconfiguring this will put you to text only mode / command line: Code:
sudo /etc/init.d/gdm stop (or kdm for KDE) Code:
sudo dpkg-reconfigure xserver-xorg Code:
sudo /etc/init.d/gdm start (or kdm for KDE) See this excellent tip from henriquemaia (Thanks!) How to edit xorg.conf file Run in terminal or console: Code:
sudo nano /etc/X11/xorg.conf Where is the log file, how to debug? File: Code:
/var/log/Xorg.0.log How to edit or add HorizSync and VertRefresh lines Find your monitors manual (manufacturers website and Google are useful). Look for hozizontal sync and vertical refresh rates, also if bandwidth or maximum dot clock / pixel clock is mentioned, write it down. Edit xorg.conf and put correct values to your xconf.org's Monitor section. Something like this: Code:
Section "Monitor"
Identifier "CM752ET"
HorizSync 31-101
VertRefresh 60-160
EndSection
Adding custom modeline If you know what your monitor can do, for example 1024x768@75Hz, you can use this page to generate a custom Modeline for you xorg.conf:Copy paste the new Modeline to Monitor section (for example): Code:
# 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHzModeline "1024x768_75.00" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync Now you can select the default resolution and colordepth by tweaking the Screen section. It should look something like this: Code:
Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV34 [GeForce FX 5200]"
Monitor "CM752ET"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1024x768_75.00"
EndSubSection
EndSection
Change the DefaultDepth to what you would want it to be, 16 (65536 colors) or 24 (16M colors). Change the Modes line to match the resolutions you want to use - Depth must match DefaultDepth (here it's 16). Save the config. If you're in X, hit CTRL+ALT+BACKSPACE to restart X (if you're running logon manager like xdm, kdm or gdm). Change between virtual consoles with CTRL + F1 F2 F3 and so on - your X should be on F7. Starting the X: startx OR sudo /etc/init.d/gdm start (in KDE it's kdm) If that doesn't work, try fixing the xorg.conf or get back to your original by copying the backup over your changed one with: Code:
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf How to adjust position of your screen? open terminal(Applications->Accessories->Terminal), run xvidtune (type: "xvidtune"), adjust the screen and hit Show-button. You'll see a line with something like this on the terminal screen: Code:
"1280x1024" 157.50 1280 1332 1492 1728 1024 1025 1028 1072 +hsync +vsync Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo nano /etc/X11/xorg.conf Code:
Modeline "1280x1024" 157.50 1280 1332 1492 1728 1024 1025 1028 1072 +hsync +vsync Code:
sudo /etc/X11/xorg.conf_backup /etc/X11/xorg.conf Code:
sudo /etc/init.d/gdm start
Check FixVideoResolutionHowto https://wiki.ubuntu.com/FixVideoResolutionHowto https://wiki.ubuntu.com/DebuggingXAutoconfiguration https://help.ubuntu.com/community/Fi...esolutionHowto Miscellaneous resources (may contain outdated information) Integrated Intel graphics card? http://ubuntuforums.org/showthread.php?t=24923 (855resolution, hoary) http://www.x.org/X11R6.8.2/doc/i810.html Laptop with Intel graphics and widescreen http://ubuntuforums.org/showthread.php?t=351647 Widescreen http://ubuntuguide.org/wiki/Ubuntu:F...screen_Support Useful command line tools
http://www.ubuntuforums.org/showpost...55&postcount=5 Online modeline generators: http://sh.nu/nvidia/gtf.php http://www.dkfz-heidelberg.de/spec/linux/modeline/ http://xtiming.sourceforge.net/cgi-bin/xtiming.pl http://koala.ilog.fr/cgi-bin/nph-colas-modelines http://zaph.com/Modeline/ Complete xorg.conf files: http://aleks.vigio.pl/ What all those options do? http://xorg.freedesktop.org/archive/...rg.conf.5.html Some random links I may need to sort later (mainly about setting widescreen resolution): https://bugs.launchpad.net/ubuntu/+s...org/+bug/67369 http://gentoo-wiki.com/HOWTO_Widescr...lutions_(WSXGA) http://thoughtworker.in/2007/04/24/k...ht-resolution/ https://bugs.launchpad.net/ubuntu/+s...69/comments/21 Installing proprietary drivers Envy, Unofficial installer for ati and nvidia drivers: http://www.albertomilone.com/nvidia_scripts1.html If anyone wants to copy this guide to Ubuntus wikipages, please feel free to do so. Last edited by heimo; October 29th, 2007 at 07:52 AM.. |
|
|
|
|
|
|
#2 |
|
Ubuntu French Roast
![]() Join Date: Jun 2005
Location: France
Beans: 6,252
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: change resolution/refresh rate in Xorg
Hi heimo, nice guide ... really complete
The first 2 links under Integrated Intel graphics card? and the link under Problems with login screen refresh rate? are broken. |
|
|
|
|
|
#3 | ||
|
Skinny Extra Sweet Ubuntu
![]() Join Date: Apr 2005
Location: Finland
My beans are hidden!
Hardy Heron (Ubuntu Development)
|
Re: HOWTO: change resolution/refresh rate in Xorg
Quote:
Quote:
|
||
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2005
Beans: 4
|
Re: HOWTO: change resolution/refresh rate in Xorg
OOPS, i cut and pasted
sudo /etc/init.d/gdm stop into the terminal. My computer starts but nothing is displayed. I hear the hard drive spinning but my bios doesn't even display. The monitor says it's working properly and to check my cables and computer. I can't boot anything on cd either. i did sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup first though but still. With nothing displaying i can't really reset the backup. Any and all help would be great. I'm a newbie so i should have known better that to make changed in the terminal but i'm still stuck anyway. Any help or should i just throw it away. Sony Viao p2 400mgz, 128mb ram, 10gig hd |
|
|
|
|
|
#5 | |
|
Python Enthusiast
![]() |
Re: HOWTO: change resolution/refresh rate in Xorg
Quote:
Either the monitor or the graphic card might have stopped working. If you have another monitor (if your notebook has a VGA port) you can try to connect it to your notebook. |
|
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2005
Location: Trondheim, Norway
Beans: 204
Ubuntu 7.04 Feisty Fawn
|
Re: HOWTO: change resolution/refresh rate in Xorg
Heimo, thanks for a great howto. I haven't tried it out yet, but it reads easily and seems very complete.
One thing however. Since this guide seems mostly for beginners, I suggest updating the guide with the remark tseliot made ("Ok, you shouldn't have put that command into the terminal..."). Beginners do make beginnner's mistakes, and this saves them from having to read through the comments. |
|
|
|
|
|
#7 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2005
Beans: 7
|
Re: HOWTO: change resolution/refresh rate in Xorg
I have nVidia GeForce Go 6600 GPU on my Zepto Znote 6515WD notebook computer.
I want to be able to connect an external monitor and use it to extend my desktop. The monitor will be running at 1280x1024 @ 60Hz (what it supports) and my notebook screen runs natively at 1280x800 (15,4 inch panel) also @ 60 Hz. Should I use nVidia's TwinView option, the xinerama option or two separate X screens? I know I have to define two Devices (with same Bus ID) when using two screens, but is TwinView dependant on two Monitor sections or does it simply detect the other monitor and configure it internally using the Option stements in the Device section for my graphics card? |
|
|
|
|
|
#8 | |
|
First Cup of Ubuntu
![]() Join Date: Mar 2006
Location: Palo Alto, CA
Beans: 10
Ubuntu Breezy 5.10
|
Re: HOWTO: change resolution/refresh rate in Xorg
Quote:
sudo /etc/init.d/gdm stop Thanks! |
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2005
Beans: 4
|
Re: HOWTO: change resolution/refresh rate in Xorg
thanks for the response. Someone suggested i unplug all pci cards then reboot and that worked. Now how do i change resolution without destroying my computer again... hmmmmm.
|
|
|
|
|
|
#10 | |
|
Way Too Much Ubuntu
![]() Join Date: Dec 2005
Location: Chicago
My beans are hidden!
|
Re: HOWTO: change resolution/refresh rate in Xorg
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|