PDA

View Full Version : [ubuntu] Can't get Ubuntu 9.04 to keep resolutions.



dublea
April 24th, 2009, 03:33 PM
Ok, so I had to really edit the hell out of my Xorg.conf file just to get above the 640x480 resolution. When I first installed 9.04 I was at 800x600 untill I installed the Nvidia 1.73 display drivers. After that, I was stuck at 640x480 untill I made these changes to my Xorg.conf file:



# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 30-80
VertRefresh 55-75
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection


It first looked like this though:


# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

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


Now, I can change resolutions but it always reverts back to 800x600 after a reboot. I then attempted to set the resolution using "sudo nvidia-settings" but it then reset my Xorg.conf file back to default. So, now I'm trying to figure out how to get it to stay at this resolution. Is there a config file that Nvidia X Server Settings uses?


SOLUTION!!!

Ok, so some monitors are not properly ID'd and Ubuntu does not recognize them. Usually the default resolution for a monitor is either 640x480(CRT), 800x600(CRT), 1280x720(LCD). The monitor informations is stored in /home/user/.config/monitor.xml To edit this I just started a terminal and ran "sudo nautilus" Went to where the file was located (you will need to show hidden files by pressing CRTL-H) and edited with a text editor.
Here is what Mine looked like:


<monitors version="1">
<configuration>
<clone>no</clone>
<output name="default">
<vendor>???</vendor>
<product>0x0000</product>
<serial>0x00000000</serial>
<width>800</width>
<height>600</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
</output>
</configuration>
</monitors>


And this is what I changed:


<monitors version="1">
<configuration>
<clone>no</clone>
<output name="D1025TM">
<vendor>Dell</vendor>
<product>0x0000</product>
<serial>0x00000000</serial>
<width>1280</width>
<height>1024</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
</output>
</configuration>
</monitors>


Log out and log back in and NO MORE setting the resolution back! Hope this helps anyone and please mark as solved.

Wiebelhaus
April 24th, 2009, 03:59 PM
I'm having the same issue and it's all because they omitted "displayconfig-gtk"

If it helps you any , my issue is that it's not detecting the monitor properly , it's detecting it as a crt rather than a LCD.

Shoes
April 24th, 2009, 04:04 PM
I had the same problem.

Try running nvidia-settings as root, that fixed it for me.

Open up a terminal and type:

sudo -s

/usr/bin/nvidia-settings

cycro
April 24th, 2009, 04:24 PM
Many thanks, that solved the problem.

dublea
April 24th, 2009, 07:05 PM
Shoes, I've attempted it by:

sudo nvidia-settings

sudo -i
nvidia-settings

sudo -s
/user/bin/nvidia-settings

All three let me change information but they reset my xorg.conf file back to defualt leaving me only a 640x480 and 320x240 resolutions.

I have an Nvidia FX 5200 128MB card and a CRT Dell D1025TM VGA monitor if that helps any.

Edit: Now, with Shoes method, I can change resolutions, and save to xorg.conf (without it reseting to defualts) but it doesn't keep the resolution I set it at.

FatAngus
May 8th, 2009, 03:40 AM
I have the same problem. I installed Ubuntu 9.04 on my partners Toshiba Satellite L350-171 laptop last week. I set the resolution using Display under Preferences, but when she restarts the resolution defaults to 1072x768. ](*,)

Any help would be appreciated.

trash
May 8th, 2009, 03:53 AM
same weirdness with my lappy goes from 1440 to 1024 on restarts or bootups but not all the time, it's very random... Login screen also switches randomly.

Saxcore
May 8th, 2009, 04:02 PM
Yeah i have the same problem. My xorg.conf file seems in order, but restarting sets my resolution ridiculously low. I have to manually set it every time... Sigh!

Maconvert
May 8th, 2009, 06:18 PM
Hi,

I'm having a similar problem.
I set up an Ubuntu desktop PC for a friend and it jsut doesn't like his monitor. I installed it at his house with his monitor and it can't get the resolution above 800 x 600. I then reinstalled everything at my house with my monitor and it detected my HPw2007 without any problems. I gave the PC back to him and it's still haveing the exact same problem with his monitor. So, what are the exact settings in "xorg.conf" that he needs to change in order to get this to work?

Please let me know.

Cheers!

lotharjade
May 17th, 2009, 07:55 PM
I posted with a similar problem. I notice in my xorg.o.log that in the last two lines it indicate where its happening, but I don't know what that means. Did anyone here find a resolution?

http://ubuntuforums.org/showthread.php?t=1161124

dublea
June 3rd, 2009, 11:58 PM
BUMB for solution.

lotharjade
June 5th, 2009, 09:40 AM
That worked splendidly. Mine is now all fixed. For the first time in a long long time.

Thank you.