Created
February 20, 2019 12:26
-
-
Save antoniomerlin/09bcb2f4d367724a9055ece215e7297a to your computer and use it in GitHub Desktop.
Script for setting up second monitor using NVIDIA hdmi to a DVI monitor or hdmi monitor on ubuntu as for my earlier setup https://askubuntu.com/questions/656280/this-installation-did-not-install-the-cuda-driver/656327#656327
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################################### | |
# to setup second screen monitor | |
####################################### | |
optirun true | |
sleep 5 | |
export DISPLAY=:8.0 | |
sleep 3 | |
xrander -q | |
sleep 2 | |
xrander --output VGA-0 --off | |
sleep 2 | |
export DISPLAY=:0.0 | |
xrander --newmode "1440x900" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync | |
sleep 3 | |
xrander --addmode VIRTUAL1 1440x900 | |
sleep 3 | |
xrander --output LVDS1 --auto --output VIRTUAL1 --mode 1440x900 --left-of LVDS1 | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment