# Is there a means to autodetect when a display is separated?

I am running Ubuntu on a Dell Latitude with the most up to date Nvidia vehicle drivers. Primarily what I desire is when I disconnect my exterior display that every little thing returns to the major one without needing to transform the config every single time.

Any kind of aid rates!

0
2019-05-18 23:02:38
Source Share

I'm in concerning the very same scenario. I make use of a laptop computer which is occasionally attached to my exterior display. When it is, I generally intend to make use of just this display (due to the fact that I have it linked to an exterior keyboard & computer mouse additionally).

What I located, is that if you have actually a documents called . xprofile , it is called every single time the display is booted up (by X.org?). Here is the materials of my documents. As you can see, I adjusted it from here.

What you need to do is wait to ~/. xprofile and afterwards make it runnable ( chmod+x.xprofile ). Examine just how your inner and also your exterior displays are called - do this by running xrandr without debates. Mine are VGA1 and also LVDS1 specifically. The last point is to set the EXTERNAL_RES variable to the indigenous resolution of your exterior display.

Currently on start up, the linked display will certainly be made use of if it is attached. The complicated component is automation (such as getting rid of the wire while Ubuntu is running). I have not located a great remedy for this, yet it appears that switching over to a digital console and also back suffices (Ctrl - Alt - F1 and afterwards Ctrl - Alt - F7). It is a little bit quicker than biking via all the opportunities with the Fn key (which additionally occasionally screws up the display).

0
2019-12-01 19:22:07
Source

Automatic discovery would certainly be trendy. At the same time I located this post which demonstrates how to bind a key to a given manuscript that toggles in between display screens. It functions rather well for me. It would certainly behave if Ubuntu gave something similar to this out of package.

0
2019-06-01 13:53:22
Source

This is a constraint of Nvidia Twinview on Linux. The open resource vehicle driver will certainly function as anticipated (though you'll shed 3D velocity and also Compiz).

0
2019-06-01 11:45:53
Source

• When the exterior display is undocked , run the adhering to command in incurable:

auto-disper.sh --save undocked

• When the exterior display is anchored and also set up as you desire (with Nvidia X Server Settings), run:

auto-disper.sh --save docked

• Try:

auto-disper.sh --change


with anchored and also undocked display. It needs to identify the state and also transform the arrangement.

• Finaly make a keyboard shortcut for auto-disper.sh --change

I attempted to make a manuscript that run it every 3 secs, so vehicle - dectection functions, yet make use of way too much ressource. Hope that can aid!

0
2019-05-30 22:38:08
Source

You can constantly simply push Fn+F8 after separating the display. That will possibly transform it back.

0
2019-05-21 10:49:10
Source