Setting correct default resolution?

Please post all general support questions for LXDE here.
Locked
richardstephens
Posts: 1
Joined: Tue Aug 06, 2019 4:35 am

Setting correct default resolution?

Post by richardstephens »

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,
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Setting correct default resolution?

Post by drooly »

Welcome!
Do you know that that line is being executed at all?
I don't see a file by that name at all.
I also think you should prefer your home directory for adjustments like that.
So try /home/richardstephens/.config/lxsession/LXDE/autostart instead.
You can modify that line to write info to a file:

Code: Select all

xrandr -s 1400x1050 > /home/richardstephens/.config/lxsession/LXDE/log.txt 2>&1
That said, your Xorg should just recognize the correct resolution.
Please show us

Code: Select all

lspci -k | grep -iEA5 'vga|3d|display'
uname -rmv
cat /etc/*release*
kenmartin
Posts: 4
Joined: Tue Oct 08, 2019 12:36 am

Re: Setting correct default resolution?

Post by kenmartin »

In 4.6 at least I have simply done the following from a shell prompt. Type in:

xrandr

It will show available resolutions and the current one set. To change it:

xrandr -s hhhhxvvvv where hhhhxvvvy comes from the list.

When you do make this change it only changes it for the logged in user I believe.
jovitit
Posts: 1
Joined: Sun Dec 29, 2019 8:54 pm

Re: Setting correct default resolution?

Post by jovitit »

richardstephens wrote: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,
Hi buddy, any follow up on this? Trying something similar at my end.

Regards,
Jimi Smith
Thanks for allowing in the forum.
Locked