Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

So ARandR is great for setting up my monitor layout in Lubuntu 12.10 but even if I save the layout to the

~/.screenlayout

it doesn't seem to save that layout no matter what I call the file.

share|improve this question

marked as duplicate by Luis Jul 24 at 21:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 2 down vote accepted

Turns out that there is a .desktop file for lxrandr that you can edit with the contents from an ARandR file.

e.g. here is my ARandR file for a laptop with an external monitor attached.

$ cat ~/.screenlayout/dual.sh 
#!/bin/sh
xrandr --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal --output LVDS --mode 1280x800 --pos 1920x280 --rotate normal --output HDMI-0 --off

and here is the lxrandr with the xrandr command added and the old command commented out:

$ cat ~/.config/autostart/lxrandr-autostart.desktop 
[Desktop Entry]
Type=Application
Name=LXRandR autostart
Comment=Start xrandr with settings done in LXRandR
Exec=xrandr --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal --output LVDS --mode 1280x800 --pos 1920x280 --rotate normal --output HDMI-0 --off
#Exec=xrandr --output LVDS --mode 1280x800 --rate 59.8 --output VGA-0 --mode 1920x1080
OnlyShowIn=LXDE
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.