D
D
Delsian2011-05-30 15:33:31
Monitors
Delsian, 2011-05-30 15:33:31

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

3 answer(s)
T
temoon, 2011-05-30
@temoon

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"

V
Vsevolod, 2011-05-30
@sevka_fedoroff

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.

S
sl_bug, 2011-05-30
@sl_bug

As far as I know, proprietary nvidian drivers don't support such things, due to incomplete XRandr support (or lack of it at all). You can try nouveau + experimental 3d support.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question