[SOLVED] No xorg.conf! How to increase monitor resolution?

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Marcopio

[SOLVED] No xorg.conf! How to increase monitor resolution?

Post by Marcopio »

I have installed Linux Mint 13 "Maya" on a older PC:
• CPU AMD Athlon XP 2800+ 2.09GHz
• Video card Matrox Millenium G400 Dual Head
• Monitor Peacock 19"
The problem: I cannot increase the monitor resolution over the 1024x768.
In a lot of 3d I have found that I have to modify modify the /etc/X11/xorg.conf file, but my system hasn't this file.

Note: the xrandr command has this output:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 1024 x 768, maximum 1024 x x768
default connected 1024x768+0+0 0mm x 0mm
1024x768 60.0*
800x600 60.0 56.0
640x480 60.0
400x300 60.0 56.0
320x240 60.0

The monitor working at 1280x1024 and 1600x1200 (and other resolutions) in Windows XP

How I can Increase the resolution?
Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
jp734

Re: No xorg.conf created! How to increase monitor resolution

Post by jp734 »

You can create one yourself though people have told me that it is not recommended with newer LinuxMint versions. Personally, I created one for myself and it is working just fine. If you decide to create one yourself, don't forget to specify your monitor's Horizontal and Vertical refresh rates. Some monitors need that to work on max resolutions. If you need assistance, let me know and I can give you a copy of my working xorg.conf.
Marcopio

Re: No xorg.conf created! How to increase monitor resolution

Post by Marcopio »

Hi jp734, thanks for the reply.
If it's not recommended make a new one how can I get the xorg.conf file by the Mint Installation? It is possible?
On the other hand, if you make a cut&paste of your xorg.conf file in this post I can test it on my PC.
Best regards.
cwsnyder

Re: No xorg.conf created! How to increase monitor resolution

Post by cwsnyder »

The recommended way(s) to change your resolution settings in LM is to use the methods in this tutorial:
https://wiki.ubuntu.com/X/Config/Resolution

If you use xrandr to set your screen resolution, you should also know what is your screen's maximum resolution if it is an LCD type. You may need to add something like this to the xrandr output setting line to correct for an incorrect gamma setting:

Code: Select all

xrandr --output Screen0 --mode 1600x1200 --gamma 1:1:1
The --gamma option explicitly set prevents the error
xrandr: Failed to get size of gamma for output default
jp734

Re: No xorg.conf created! How to increase monitor resolution

Post by jp734 »

I would suggest you try cwsnyder's suggestion first. If you still want to create an xorg.conf file. Here is a copy of mine. Keep in mind that this is for three screens using two video cards.

Section "Module"
EndSection

Section "ServerFlags"
Option "Xinerama" "on"
EndSection

Section "Monitor"
Identifier "0-CRT1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x1024"
Option "TargetRefresh" "60"
#Add the refresh rates for your monitor here. These numbers are just an example. You have to do some research for your monitor
HorizSync 30-80
VertRefresh 50-85

Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection

Section "Monitor"
Identifier "0-CRT2"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x1024"
Option "TargetRefresh" "60"
Option "Position" "1280 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection

Section "Monitor"
Identifier "1-CRT1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x1024"
Option "TargetRefresh" "75"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
Option "Monitor-CRT1" "0-CRT1"
Option "Monitor-CRT2" "0-CRT2"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "amdcccle-Device[4]-0"
Driver "fglrx"
Option "Monitor-CRT2" "1-CRT1"
BusID "PCI:4:0:0"
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Virtual 2560 2560
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "amdcccle-Screen[4]-0"
Device "amdcccle-Device[4]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "amdcccle-Screen[4]-0" LeftOf "aticonfig-Screen[0]-0"
EndSection
Marcopio

Re: No xorg.conf created! How to increase monitor resolution

Post by Marcopio »

I tryed the cwsnyder's solution (with su login) but the shell reply these errors lines:
xrandr: Failed to get size of gamma for output default
warning: output Screen0 not found; ignoring
xrandr: Need crtc to set gamma on
(this also with 1280x1024 and 1024x768 mode)

After I tryed a line like this:
xrandr --output Screen0 --mode 1600x1200 --crtc VGA1 --gamma 1:1:1
and
xrandr --output Screen0 --mode 1600x1200 --crtc --gamma 1:1:1
But I hadn't results.
Excuse me but I have used Linux for few days, I must learn a lot.
Marcopio

Re: No xorg.conf created! How to increase monitor resolution

Post by Marcopio »

Other for cwsnyder:
Sorry, But I don't understand this line:
CODE: SELECT ALL
jp734

