How to Change LXDM Login Resolution

Please post all general support questions for LXDE here.
Locked
Deluge

How to Change LXDM Login Resolution

Post by Deluge »

I am running Lubuntu 10.04, and am having trouble changing the screen resolution of LXDM. I've asked in the Ubuntu forums, but haven't received an answer yet. Here is my post from the forum:

http://ubuntuforums.org/showthread.php?t=1544285:
I was able to fix the desktop resolution of my Lubuntu install using xrandr and /etc/xdg/lxsession/Lubuntu/autostart. But I cannot figure out how to change the resolution of the LXDM login screen. It is set to 1600x1200, but my screen's max resolution is 1024x768, so I only see a portion of the login screen. Does anyone know how to configure LXDM. I haven't been able to find and answer googling "lxdm resolution".
How can I change LXDM's resolution to 1024x768?
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: How to Change LXDM Login Resolution

Post by rockdoctor »

I believe a custom xorg.conf file will take care of the problem.
Geology - It's not rocket science, it's rock science!
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: How to Change LXDM Login Resolution

Post by Marty Jack »

The Rockdoctor is correct. What you need to do is pore over /var/log/Xorg.0.log until you solve why the X server does not initially come up with the correct resolution.
Deluge

Re: How to Change LXDM Login Resolution

Post by Deluge »

Thank you. I created a new xorg.conf and the resolution has been fixed.
cgwatson79
Posts: 1
Joined: Fri Aug 12, 2011 2:45 pm

Re: How to Change LXDM Login Resolution

Post by cgwatson79 »

Could someone point me to where the xorg.conf file is? I found the /usr/lib/x11/xorg.conf.d folder but no file saved as xorg.conf. I am just looking to add the resolution of 1024x768. the 800x600 is too large for my taste. Thank you
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: How to Change LXDM Login Resolution

Post by rockdoctor »

xorg.conf lives in /etc/X11. If you don't have an xorg.conf file already, you can just create one.
Geology - It's not rocket science, it's rock science!
amjjawad
Posts: 304
Joined: Mon Aug 29, 2011 1:51 am
Contact:

Re: How to Change LXDM Login Resolution

Post by amjjawad »

rockdoctor wrote:xorg.conf lives in /etc/X11. If you don't have an xorg.conf file already, you can just create one.
And in order to make this a complete thread, could you please tell us what should be written inside that file?

Many thanks :)
Feel Free to contact me: http://amjjawad.net
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: How to Change LXDM Login Resolution

Post by rockdoctor »

amjjawad wrote:And in order to make this a complete thread, could you please tell us what should be written inside that file?
Whatever works ;)

As root, run

Code: Select all

Xorg -configure :1
This will create the file /root/xorg.conf.new . Ideally, one should just be able to copy this to /etc/X11/xorg.conf and restart X (or reboot). My monitor does not emit a valid EDID, so I need to manually edit my xorg.conf file manually (manually adding lines for Display Size, the ModeLines, and the Modes I want to be able to access) in order to obtain my monitor's full 1680x1050 resolution. FWIW, I've included by xorg.conf file below.

Code: Select all

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib64/xorg/modules"
	FontPath     "catalogue:/etc/X11/fontpath.d"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "dri2"
	Load  "dbe"
	Load  "glx"
	Load  "extmod"
	Load  "record"
	Load  "dri"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"

	#UseModes     "Modes0" #monitor0usemodes
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
        DisplaySize  432	270
	HorizSync    30.0 - 86.0
	VertRefresh  56.0 - 76.0
	ModeLine     "1440x900" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
	ModeLine     "1680x1050" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
	Option	    "PreferredMode" "1680x1050"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "EXAPixmaps"         	# [<bool>]
        Option 	    "IgnoreEDID"  "TRUE"
	Identifier  "Card0"
	Driver      "nouveau"
	VendorName  "nVidia Corporation"
	BoardName   "Unknown Board"
	BusID       "PCI:2:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     24
        Option "IgnoreEDID" "TRUE"
		Modes    "1680x1050" "1440x900" "1280x1024"
	EndSubSection
EndSection

Section "Extensions"
	Option	    "Composite" "Enable"
	Option	    "Compositing" "Enable"
EndSection
Geology - It's not rocket science, it's rock science!
amjjawad
Posts: 304
Joined: Mon Aug 29, 2011 1:51 am
Contact:

Re: How to Change LXDM Login Resolution

Post by amjjawad »

Thanks rockdoctor :)
Feel Free to contact me: http://amjjawad.net
Locked