I have a VPS running Debian, in which I installed the LXDE desktop environment in order to have a virtual desktop available online. Usually I start the desktop with the following command:
xpra start-desktop --start-child=lxsession --exit-with-children --bind-tcp=0.0.0.0:8082 --auth=pam
then I start the local Linux client on my side and connect via TCP to port 8082 (port 8080 and 8081 are busy on other server processes, and port 14500 is blocked by my firewall). However, I've noticed that if I leave the virtual desktop on for a few minutes, the screen will go black as if the system had entered a suspended state. This happens even if I have no screensaver installed, and have set the power options of the virtual desktop to never turn the screen off. Attempting to move the mouse or press a key has no effect - it's as if the system had completely disconnected. Is this an issue with Xpra, or with LXDE?
I have a VPS running Debian
Which Debian release?
in which I installed the LXDE desktop environment
How? Which commands did you use?
... --auth=pam
pam is already the default on Linux.
if I leave the virtual desktop on for a few minutes, the screen will go black
Is it always the same amount of time? Does it not happen if you are interacting with it?
Is this an issue with Xpra, or with LXDE?
Difficult to say.
What does the client log output show?
Is the client still connected? Is the session info window showing any data transfers?
Can you re-connect to the session? Does it help?
Can you run your server with -d server
and keep an eye on its log file?
Can you run xpra info
for this session?
Currently using Debian Stable (version 9 Stretch). Installed LXDE via apt install lxde-core lxde-common
. Attached the xpra info
and :0.log
as it's too large for a post. Disconnecting and reconnecting to the session doesn't help whatsoever; closing the session with Ctrl+C leaves the X server running in the background and repeating the command fails as a result. Closing the session, then running
sudo fuser -k 8082/tcp sudo systemctl stop lightdm sudo killall Xorg
and repeating the starting command gives me a blank slate.
Other relevant topics that might be related:
xpra info output file
Screen log
Currently using Debian Stable (version 9 Stretch). Installed LXDE via apt install lxde-core lxde-common
OK, I'll try to reproduce when I have time.
closing the session with Ctrl+C leaves the X server running in the background and repeating the command fails as a result.
What do you mean by "closing the session"? Control-C normally just detaches the client.
sudo systemctl stop lightdm
Why is this needed?
and repeating the starting command gives me a blank slate.
If somehow that vfb got left behind, you can re-start xpra against the same X11 display with the --use-display=yes :DISPLAYNO
flag. You will need to know what the displayno was.
I changed the configuration to fix the default DPI to 96x96
How? Setting dpi=96
in your config / global system config?
This should not make any difference?
Resizing the window causes it to randomly go to black and return in random intervals, continuously until the session is closed as stated above.
Have you tried turning opengl off in the client?
Can you also try xpra screenshot tcp://SERVERIP:8082/ screenshot.png
once the session goes black?
Bump.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2522