LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin
User Name
Password
Linux Deepin This forum is for the discussion of Linux Deepin.

Notices


Reply
  Search this Thread
Old 01-24-2018, 04:54 AM   #1
desperion
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
How to Turn OFF Laptop LCD monitor


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.

Last edited by desperion; 01-24-2018 at 05:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to dual monitor on laptop using suse 10.3 and lcd monitor 17''/19''? b1ue_sky88 Linux - General 7 02-05-2009 05:42 AM
Laptop LCD blanks, but dosnt turn off completely secretservgy Linux - General 1 10-31-2006 01:39 AM
Dell Laptop LCD won't turn on after suspend Zoombie Linux - Hardware 4 06-24-2006 12:24 AM
Laptop LCD monitor turn off" siggiae Slackware 6 04-22-2005 09:08 AM
broken lcd for laptop, turn to project? zetsui Linux - Laptop and Netbook 3 10-28-2003 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration