How to make X change to a widescreen resolution?

You have a problem with Salix? Post here and we'll do what we can to help.
PelleB
Posts: 70
Joined: 21. Sep 2010, 05:44

Re: How to make X change to a widescreen resolution?

Post by PelleB »

Thanks, now it worked.

But where do I put the modeline?

I have:

Code: Select all

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 - 84.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 56-76
    Modeline "1440x900_60.00"  106.47  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
EndSection
in xorg.conf-vesa, and X does not seem to run if I rename it xorg.conf...
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: How to make X change to a widescreen resolution?

Post by thenktor »

Create a file like /etc/X11/xorg.conf.d/50-monitor.conf
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: How to make X change to a widescreen resolution?

Post by gapan »

And put only the "Monitor" section in it, with the modeline. Nothing else is needed. Delete the xorg.conf file you already have.
Image
Image
PelleB
Posts: 70
Joined: 21. Sep 2010, 05:44

Re: How to make X change to a widescreen resolution?

Post by PelleB »

I did create it

Code: Select all

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Acer"
	ModelName    "AL1916W"
	HorizSync    31-82
	VertRefresh  56-76
        Modeline "1440x900_60.00"  106.47  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
EndSection
No, something else is needed too, maybe a 50-screen.conf and should it look like

Code: Select all

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultColorDepth 24
	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
	Modes	"1440x900"
	EndSubSection
EndSection
In fact I tried it, does not make it work either.
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: How to make X change to a widescreen resolution?

Post by gapan »

Yes, you need the "Screen" part too. Put it in the same file. But your mode is named "1440x900_60.00", not "1440x900".

Another way to do it, without messing with xorg.conf is to edit your /etc/gdm/Init/Default and add the xrandr lines you used at the end, before the exit command. Or if you already have the Monitor section in your xorg.conf.d, you can just add the last xrandr command in it. Several ways to do it actually.
Image
Image
PelleB
Posts: 70
Joined: 21. Sep 2010, 05:44

Re: How to make X change to a widescreen resolution?

Post by PelleB »

Thanks, great, the the gdm/init/Default thing did it.

But if I would like to add a screen file to xorg.conf.d what should I call it?

Anyway, if I had had this much trouble setting up X the first time (Xfree86OS/2), I would never have dared to try Linux or FreeBSD.

Thanks again!
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: How to make X change to a widescreen resolution?

Post by gapan »

PelleB wrote:But if I would like to add a screen file to xorg.conf.d what should I call it?
Whatever you want to.
Image
Image
Post Reply