rdp shows black screen when i connect ubuntu after 3-4 days #2873
Unanswered
amardeepl11
asked this question in
Q&A
Replies: 1 comment 2 replies
-
There's likely to be some problem with your session if you're leaving it for so long. While you're not connected, the RDP server is doing nothing at all. For example, you may have a web session open which is using all of your available memory. You can clearly get access to the machine when the black screen occurs. Next time it happens, check you've not run out of memory, then kill applications one-by-one until the session recovers. That will give us a clue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team ,
I have configured ubuntu to access from RDP.
I am able to access but after sometime , when i access again , it shows black screen .
to fix the black screen I had to kill the user session from command line, then rdp works fine.
pls note i am using below config.
systemctl status xrdp.service
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-12-12 10:09:20 GMT; 16min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 131869 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
Process: 131877 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 131878 (xrdp)
Tasks: 2 (limit: 76625)
Memory: 11.5M
CPU: 127ms
CGroup: /system.slice/xrdp.service
├─131878 /usr/sbin/xrdp
└─131891 /usr/sbin/xrdp
Dec 12 10:09:32 : [INFO ] xrdp_wm_log_msg: sesman connect ok
Dec 12 10:09:32 : [INFO ] sesman connect ok
Dec 12 10:09:32 : [INFO ] sending login info to session manager, please wait...
Dec 12 10:09:33 : [INFO ] xrdp_wm_log_msg: login successful for display 11
Dec 12 10:09:33 : [INFO ] login successful for display 11
Dec 12 10:09:33 : [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Dec 12 10:09:33 : [INFO ] started connecting
Dec 12 10:09:33 : [INFO ] lib_mod_connect: connecting via UNIX socket
Dec 12 10:09:33 : [INFO ] lib_mod_log_peer: xrdp_pid=131891 connected to X11rdp_pid=131895 X11rdp_uid= X11rdp_gid= client_ip=::ffff:X.X>
Dec 12 10:09:33 : [INFO ] connected ok
===============================
cat /etc/xrdp/startwm.sh
#!/bin/sh
xrdp X session start script (c) 2015, 2017 mirabilos \
published under The MirOS Licence
export DESKTOP_SESSION=ubuntu
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
if test -r /etc/profile; then
. /etc/profile
fi
if test -r /etc/default/locale; then
. /etc/default/locale
fi
if test -r /etc/profile; then
. /etc/profile
fi
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession
===========
Beta Was this translation helpful? Give feedback.
All reactions