PDA

View Full Version : [ubuntu] Change screen resolution



eekfonky
October 3rd, 2008, 12:16 PM
I have just done a clean install of 8.04. The problem is my monitor resolution is now 640 x 480 with a 50hz refresh rate. I do not have the option to change this.

I am running a Nvidia geforce 128MB graphics card which has been detected and is on. My monitor is an Acer AL 1716 with capability of 1280 x 1024 with a refresh rate of 75hz.

Please help

Pumalite
October 3rd, 2008, 12:41 PM
Did you try getting into Recovery Mode and using 'xfix'?

kerry_s
October 3rd, 2008, 12:44 PM
make sure it's using nv in /etc/X11/xorg.conf


Section "Device"
Driver "nv"
EndSection


Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

eekfonky
October 3rd, 2008, 01:10 PM
sorry could you explain how I do these things?

Thanks

kerry_s
October 3rd, 2008, 01:29 PM
sorry could you explain how I do these things?

Thanks

for mine, press alt+f2
type> gksudo gedit /etc/X11/xorg.conf

make your changes
log out and press ctrl+alt+backspace
to restart X

for the xfix 1, reboot your system, press the down arrow at the grub boot screen to select the recover/rescue mode, type> xfix

eekfonky
October 3rd, 2008, 01:39 PM
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@vernadsky) Thu Jun 5 09:26:53 UTC 2008

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: builtin, VertRefresh source: builtin
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce FX 5200"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Which part do I alter?

Thanks

kerry_s
October 3rd, 2008, 02:10 PM
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@vernadsky) Thu Jun 5 09:26:53 UTC 2008

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: builtin, VertRefresh source: builtin
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce FX 5200"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Which part do I alter?

Thanks


Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

eekfonky
October 3rd, 2008, 03:37 PM
didn't work. I did however right-click on the Application menu -> Edit menus and highlight the 'Screen and Graphics in 'Other' My resolution is now fixed on my desktop, however it's too big for the login screen, any ideas how I can fix it? And thank you for your help

robc02
October 6th, 2008, 07:04 PM
I found this on the forums and it worked for me:

Edit the xorg.conf file by doing : sudo gedit /etc/X11/xorg.conf

Find the "Screen" section; at the end of it there is "Virtual" and next to that is a resolution. Change it to the resolution you want.

samej
October 12th, 2008, 09:37 PM
I have just done a clean install of 8.04. The problem is my monitor resolution is now 640 x 480 with a 50hz refresh rate. I do not have the option to change this.



I had much the same problem after a clean install of 8.04 to a Toshiba TE2000 laptop.

However, when I had previously installed version 7 and then upgraded online to 8.04 (to a different hard disk), the monitor resolution was fine.

With the clean install, I tried "sudo dpkg-reconfigure xserver-xorg" as recommended on the How-To page (https://help.ubuntu.com/community/FixVideoResolutionHowto), but was never prompted for screen resolutions.

After the clean install of 8.04 (to a new blank hard disk), the xorg.conf file had only generic entries in it:



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

The 'how-to' also recommended trying

sudo ddcprobe | grep monitorrange
to generate values for the xconf file; but that returned no output.

Finally I tracked down my old xconf file from the previous install, and copied the screen and monitor sections over. Success!

But does anyone know why the clean install of 8.04 doesn't appear to auto-detect my laptop's screen resolutions, and the install of 7 did?

Thanks!

robc02
October 12th, 2008, 09:54 PM
I am no expert, and someone who knows more might want to correct me, but this is what I have found:

Versions Feisty and earlier got all their graphics info from xorg.conf.

Gutsy and Hardy depend less on xorg.conf and more on auto detection. I have come across a number of instances where a generic (e.g Vesa) driver have been installed and/or the monitor has been detected as Plug and Play with only a basic set of resolutions - usually resulting in massive, unusable graphics.
Both of these problems can often be corrected in Screens and Graphics - you may have to add it to you menu (Application - Other) using Main Menu in System Administration. Just look for a more suitable monitor option, either one close to your particular one or a Generic option, such as LCD Panel 1280x1074.

When you do this your xorg.conf file will get updated. This is what mine became:

# 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.
#
# 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 "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "Device"
Identifier "Configured Video Device"
Boardname "nvidia"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 0
EndSection

Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Samsung"
Modelname "Samsung SyncMaster 940T/940B/940Fn(Analog)"
Horizsync 30-81
Vertrefresh 56-75
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
modeline "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
modeline "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@75" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
modeline "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
modeline "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
Gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 24
Virtual 1280 1024
#Virtual sets the login screen resolution


Modes "1280x1024@75" "1280x960@60" "1152x864@75" "1280x1024@60" "1024x768@60" "1280x960@75" "1024x768@70" "1400x1050@60" "1024x768@75" "1600x1200@65" "832x624@75" "1600x1200@60" "800x600@60" "800x600@75" "800x600@72" "800x600@56" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
EndSection
Section "Module"
Load "glx"
Load "v4l"
EndSection
Section "ServerFlags"
EndSection

Doncr
November 27th, 2008, 09:32 AM
This is crazy. Editing the xorg.conf by hand? It has been so long I have forgotten how to do that.

On my old debian machine, dpkg-reconfigure xserver-xorg used to - well, reconfigure xorg. On Ubuntu it only reconfigures the keyboard and so on.

What happened?

I found what I was looking for: sudo displayconfig-gtk

Now my new (second hand) 17 inch LCD looks lovely. :-)

rcgeary71
December 2nd, 2008, 11:34 PM
hi

i had this problem too with TE2000. and for me too the various 'regular' solutions did not work.

the issue for me was the new video 'auto-detect' in 8.10 (don't know if it was in 8.04) failing to auto-detect the video properly and defaulting back to some VESA driver.

i solved it by simply running up 7.10 (using the 'live' mode ie. just boot from the disk - *don't install*) (you can likely use other Linux desktop flavours too - like gentoo - whatever)

my video worked perfectly using 7.10

once that was started i put in a usb key

copy /etc/X11/xorg.conf (this is the working config file for X in the 'live' session) to the usb key.

restart back into 8.10

BACKUP the old xorg.conf

(sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak)

then copy the xorg.conf from the usb key to /etc/X11/

restart and everything should be super!

good luck.

fungi
December 12th, 2008, 01:50 AM
Any chance of getting a copy of the TE2000 xorg.conf?

Would be of great assistance :)

rcgeary71
December 14th, 2008, 03:14 AM
HTH


my working xorg.conf file for my Toshiba TE2000


# xorg.conf (xorg 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.
#
# 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 "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "Trident Microsystems CyberBlade XPAi1"
Driver "trident"
BusID "PCI:1:0:0"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-51
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Trident Microsystems CyberBlade XPAi1"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1024x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection