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!
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).
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.
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
with anchored and also undocked display. It needs to identify the state and also transform the arrangement.
- Finaly make a keyboard shortcut for
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!