Dual monitor extended desktop in Lubuntu
Solution 1
After researching it thoroughly, here are the steps to achieve this (terminal commands in grey):
-
xrandr -q
(to display info about displays, including the names. Mine are VGA-1 and DVI-I-1, used below) xrandr –-output VGA-1 –-left-of DVI-I-1
- Right click on the taskbar (panel) and choose panel settings
- Enter the horizontal resolution of the left monitor in pixels in the margin box (this will move the taskbar to the right screen), and make sure the bottom edges of the two monitors are lined up so the taskbar is visible on the right monitor.
cd ~/
-
cat > .xsessionrc
(creates a text file named .xsessionrc that will persist your settings through restarts) - Hit ctrl-D to exit text entry
-
arandr
(If not installed,sudo apt-get install arandr
) - Adjust monitors position, apply and save layout
- Open the layout file and copy the contents, then close
gedit .xsessionrc
xrandr –-output VGA-1 –-left-of DVI-I-1
- Paste contents previously copied
- Save and close
- Restart machine!
Solution 2
I follow the steps in Lubuntu help wiki. https://help.ubuntu.com/community/Lubuntu/MultiDisplay
1.Install Arandr using command line sudo apt-get install arandr
or using software center.
Lubuntu menu > Preferences > Arandr (You have to plug second monitor before start the application)
Go to Output menu and activate second monitor
Apply settings
Solution 3
I found Nate's solution only works for that user's session.
This seems to work for all users. YMMV
Having derived a working xrandr from using the arandr utility
sudo apt-get install arandr
I hacked this bit of advice here on the forum :-)
sudo vi /usr/share/lightdm/lightdm.conf.d/20-lubuntu.conf
[Seat:*] user-session=Lubuntu # for your login screen, e.g. LightDM (Ubuntu 11.10) or GDM (11.04 or earlier) display-setup-script=/home/mark/.screenlayout/asus.sh # for your desktop session session-setup-script=/home/mark/.screenlayout/asus.sh
chmod a+x /home/mark/.screenlayout/asus.sh
The /home/$USER/.screenlayout/ was the default save location for "arandr" which I recycled :-)
lubuntu 14.04.5
mark@asus-work:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial
Related videos on Youtube
Comments
-
Nate over 1 year
I have two monitors connected to my desktop running Lubuntu (14.04.3). The right one is dedicated to the computer and the left one is also connected to windows machine; it has a button to switch between inputs. I need the desktop extended over the two monitors (not mirrored). Lubuntu doesn't provide the option to extend screens from a control panel.
I also wanted the taskbar (lxpanel) to remain on the right monitor only, so I could always see it even when the left monitor is on windows.
How do I achieve this?