Hi,
I am using an HP Notebook-17-p101na (17" Display) with an external 24" display attached. At the present moment when I run up my computer, both displays are active. I only want to have the 24" display active, with the 17" display blank. The distro I am using is Deepin 15.5
Searching the forum I came across the following entry:
Quote:
Have to create a script in /etc/X11/Xsession.d/ called "45custom_xrandr-settings"
Contents are:
Code:
EXTERNAL_OUTPUT="VGA"
INTERNAL_OUTPUT="LVDS"
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
else
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi
At startup this checks if external display is connected.
If it is connected then the laptop monitor turns OFF and external monitor turns ON.
If the external display is NOT connected then only internal monitor works.
|
This seems to fit my requirements, however, being a complete "newbie" I have no knowledge as to how to configure this.
I assume one has to make a text file name "45custom_xrandr-settings" and place that in "Xsession.d" but I don't know how to go about this. Could someone please give me an ABC guide.
Thank you.