8

What I want is a terminal command that would activate internal display in case it is de-activated in Xfce. (Then, I could run this command by a script+shortkey and get a solution to this problem). The help of Xfce4-display-settings gives this

~ $ xfce4-display-settings -h
Usage:
  xfce4-display-settings [OPTION...]

Help Options:
  -h, --help                    Show help options
  --help-all                    Show all help options
  --help-gtk                    Show GTK+ Options

Application Options:
  -s, --socket-id=SOCKET ID     Settings manager socket
  -v, --version                 Version information
  -m, --minimal                 Minimal interface to set up an external output
  --display=DISPLAY             X display to use

I am interested in this: --display=DISPLAY X display to use

I guess it means that the command xfce4-display-settings --display=DISPLAY would activate the given DISPLAY.

What to enter there in place of DISPLAY that would be the internal display?

What for the external display?

5
  • 3
    You probably want to look at the xrandr command instead of xfce4-display-settings.
    – chronitis
    Feb 22, 2013 at 13:20
  • @chronitis: does it have a gui? i am more used with lxrandr and arandr, both can easily be used with shortkeys. but i was wondering what's with that xfce4 display option specifically. so, considering that the other more general question is solved for me (askubuntu.com/a/259765/47206) i would be interested here just in a specific answer on what to enter in that command instead of DISPLAY. shouldn't that command open THAT display?
    – user47206
    Feb 22, 2013 at 14:04
  • xrandr is a command line interface to the X resize-and-rotate ("randr") API. xfce4-display-settings and the Unity/GNOME display settings applet will use the same API, and I suppose could be said to be GUIs for it.
    – chronitis
    Feb 22, 2013 at 14:29
  • 2
    The --display option to xfce4-display-settings will I assume take an X screen (as per the environment variable $DISPLAY, eg :0.0). This is unlikely to be useful to you - multiple monitors are treated as a single X screen (look up xinerama) - this option is used if you're running multiple thin clients off one machine or using an X server on a remote machine.
    – chronitis
    Feb 22, 2013 at 14:32
  • @chronitis: so, in a way that nullifies my question, for the possible answer is of no use to me. or to keep it for others you might paste as answer your last comment, and ill set is accepted
    – user47206
    Feb 22, 2013 at 15:05

1 Answer 1

6

The --display option to xfce4-display-settings will I assume take an X screen (as per the environment variable $DISPLAY, eg :0.0).

This is unlikely to be useful to you - multiple monitors are treated as a single large X screen, with the xinerama X extension providing hints on the actual monitor boundaries to window managers so that, eg maximising a window will maximise it to fill only one monitor.

This option is useful if you are running multiple thin clients off a single machine, or using X over SSH (in which case your $DISPLAY will look something like remotehost:7.0).

You must log in to answer this question.