Re: Howto lock in Resolution in Xorg.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 29 January 2010 18:04:22 you wrote:
> On 01/28/2010 07:09 PM, Marko Vojinovic wrote:
> > On Thursday 28 January 2010 18:36:43 Jim wrote:
> >> Noveau is not changing the xorg.conf, it is hal or something like that
> >> in Fedora.
> >
> > Nothing should be changing xorg.conf just out of the blue. And the
> > settings in there should be honored by X.
> >
> > Couple of stupid questions: are you sure that you have saved your changes
> > to the file after editing? Are you sure you are editing the right file?
> >
> > Maybe it is a ownership/permissions problem. Post the output of
> >
> > ls -l /etc/X11/xorg.conf
> >
> > Also, maybe there is some error in the file itself, and X falls back to
> > autoconfiguring. Post the output of
> >
> > cat /etc/X11/xorg.conf
> >
> > Maybe for some odd reason the xorg.conf file is not being used at all.
> > Post the output of
> >
> > cat /var/log/Xorg.0.log
> >
> > With all this info I guess we'll have a better idea on what is going on.
> 
> $ ls -l /etc/X11/xorg.conf
> -rw-r--r--. 1 root root 1451 2010-01-28 12:22 /etc/X11/xorg.conf

Ok, the permissions look fine.

> [tom@gray ~]$ cat /etc/X11/xorg.conf
> # nvidia-xconfig: X configuration file generated by nvidia-xconfig
> # nvidia-xconfig:  version 1.0  (mockbuild@)  Sun Nov 22 21:04:19 EST 2009
> 
> Section "ServerLayout"
>      Identifier     "Layout0"
>      Screen      0  "Screen0"
>      InputDevice    "Keyboard0" "CoreKeyboard"
>      InputDevice    "Mouse0" "CorePointer"
> EndSection
> 
> Section "Files"
>      FontPath        "/usr/share/fonts/default/Type1"
> EndSection
> 
> Section "InputDevice"
>      # generated from default
>      Identifier     "Mouse0"
>      Driver         "mouse"
>      Option         "Protocol" "auto"
>      Option         "Device" "/dev/input/mice"
>      Option         "Emulate3Buttons" "no"
>      Option         "ZAxisMapping" "4 5"
> EndSection
> 
> Section "InputDevice"
>      # generated from data in "/etc/sysconfig/keyboard"
>      Identifier     "Keyboard0"
>      Driver         "kbd"
>      Option         "XkbLayout" "us"
>      Option         "XkbModel" "pc105"
> EndSection
> 
> Section "Monitor"
>      Identifier     "Monitor0"
>      VendorName     "Unknown"
>      ModelName      "Unknown"
>      HorizSync       28.0 - 33.0
>      VertRefresh     43.0 - 72.0
>      Option         "DPMS"
> EndSection
> 
> Section "Device"
>      Identifier     "Device0"
>      Driver         "nvidia"
>      VendorName     "NVIDIA Corporation"
> EndSection
> 
> Section "Screen"
>      Identifier     "Screen0"
>      Device         "Device0"
>      Monitor        "Monitor0"
>      DefaultDepth    24
>      SubSection     "Display"
>          Depth       24

Ok, in this place here you need to add the line:

            Modes     "1024x768"

>      EndSubSection
> EndSection

Add it in precisely the above place (inside the "Display" subsection), save 
the xorg.conf file and do a "cat /etc/X11/xorg.conf" again to make sure that 
the added line is now really there.

Given that only root has permissions to write to the file, only a very limited 
number of programs will be able to rewrite it. This will reduce the number of 
possible suspects. :-)

Next, log out and log back in, *without* rebooting the computer. This will 
restart only X and nothing else, and now the resolution should be 1024x768. 
See below how to check. If it isn't, do a "cat /etc/X11/xorg.conf" to verify 
that the "Modes" line is still there.

If this went well, do a full reboot and see if the new resolution sticks. 
Check the "cat /etc..." thing again to see if anything has mangled the 
xorg.conf.

Report your findings back to us. :-)

> [tom@gray ~]$ cat /var/log/Xorg.0.log
> 
> X.Org X Server 1.7.4
> Release Date: 2010-01-08
> X Protocol Version 11, Revision 0
> Build Operating System: x86-01 2.6.18-164.6.1.el5
> Current Operating System: Linux gray 2.6.31.12-174.2.3.fc12.x86_64 #1

[I'm snipping irrelevant parts throughout the log]

> (==) Using config file: "/etc/X11/xorg.conf"

This is ok, X actually uses xorg.conf.

> (==) Jan 28 16:58:57 NVIDIA(0): No modes were requested; the default
> mode "nvidia-auto-select"
> (==) Jan 28 16:58:57 NVIDIA(0):     will be used as the requested mode.

There was no "Modes" line in xorg.conf, so nvidia driver used the default 
auto-select option to choose your resolution.

> (II) Jan 28 16:58:57 NVIDIA(0): Virtual screen size determined to be
> 1600 x 900
> (--) Jan 28 16:58:57 NVIDIA(0): DPI set to (92, 91); computed from
> "UseEdidDpi" X config
> (--) Jan 28 16:58:57 NVIDIA(0):     option
[snip]
> (II) Jan 28 16:59:57 NVIDIA(0): Setting mode "1152x864"

This is the resolution it chose, using the EDID data sent from the monitor. I 
guess it picked the largest resolution available.

So, once you edit the /etc/X11/xorg.conf, add the "Modes" line, log out/in, 
you can check the actual resolution used by (a) visual inspection of the 
monitor, and (b) by reading the log and checking for the info like the above. 
Somewhere you should be able to find the line that contains something like

NVIDIA(0): Setting mode "1024x768"

If you find this in the log, then it definitely works as expected.

Do a "cat /var/log/Xorg.0.log" again, and read it through, or post it again 
here.

HTH, :-)
Marko

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux