Activate Dual Monitors in LXDE

Find out the device names of your monitor by running the command

xrandr -q | grep ' connected'

As an example, this is what was returned for me:

$ xrandr -q | grep ' connected'
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
DP2-2 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm

To extend the desktop to the external monitor when it is to the right of the laptop, run the following command:

xrandr --output DP2-2 --auto --right-of eDP1
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License