LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-29-2005, 12:02 PM   #1
adrian_mx
Member
 
Registered: Oct 2005
Location: Cancún, Mexico
Distribution: Arch Linux 0.7.1
Posts: 70

Rep: Reputation: 15
How can I change the resolution


I've installed Debian etch and I cant use any other resolution than 640x480, how can I change it to support 1024x768 and others? I know i have to modify my /etc/x11/xf86config-4.conf file, but i dont have that file, I have xorg.conf file, xsession.options, defaul-display-manager, rgb.txt, xsession.sh and xwrapper.config and some folders, so how can I change my configuration so I can use more resolutions?
 
Old 12-29-2005, 12:29 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,897

Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by adrian_mx
I've installed Debian etch and I cant use any other resolution than 640x480, how can I change it to support 1024x768 and others? I know i have to modify my /etc/x11/xf86config-4.conf file, but i dont have that file, I have xorg.conf file, xsession.options, defaul-display-manager, rgb.txt, xsession.sh and xwrapper.config and some folders, so how can I change my configuration so I can use more resolutions?
You most likely have a problem with the default refresh rates being too low for your monitor. Try becoming root then use dpkg-reconfigure xserver-xorg choose the advanced option then when you get to the parts with the resolutions & monitor refresh rates make sure that you have selected the 1024x768 and you put in your vetical and horizontal refresh that the monitor can support. If you were doing this in X then logout and use CTRL + ALT +Backspace keys at the same time to have the server killed off and respawned if at the console /etc/init.d/kdm restart if using the KDE Display Manager if using Gnome then change to gdm or xdm if using the X Display Manager.
 
Old 12-29-2005, 12:31 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
xorg.conf is the replacement for XFree86.conf and works the same way.

What you need to do is edit the modes in the screen section to reflect the resolutions you wish to display.


You want to make sure the horizontal and vertical refresh settings are correct for your monitor (consult the manual or the manufacturerts website for this info) For now, leave these settings as-is. Only when the changes to the Screen section (which we will describe in a minute) don't work, then you will need to look up the specs for your monitor and fill in the correct values. Warning: Do not "just" change the values of these two monitor related variables without consulting the technical specifications of your monitor. Setting incorrect values lead to out-of-sync errors at best and smoked up screens at worst.



Xorg.conf
Quote:

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

HorizSync 31.5 - 50.0

# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

VertRefresh 40-90

# Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync

EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "GeForce FX"
Monitor "My Monitor"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.

# DefaultDepth 8
# DefaultDepth 16
DefaultDepth 24
# DefaultDepth 32

# "1024x768" is also a conservative usable default resolution. If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)

Subsection "Display"
Depth 24
#Modes "1440x900" "1024x768" "800x600" "640x480"
Modes "1024x768" "800x600" "640x480"
#Modes "1600x1200"
EndSubsection

EndSection


XF86config-4 for reference to similarities
Quote:
Section "Monitor"
Identifier "Visual SensatKDS"
HorizSync 30-65
VertRefresh 50-75

Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Visual SensatKDS"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Last edited by farslayer; 12-29-2005 at 08:49 PM.
 
Old 12-29-2005, 02:32 PM   #4
Cipher01
LQ Newbie
 
Registered: Apr 2005
Location: Somewhere
Distribution: Fedora Core 5
Posts: 12

Rep: Reputation: 0
what if you don't have a xorg.conf file? I'm having the same problem and I don't have a xorg.conf file because I searched for it. I just have a XF86Config-4 file and I've editied it, and ran dpkg-reconfigure xserver-xfree86 and it's still 640x480. I know my monitor can support more than that becuase i was using redhat befor and had 1024x768

Last edited by Cipher01; 12-29-2005 at 03:01 PM.
 
Old 12-29-2005, 08:48 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Then you would edit as in the second example I posted.....

If you edited the file manually and THEN ran dpkg-reconfigure xserver-xfree86 the configure script probably removed all your manual edits and put you right back where you started.

if you have the GUI working just at a low res you only need edit the Modes line in the Screen section. do not run dpkg-reconfigure xserver-xfree86 after editing that file.

Last edited by farslayer; 12-29-2005 at 08:51 PM.
 
Old 12-30-2005, 09:50 AM   #6
adrian_mx
Member
 
Registered: Oct 2005
Location: Cancún, Mexico
Distribution: Arch Linux 0.7.1
Posts: 70

Original Poster
Rep: Reputation: 15
ok, thanks, got it working, now i'm going to keep on using Debian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant change resolution niux Linux - Hardware 2 11-29-2005 03:18 PM
How to change VT resolution Davidian1024 Linux - General 0 02-22-2005 03:38 PM
Text Resolution, Graphic resolution. Change from prompt dlublink SUSE / openSUSE 2 01-28-2005 11:50 AM
Still cant change my resolution Mr-D Linux - Newbie 1 08-16-2003 04:13 AM
How do you change the resolution? Solean Slackware 3 04-26-2003 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration