PDA

View Full Version : [ubuntu] Different resolution in gdm and gnome



martin_legion
October 6th, 2008, 05:27 PM
Hello people,
I use 1024x768 on my Gnome desktop, but my login screen (gdm) has a very high screen resolution. The refresh rate doesn't seem right and the letters are a little stretched vertically.
Where can I define the resolution in the login screen?

Thanks

M.

robc02
October 6th, 2008, 07:02 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.

martin_legion
October 7th, 2008, 08:12 AM
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.

No, there's no Virtual option in my Screen section.
I don't know if it's normal, but running dpkg-reconfigure xserver-xorg only asks me about keyboard configuration, no monitor or screen resolution at all.

robc02
October 7th, 2008, 08:25 PM
I've never had to run dpkg-reconfigure xserver-xorg in Hardy. The last time was in Feisty and it did ask questions about video. I know that the video arrangements are different in Hardy to previous versions and that it has less dependancy in xorg.conf.
I know of two instances where video resolution has been a problem and has been solved by selecting a specific monitor in "Screens and Graphics" instead of "Plug and Play". I got a much better choice of resolutions when choosing either "Generic - LCD Panel 1280x1024" or the option closest to that of my Samsung monitor. It updates my xorg.conf file but gave the wrong "Virtual Screen" values.

You could consider adding a "Virtual Screen" line. Or could try selecting a different monitor type in "Screens and Graphics" and see if that put puts one in. If it helps here is my xorg.conf:


# 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

martin_legion
October 10th, 2008, 08:38 AM
I solved this problem doing this:

https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/216871/comments/16

Here's the whole thread:

https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/216871

martin_legion
October 14th, 2008, 04:45 PM
I now have this problem on another computer.
The thing is that in this one, when I do


xrandr -q

The name of the deviced used for the monitor is Screen 0, not VGA-0 like in the other computer.
I think the problem is that space between Screen and 0.
I tried adding


xrandr --output Screen 0 --mode 1280x1024

and


xrandr --output Screen-0 --mode 1280x1024

but neither worked.
Any ideas?

can2002
October 31st, 2008, 10:56 AM
Hi There,

I had a similar problem, but I think the display name isn't 'Screen 0', but rather the first entry in the line below:


Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1024
VGA connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm

e.g. in my case, placing the following line in the Default file appeared to do the trick:


xrandr --output VGA --mode 1280x1024

Cheers,
Chris

martin_legion
October 31st, 2008, 11:28 AM
Hi There,

I had a similar problem, but I think the display name isn't 'Screen 0', but rather the first entry in the line below:


Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1024
VGA connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm

e.g. in my case, placing the following line in the Default file appeared to do the trick:


xrandr --output VGA --mode 1280x1024

Cheers,
Chris

I'll give it a try. Thanks!