Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDP Multimonitor xfreerdp #1442

Closed
kjwinchester opened this issue Oct 29, 2017 · 5 comments
Closed

RDP Multimonitor xfreerdp #1442

kjwinchester opened this issue Oct 29, 2017 · 5 comments

Comments

@kjwinchester
Copy link

In X11 window managers, I can run xfreerdp in multimon mode and have my RDP session spread across both of my screens, but in sway it restricts itself to one screen.

Is there anything that can be done about that?

@ddevault
Copy link
Contributor

This will be addressed when wlroots is completed and integrated with sway.

@mox-mox
Copy link

mox-mox commented Apr 14, 2020

Has this been addressed yet? Are there some steps I'll need to take to make it work for me?
When I try xfreerdp +fonts /monitors:1,0 /multimon /dynamic-resolution /u:$USERNAME /v:$HOST /p:$PW I still get only one window...

@mox-mox
Copy link

mox-mox commented Apr 18, 2020

Ok, so there is a tool called 'wlfreerdp', the wayland version of freerdp. Kind of obvious if I think about it. Still 'wlfreerdp +fonts /monitors:1,0 /multimon /dynamic-resolution /u:$USERNAME /v:$HOST /p:$PW' also left me with one screen :/
(And yes, I do have two physical screens configured and working.)

@progandy
Copy link
Contributor

progandy commented Apr 19, 2020

  • no idea why xfreerdp wouldn't work. xrandr -q and xfreerdp /monitor-list might shed some light for you. Maybe all windows are opened on the same display (swaymsg -t get_tree ). If so then try to rearrange them.
  • wlfreerdp does not support multimonitor yet. (This is not a sway bug)
  • you are sure that your rdp server supports multiple monitors? (not a sway bug)

@mox-mox
Copy link

mox-mox commented Apr 20, 2020

wlfreerdp does not support multimonitor yet. (This is not a sway bug)

That was a good hint.
For some reason, when I re-tried xfreerdp it worked for me. THANK YOU very much!
It's great to see sway getting ever better and even surpassing i3.

So for future readers:
I can confirm multi-monitor support for xfreerdp works under sway. My config (relevant parts):
.config/sway/config:

output eDP-1 resolution 1600x900
output HDMI-A-1 enable  mode --custom 1920x1080

xrandr -q:

Screen 0: minimum 16 x 16, current 3520 x 1080, maximum 32767 x 32767
XWAYLAND0 connected 1600x900+1920+0 (normal left inverted right x axis y axis) 310mm x 170mm
   1600x900      59.95*+
XWAYLAND1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 630mm x 360mm
   1920x1080     59.88*+

xfreerdp /monitor-list:

        [0] 1600x900	+1920+0
        [1] 1920x1080	+0+0

And my command to start the remote session:

xfreerdp +fonts /monitors:1,0 /multimon:force /dynamic-resolution /u:$USERNAME /v:$IP:$PORT /p:"$PASSWORD"

This will start the RDP session with the main Windows window on the bigger screen (swap the /monitors:1,0 part to change that).

Edit: It may not always work. In case it does not, try to re-start the session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants