cebess
Posts: 5
Joined: Mon Feb 19, 2018 4:41 pm

Problems maintaining VNC connection - Cannot Currently show the desktop

Tue Dec 03, 2019 11:33 am

I use VNC all the time on my Pi but sometimes when I have a long running task, I walk away. When I get back "Cannot currently show the desktop" is shown on the screen. I know the computer is still running OK. I just cannot bring up the VNC virtual screen on a client on my PC...

Any thoughts on how to get the virtual display working again or to restart the server without killing the current activity? A reboot always work, but then I need to restart my long running task.

cebess
Posts: 5
Joined: Mon Feb 19, 2018 4:41 pm

Re: Problems maintaining VNC connection - Cannot Currently show the desktop

Tue Dec 03, 2019 12:16 pm

A little more detail:

When I do a ps -e, I see:
385 ? 00:00:00 vncserver-x11-s
398 ? 00:08:50 vncserver-x11-c

but when I do a sudo vncserver, I receive back
vncserver: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

I am relatively new to the pi and VNC so I figured I was missing something obvious.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5189
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Problems maintaining VNC connection - Cannot Currently show the desktop

Tue Dec 03, 2019 5:23 pm

cebess wrote:
Tue Dec 03, 2019 11:33 am
...
I just cannot bring up the VNC virtual screen on a client on my PC...

Any thoughts on how to get the virtual display working again or to restart the server without killing the current activity? A reboot always work, but then I need to restart my long running task.
Are you referring to RealVNC's virtual mode** or some other VNC server?
Trev.
** Often useful for Pi's (temporally ) running headless (w/o being connected to a display etc...) - FWIW, some examples here: https://www.cpmspectrepi.uk/raspberry_p ... uster.html
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

cebess
Posts: 5
Joined: Mon Feb 19, 2018 4:41 pm

Re: Problems maintaining VNC connection - Cannot Currently show the desktop

Tue Dec 03, 2019 9:17 pm

I believe it is RealVNC. It was a while ago when I installed it. One other detail - as long as my long running task is working the remote screen behaves fine. It is when the task ends and there is nothing consuming the CPU that it goes black with the error message.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5189
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Problems maintaining VNC connection - Cannot Currently show the desktop

Tue Dec 03, 2019 9:39 pm

cebess wrote:
Tue Dec 03, 2019 9:17 pm
I believe it is RealVNC. It was a while ago when I installed it. One other detail - as long as my long running task is working the remote screen behaves fine. It is when the task ends and there is nothing consuming the CPU that it goes black with the error message.
IIRC, RealVNC is already installed within "Desktop" versions of Raspbian (and enabled via raspi-config etc.)** so you may have installed something else.
Trev.
** Historically from the time of Raspbian Jessie "Pixel" onwards:https://www.cpmspectrepi.uk/raspberry_p ... Pixel.html
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

cebess
Posts: 5
Joined: Mon Feb 19, 2018 4:41 pm

Re: Problems maintaining VNC connection - Cannot Currently show the desktop

Wed Dec 04, 2019 11:03 am

Thanks for the response. I checked my notes and I did
sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

So it is realVNC that is installed.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5189
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Problems maintaining VNC connection - Cannot Currently show the desktop

Wed Dec 04, 2019 7:58 pm

cebess wrote:
Wed Dec 04, 2019 11:03 am
Thanks for the response. I checked my notes and I did
sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

So it is realVNC that is installed.
O.K. just so we have a better idea of your setup can you post the output of these commands:

Code: Select all

uname -a
cat /etc/os-release
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Raspbian”