xpra icon
Bug tracker and wiki

#2522 closed defect (needinfo)

Desktop mirroring: screen goes black after a few minutes, can't wake it up

Reported by: Carlos Solís Owned by: Carlos Solís
Priority: minor Milestone: 4.0
Component: server Version: 3.0.x
Keywords: Cc:

Description

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?

Attachments (2)

xpra-output.txt (54.5 KB) - added by Carlos Solís 12 months ago.
xpra info output file
0.log (1.0 MB) - added by Carlos Solís 12 months ago.
Screen log

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 months ago by Antoine Martin

Owner: changed from Antoine Martin to Carlos Solís

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?

comment:2 Changed 12 months ago by Carlos Solís

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:

  • I changed the configuration to fix the default DPI to 96x96, in order to use it on a smartphone better, but the problem occurred before doing that change.
  • Resizing the window causes it to randomly go to black and return in random intervals, continuously until the session is closed as stated above.

Changed 12 months ago by Carlos Solís

Attachment: xpra-output.txt added

xpra info output file

Changed 12 months ago by Carlos Solís

Attachment: 0.log added

Screen log

comment:3 Changed 12 months ago by Antoine Martin

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?

comment:4 Changed 10 months ago by Antoine Martin

Bump.

comment:5 Changed 10 months ago by Antoine Martin

Resolution: needinfo
Status: newclosed
Note: See TracTickets for help on using tickets.