Answer the question
In order to leave comments, you need to log in
Ubuntu - how to detect a second monitor?
I have a laptop with Ubuntu. There is a large monitor at work, a little smaller at home.
As a result, when you come to work, you launch Nvidia X Server Settings and set up your workplace. Then you go home, reconfigure again, etc., and ubunta tries to remember the wrong size of the desktop - and then you start chasing the right window with the mouse.
I would like to make some kind of automatic option when there are several predefined configurations, and depending on the monitor plugged into the HDMI hole, a predefined desktop configuration is included.
I understand that in udev you can make a script that works on changing the state of HDMI? Or is there some other non-obvious way?
UPD: I know about disper, but it's a little different, there I couldn't set different desktop locations for different monitors
Answer the question
In order to leave comments, you need to log in
In Nvidia X Server Settings there is an option to select "auto" resolution. In xorg.conf it looks like this:
Offset is adjusted to the smaller monitor, respectively.
Section "Screen"
...
Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-2: nvidia-auto-select +1366+0"
I understand that you make a large monitor the main one? I also suffered once, in the end I scored. I made the main laptop monitor, then everything somehow works automatically. Now I'm really on Intel, I can not check how it is with Nvidia.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question