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
Blank screen on re-connect remote desktop: WSL + Ubuntu + xfce4 + xrdp #5719
Comments
After a tip, re-connecting works properly when using the "Log Out" menu option vs. simply closing the RDP window. Is this required? |
This is a good question for Ubuntu, xfce4, xrdp or other forums related to those third-party products. There is a MSFT RDP client Q&A forum here. n.b. If you use the Windows FreeRDP client, and the problem does turn out to be with the client (it might, but probably not), then you've got the option to send a PR that fixes it. Also reddit, serverfault. Often it is best to frame the question in those forums as running on a headless Linux box (or VM) without GUI apps on WSL is on the way, subscribe #938. |
I think you'll find that whether the screen is black depends on whether its been idle for 10 minutes or more, and this is caused by the Xfce power manager. Go into the Xfce power manager and turn off, max out and disable all display and system time outs. |
I notice that anything that activates the lock screen, xflock4 also hangs xrdp. By default this includes ctrl-alt-del (activatede by ctrl-alt-end in rdp) and ctrl-alt-L, as seen in keyboard config in xfce4. |
Yep that was that! Thanks!! I turned everything to "never" in Power Management. |
@xpusostomos Thanks a lot for this solution. This issue was annoying me in the past week, now it's resolved. Such a nice trick, wow! |
After a lot of search I found this solution that worked for me (thanks to Luis Pereira https://askubuntu.com/a/1324767) nano /etc/xrdp/startwm.sh unset DBUS_SESSION_BUS_ADDRESS sudo systemctl restart xrdp |
@ANMahmood Thank you for your comment!! I have same issue so, I even tried reset my wsl2 environment!!!!! Your comment is very very helpful!!!! |
@ANMahmood you save my day, thanks |
29/10/2023 - Can confirm with Windows 11 WSL2 Ubuntu 22.04.06, this solution worked |
Thanks. Finally solve this problem.. |
@ANMahmood Thank you very very much indeed, I was about to bang my head against the wall :D. But I would like to understand why this code works. What does this code do? |
Environment
Steps to reproduce
Manual work-around
The following might give some indication toward the cause.
Expected behavior
Re-connecting to the Ubuntu instance through remote desktop always displays the OS.
Actual behavior
Black screen when re-connecting to the Ubuntu instance through remote desktop.
The text was updated successfully, but these errors were encountered: