How to start freerdp fullscreen on second monitor

265

Solution 1

Get the monitor number (or numbers) you wish to full screen rdp:

xfreerdp /monitor-list

Start full screen on monitor:

xfreerdp /monitors:2 /multimon /v:<host>

Or full screen multiple monitors:

xfreerdp /monitors:1,2 /multimon /v:<host>

Solution 2

Use xfreerdp /monitor-list to check detected monitors, and xfreerdp /monitors:1 to use second monitor.

Solution 3

The DISPLAY environment variable can be used to reach the screens of a multi-desktop system.

DISPLAY=:0.1 xfreerdp ... will probably solve your problem. 0.0 would be your first screen, 0.1 is your second.

Solution 4

Use devilspie2 to automate moving the window to the desired location upon opening. For instance, this config ought to do what you want:

if ( string.find(get_window_name(), 'FreeRDP', 1, true) ~= nil ) then
    undecorate_window()
   x, y, width, height = get_window_geometry();
    set_window_geometry(1920,0,width,height);
    maximize();
end
Share:
265

Related videos on Youtube

north.mister
Author by

north.mister

Updated on September 18, 2022

Comments

  • north.mister
    north.mister almost 2 years

    Here's the code in question (these methods are in the same class):

    private int size;
    
    public int getSize(){
        return this.size;
    }
    public boolean addAll(Collection c) {
    
        Iterator iter = c.iterator();
        int i =0;
        while(i < c.getSize()){
            add(iter.next()); // This part isn't finished yet
            i++;
            this.size++;
        }
    

    I'm receiving the error where I called c.getSize(). The error is: c.getSize() is undefined for type Collection.

    • user207421
      user207421 over 10 years
      Did you consider consulting the Javadoc, instead of just guessing?
  • north.mister
    north.mister over 10 years
    why can't I add a manual get/set method then? Does it not like it since it isn't guaranteed to be in the Collection in the parameter?
  • user207421
    user207421 over 10 years
    You can add getSize() to your own class, but you are calling it on a Collection, not your own class. Your code seems pretty confused about what it is actually doing. You have an Iterator, use its methods to tell you whether there is anything left in the iteration.
  • Ted Hopp
    Ted Hopp over 10 years
    @user2489837 - The fact that you have defined a getSize() in your own class is kind of irrelevant. Even if c is an instance of the class you are defining and it has a getSize() method, the compiler does not know that because the method parameter does not declare c to be any specific subclass of Collection.
  • north.mister
    north.mister over 10 years
    Ok, thank you...I know the question is stupid but I'm new to LinkedLists and their associated errors. Thanks for your help.
  • Andi
    Andi over 9 years
    Thanks for your answer. Unfortunately, I think your command returns the X display. Since I am running a single X server with multiple monitors it returns the same number, no matter on which screen I move the terminal. I should have made this clear in the question, sorry.
  • Lambert
    Lambert over 9 years
    I see what you mean. I got the same when I move the window to another display. Try to have your mouse on the other screen while starting a terminal from the menu. In my case the XID differs when I do that.
  • Lambert
    Lambert over 9 years
    This is not what you are looking for. The xfreerdp session will be embedded into a window from which you use the id. For example the terminal window you previous have moved to another screen.
  • Tom Goodfellow
    Tom Goodfellow about 7 years
    Partially worked for me (Mint 17.1, FreeRDP version 2.0.0-dev from nightly builds May 11 2017) in that the fullscreen window appeared correctly sized for monitor 1 but on monitor 0. CTRL-ALT-ENTER toggled to window mode, then dragging to monitor 1 and CTRL-ALT-ENTER to toggle back to fullscreen.