Re: No xorg.conf created! How to increase monitor resolution

Post by jp734 »

with xrandr, I don't think Screen0 is an ouput. Type xrandr on terminal and look for VGA, DVI, LVDS and then choose the one that say "connected" then execute your command again but this time replace Screen0 with whatever is being used.
cwsnyder

Re: No xorg.conf created! How to increase monitor resolution

Post by cwsnyder »

I need to make a correction to my posting, I mis-read the original post.

Code: Select all

xrandr --output Screen0 --mode 1600x1200 --gamma 1:1:1
in the original posting should read as follows:

Code: Select all

xrandr --output 'Screen 0' --mode 1600x1200 --gamma 1:1:1
or

Code: Select all

xrandr --output default --mode 1600x1200 --gamma 1:1:1
Either of these lines should be the third line entered at a terminal, which for a resolution of 1600x1200@60Hz refresh rate would be:

Code: Select all

xrandr --newmode 1600x1200 161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
xrandr --addmode default 1600x1200
xrandr --output default --mode 1600x1200 --gamma 1:1:1
The CODE:SELECT ALL means that if you select with your cursor all of the text in the box after the CODE line, you can paste it directly into a terminal without having to type it in yourself, which helps eliminate copying errors.
Marcopio

Re: No xorg.conf created! How to increase monitor resolution

Post by Marcopio »

