You are not logged in.

#1 2014-05-06 02:40:50

testingwithfire
Member
Registered: 2014-05-06
Posts: 7

SOLVED: Arch newb, custom resolution, xrandr, LXDE - no luck.

Hi all,

I'm brand new to Arch - have run Ubuntu for a few years.

Adding a persistent custom resolution to Ubuntu (Gnome) with xrandr was an easy task.

Arch + LXDE - not so much.

The results of xrandr --newmode and xrandr --addmode do not persist between sessions.

I have the following in both ~/.xinitrc and ~/.xprofile and have rebooted after each change.

xrandr --newmode "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync -vsync
xrandr --addmode VGA1 1360x768_60.00
xrandr --output VGA1 --mode 1360x768_60.00

If I run all these commands manually in a terminal, I can change the resolution.

What's next? I've been Googling this for the past half hour.

Thanks for any pointers.

Last edited by testingwithfire (2014-06-02 01:35:09)

Offline

#2 2014-05-06 06:51:34

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: SOLVED: Arch newb, custom resolution, xrandr, LXDE - no luck.

you can add these lines to an autostart file that is executed by lxsession on login(*) - that's the easiest workaround, i'd say.
other than that, you can set up you xorg.conf to change resolution a little earlier in startup process. please search the wiki for that

(*) lxsession handles things differently than plain openbox.
on Lubuntu, it would be ~/.config/lxsession/Lubuntu/autostart.
if you can't find the appropriate file, you can also create a .desktop file that does the same, and make that autostart.

Offline

#3 2014-06-02 01:34:55

testingwithfire
Member
Registered: 2014-05-06
Posts: 7

Re: SOLVED: Arch newb, custom resolution, xrandr, LXDE - no luck.

Putting the lines in ~/,config/lxsession/LXDE/autostart appears to have made the resolution stick. Thanks for the pointer.

Offline

Board footer

Powered by FluxBB