View Full Version : [xubuntu] Using arandr for dual monitors, how do I make changes persistent?
January 27th, 2013, 06:22 PM
I want my monitors to be extended onto each other, not mirrored. By default it always mirrors them and then I have to go into arandr to set them to be extended. How can I make this change permanent?
I'm using Xubuntu 12.10.
January 27th, 2013, 06:31 PM
set it up in arandr
save the file - should then be there in .screenlayout/whateveryoucallthefile
add that to startup applications, you might need to type the path in there - from memory searching doesn't see hidden files
January 29th, 2013, 03:17 AM
I tried this but it did not work. Any other suggestions?
January 29th, 2013, 08:36 AM
How about some idea of what didn't work?
January 29th, 2013, 10:56 AM
When I log or reboot the monitors still mirror each other. I then have to still manually separate then monitors in arandr each time I start up in order to use extended screens.
January 29th, 2013, 11:32 AM
Couple of things to check
is the script in .screenlayouts set to run in Startup apps in system settings
is the script allowed to run - check it's permissions, right click on the file in thunar - permissions tab - you might need to ctrl+h to see hidden files
January 30th, 2013, 05:02 AM
Yes, the script is set to run.
What do the permissions need to be in order for it to run?
January 30th, 2013, 01:26 PM
You can either set it to Allow to run in thunar or with a terminal
chmod +x /path/to/the/script
For me, from my terminal that's
chmod -x .screenlayout/good.sh
Make sure that it is called from autostart
You should see the name of the item you've called this there.
Mine is called screens
blueman.desktop devilspie.desktop screens.desktop
broken windows again.desktop print-applet.desktop xscreensaver.desktop
January 30th, 2013, 01:29 PM
It was already set as "allowed to run" and it still doesn't work.
January 30th, 2013, 01:42 PM
Can you open a terminal and then run this please
ls .screenlayout/ && ls .config/autostart/
paste the complete output.
January 30th, 2013, 01:43 PM
sbarnett@sbarnett-Satellite-L755:~$ ls .screenlayout/ && ls .config/autostart/
January 30th, 2013, 01:54 PM
Ok - now
cat .config/autostart/Screen.desktop && cat .screenlayout/default.sh
Let's make sure the files look like they should.
It all 'looks' right as far as files being where they should.
You can also see if the script is working from a terminal
One other thing - what graphics card are you using and driver for it.
I used to use nvidia driver with a card - had to set it up with nvidia-settings in that case.
January 31st, 2013, 07:45 PM
sbarnett@sbarnett-Satellite-L755:~$ cat .config/autostart/Screen.desktop && cat .screenlayout/default.sh
xrandr --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output DP1 --off --output VGA1 --mode 1360x768 --pos 1366x0 --rotate normal
I don't know what video card I'm using. It's a Toshiba laptop.
January 31st, 2013, 07:46 PM
By the way I checked and it DOES work from a terminal.
February 2nd, 2013, 09:10 PM
Moved to Desktop Environments
Not sure what's going wrong to be honest, all seems ok to me - especially if running the script from a terminal does the job.
Moved it here to get some different people looking.
February 3rd, 2013, 03:06 AM
Does this file exist and is it executable?
April 13th, 2013, 02:00 PM
Yes that file exists. As a matter of fact I can even make a shortcut to that on the desktop and click on it right after I boot up and it will immediately change the screen settings to the correct settings.
Any other ideas?
May 21st, 2013, 08:48 AM
I solved it (it worked for me at least)!
that's my script
startdual.sh is the saved configuration copy-pasted on m home folder and excecutable.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.