:-( hard problems

I have write these lines:

cvt 1600 1200
1600x1200 59.87 Hz (CVT 1.92M3) hsync: 74.54 kHz; pclk: 161.00 MHz
Modeline "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync

xrandr --output default --mode 1600x1200 --gamma 1:1:1
xrandr: cannot find mode 1600x1200

xrandr --newmode 1600x1200 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsync
xrandr: Failed to get size of gamma for output default

xrandr --addmode default 1600x1200
xrandr: Failed to get size of gamma for output default

xrandr --output default --mode 1600x1200 --gamma 1:1:1
xrandr: Gamma size is 0.

I have done the same with the 1280x1024 resolution, with the same result
s

After I make a xorg.conf file like the jp734's one, but the system goes only in sh mode. Now it's restored.

Now I have installed Linux Mint Maya in a Packard Bell portable also, but I have the same problem.
Is the first time that I install Linux, It is possible that I made errors during the installation (I use only the default values)?
jp734

Re: No xorg.conf created! How to increase monitor resolution

Post by jp734 »

Can you post your xorg.conf file? Also run "lspci | grep VGA" on terminal and post the result. Finally, have you done some research on your monitor's refresh rates? We wiill need that as well.
Marcopio

Re: No xorg.conf created! How to increase monitor resolution

Post by Marcopio »

Some specifics:

lspci | grep VGA
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400/G450 (rev 04)

Matrox Millenium G400 Dual Head
DAC integratec 300Hz
32MB
Card: Matrox Millenium G400 AGP
BIOS v1.5.022

Monitor: standard (not recognised in XP)
Cheched resulutions:
1280x1024 60/75/85Hz
1600x1200 60/65/70/75Hz
1792x1344 60/75/85Hz
1856x1392 61Hz (set to 60Hx but the moniter indicated 61Hz)
1920x1440 60Hz

Originally my system didn't generate a xorg.conf file, only a xorg.conf.failsafe file:
Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Now I have also a xorg.conf.new file (dated Thursday):
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
Load "record"
Load "dri2"
Load "extmod"
Load "dri"
Load "dbe"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "PciRetry" # [<bool>]
#Option "SyncOnGreen" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "MGASDRAM" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "ColorKey" # <i>
#Option "SetMclk" # <freq>
#Option "OverclockMem" # [<bool>]
#Option "VideoKey" # <i>
#Option "Rotate" # [<str>]
#Option "TexturedVideo" # [<bool>]
#Option "Crtc2Half" # [<bool>]
#Option "Crtc2Ram" # <i>
#Option "Int10" # [<bool>]
#Option "AGPMode" # <i>
#Option "AGPSize" # <i>
#Option "DigitalScreen1" # [<bool>]
#Option "DigitalScreen2" # [<bool>]
#Option "TV" # [<bool>]
#Option "TVStandard" # [<str>]
#Option "CableType" # [<str>]
#Option "NoHal" # [<bool>]
#Option "SwappedHead" # [<bool>]
#Option "DRI" # [<bool>]
#Option "MergedFB" # [<bool>]
#Option "Monitor2HSync" # [<str>]
#Option "Monitor2VRefresh" # [<str>]
#Option "Monitor2Position" # [<str>]
#Option "MetaModes" # [<str>]
#Option "OldDmaInit" # [<bool>]
#Option "ForcePciDma" # [<bool>]
#Option "AccelMethod" # [<str>]
#Option "KVM" # [<bool>]
Identifier "Card0"
Driver "mga"
BusID "PCI:1:0:0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # <str>
#Option "fbdev" # <str>
#Option "debug" # [<bool>]
Identifier "Card1"
Driver "fbdev"
BusID "PCI:1:0:0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card2"
Driver "vesa"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "Monitor2"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

I tried to copy these to files in the xorg.conf file, but without results.
Thank you for the patience
jp734

Re: No xorg.conf created! How to increase monitor resolution

Post by jp734 »

Is yours a triple screen setup as well? If only using single monitor, you can remove monitors 1 and 2. Also remove screens 1 and 2 sections and from your server layout as this will give you error and might not boot.

Finally, for your monitor section, add something like this:

HorizSync 30-80
VertRefresh 50-80

Numbers above are examples only, you need to find out what your monitor can handle. This is important as this will tell the system what your monitor's resolution capability is.
Marcopio

Re: No xorg.conf created! How to increase monitor resolution

Post by Marcopio »

something works :-)
I do some modifications in accordance with your indications.
As in the Device section all was not configured, I make others “casual” modifications.
See the results (xorg.conf file):

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
Load "record"
Load "dri2"
Load "extmod"
Load "dri"
Load "dbe"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
Option "VendorName" "Monitor Peacock (by Philips)"
Option "ModelName" "Monitor Model C2095"
Option "DPMS" "true"
Option "PreferredMode" "1280x1024"
Option "TargetRefresh" "60"
HorizSync 30-80
VertRefresh 35-85
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # "True"
#Option "HWcursor" # "True"
#Option "PciRetry" # "True"
#Option "SyncOnGreen" # "True"
#Option "NoAccel" # "False"
#Option "ShowCache" # "True"
#Option "MGASDRAM" # "True"
#Option "ShadowFB" # "True"
#Option "UseFBDev" # "True"
#Option "ColorKey" # 0
#Option "SetMclk" # "60.00 Hz/kHz/MHz"
#Option "OverclockMem" # "True"
#Option "VideoKey" # 0
#Option "Rotate" # "normal"
#Option "TexturedVideo" # "True"
#Option "Crtc2Half" # "True"
#Option "Crtc2Ram" # 32
#Option "Int10" # "True"
#Option "AGPMode" # 1
#Option "AGPSize" # 1
#Option "DigitalScreen1" # "True"
#Option "DigitalScreen2" # "False"
#Option "TV" # "False"
#Option "TVStandard" # "PAL"
#Option "CableType" # "D-SUB"
#Option "NoHal" # "True"
#Option "SwappedHead" # "True"
#Option "DRI" # "True"
#Option "MergedFB" # "True"
#Option "Monitor2HSync" # [<str>]
#Option "Monitor2VRefresh" # [<str>]
#Option "Monitor2Position" # [<str>]
#Option "MetaModes" # [<str>]
#Option "OldDmaInit" # "True"
#Option "ForcePciDma" # "True"
#Option "AccelMethod" # "0"
#Option "KVM" # "False"
Identifier "Card0"
Driver "mga"
BusID "PCI:1:0:0"
EndSection


Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

I cannot understand but now I can configure my Monitor from 360*200 to 1680x1200 with differents frequencies.
i.e.: 1600x1200 60Hz and 1280x75Hz are good.
Other things are strange, like 1152x864 75Hz working good, but the monitor indicates 1120x840 77Hz.

So, for me the PC set is good, but I don't know I it is possible to indicate [solved] in the object. (remember my "casual" modifications).
If you think the it is better that I correct something in my xorg.conf file send me other indications.

In any case, thank yoy for the support.
You are very kind.

Regards
jp734

Re: No xorg.conf created! How to increase monitor resolution

Post by jp734 »

Yeah, I think you can mark this topic as solved. By putting your Horizontal and Vertical rate ranges, your system was able to determine what resolutions at what rates your monitor can handle. Some monitors don't need this specified. I am not sure what the differences are between different monitors but this is the same this as monitors "EDID". Good to know that everything is working for you and glad to be of help.
Marcopio

[SOLVED] No xorg.conf! How to increase monitor resolution?

Post by Marcopio »

Okay, I have also done several tests and everything worked properly.
I went on Wikipedia to understand the meaning of EDID, there is always a lot to learn.
Thanks again for your support.
Greetings and good Linux.
Locked

Return to “Hardware Support”