Configuration file as to set mirror display as a default for external monitor through command line

Asked by Shashank Singh

Hi

I am looking for command line configuration file as to set Mirror Display as a default while connecting external monitor for 12.04. In GUI mode we use to do it by going on Displays then checking on check box of Mirror Disply. But i need the same for command line.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xserver-xorg-video-nv Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You could use xrandr

Revision history for this message
Thomas Krüger (thkrueger) said :
#2

At first run "xranr" and look for "… connected" lines to find out the names of your displays. Then run
xrandr --output VGA1 --auto --same-as LVDS1
To make the display VGA1 a mirror or LVDS1.
"--same-as" is the parameter for setting up mirroring.
If you want flipping or scaling, see the other parameters of xranr.

Revision history for this message
Shashank Singh (buddyshashank) said :
#3

Hi Thomas thanks for input, but my concern is to give this option on default, at the time of installation of OS, so that any user when connects frist time a external monitor, he gets mirror screen as a default. Currently it gets a external screen when it conects any monitor.

Revision history for this message
Thomas Krüger (thkrueger) said :
#4

Well, this is a question of personal preference and the default should not be changed without considering all pros and cons properly.
If you have a good and balanced argumentation that conludes the change should be made, you can create a bug report for this.

But I will tell you right away: If your points are not rock solid and argumentation very good, you will get nowhere with it.

Revision history for this message
Jan Groenewald (jan-aims) said :
#5

The question seems to be to change a local site default, not the upstream software's default. So simply the option to customize. He will know his site or organization's priorities. I need both lightdm and all users to default to mirror, because all users get c onfused at data projectors, when they come to the screen there is no login box. When they turn the projector on it is there instead, and they're not used to touch typing so they enter their password in the username box for all to see. Then when the log in, the don't know how to get their presentation from the monitor to the data projector. Default mirrored on our campus solves all of that.

It migth be doable in /etc/gnome-settings-daemon/xrandr/monitors.xml

I'm looking for a site-wide default for this, regardless of the identifier of the externally connected projector or monitor, which is not the same in every venue.

It's not a bug report, it's a feature request.

Can you help with this problem?

Provide an answer of your own, or ask Shashank Singh for more information if necessary.

To post a message you must log in.