Setting correct default resolution?

Please post all general support questions for LXDE here.
Locked
amca01
Posts: 3
Joined: Fri Apr 17, 2009 12:38 am

Setting correct default resolution?

Post by amca01 »

My laptop supports 1400x1050, and yet lxde always starts up with 1280x768, which I then change have to manually with lxrandr. I've tried to get lxde to start up with the correct resolution, by including the line

xrandr -s 1400x1050

in my /etc/xdg/lxsession/LXDE/default file, but it doesn't help. How do I force lxde to start up with 1400x1050 resolution?

Thanks,
-A.
kgas
Posts: 45
Joined: Sat Dec 27, 2008 12:32 pm

Re: Setting correct default resolution?

Post by kgas »

you can set the resolution in xorg.conf. If you are using the latest (xorg 1.6), no need for the xorg.conf and will get detected automatically. (which distro are you using).
This link http://wiki.osuosl.org/display/howto/Se ... +xorg.conf is one of many to set your xorg.conf.
amca01
Posts: 3
Joined: Fri Apr 17, 2009 12:38 am

Re: Setting correct default resolution?

Post by amca01 »

Thanks - I'm using Arch. The thing is, xfce starts up in the correct resolution with no troubles, so I assumed it was an lxde issue - somewhere It's picking up the wrong resolution, but I don't know from where.

-Al
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Setting correct default resolution?

Post by Marty Jack »

The normal place to put any commands you want executed at startup is "autostart", rather than "default". As mentioned yesterday, don't put "@" in front of this command.

It might be a good idea to look at your X startup log (/var/log/Xorg.0.log, but it might be in a different directory on your distro) to see if you can figure out why your display doesn't start in the native resolution.
Locked