Blank screen when connecting to tiger vncserver on Rpi3

This forum is for discussion about general software issues.

Blank screen when connecting to tiger vncserver on Rpi3

Postby jamescw » Sun Oct 28, 2018 1:12 pm

Hi, a newbie Archlinux user here.

I'm having trouble with VNC getting a blank black screen when connecting to the Tiger Vncserver on the pi from a Linux desktop or Android phone using both RealVNC viewer and XVNC Viewer.

I have followed the instructions on Archlinux wiki and searched through many suggestions on the web with no luck.
I have the pi running LXDE through LXDM. I can log into the LXDE GUI as the user and have run vncserver from the GUI with the same result.

There appears to be no critical errors in log file - see below. Any help would be greatly appreciated
$this->bbcode_second_pass_quote('', 'X')vnc TigerVNC 1.9.0 - built Jul 20 2018 12:57:48
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12000000, The X.Org Foundation


Sun Oct 28 23:59:38 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: Listening for HTTP connections on all interface(s), port 5801
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported high keycode 372 for name <I372> ignored
> X11 cannot support keycodes above 255.
> This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server

Mon Oct 29 00:00:51 2018
Connections: accepted: 192.168.1.101::33552
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)

"alarmpi:1.log" 26 lines, 1137 characters
Last edited by jamescw on Mon Oct 29, 2018 9:24 am, edited 1 time in total.
jamescw
 
Posts: 3
Joined: Sun Oct 28, 2018 12:48 pm

Re: Blanc screen when connecting to tiger vncserver on Rpi3

Postby graysky » Sun Oct 28, 2018 1:25 pm

Post ~/.vnc/config and ~/.vnc/xstartup
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Blank screen when connecting to tiger vncserver on Rpi3

Postby jamescw » Mon Oct 29, 2018 9:39 am

Here is my ~/.vnc/xstartup
$this->bbcode_second_pass_quote('', '
')#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startlxde &


I have also tried this with;
$this->bbcode_second_pass_quote('', 'u')nset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startlxde &


And this is the ~/.vnc/config
$this->bbcode_second_pass_quote('', '#')# Supported server options to pass to vncserver upon invocation can be listed
## in this file. See the following manpages for more: vncserver(1) Xvnc(1).
## Several common ones are shown below. Uncomment and modify to your liking.
##
# securitytypes=vncauth,tlsvnc
# desktop=sandbox
# geometry=2000x1200
# localhost
# alwaysshared
jamescw
 
Posts: 3
Joined: Sun Oct 28, 2018 12:48 pm
Top

Re: Blank screen when connecting to tiger vncserver on Rpi3

Postby jamescw » Mon Oct 29, 2018 10:35 am

It's working now.
I believe just having ~/.vnc/xstartup file as follows worked for me
$this->bbcode_second_pass_quote('', 'u')nset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startlxde &


Since I tried it without killing a previous vncserver instance it had opened in port 5900+x (in my case x being 2 so 5902)

Thank you graysky. Your request prompted me to check those 2 files again and resulted in the fix.
jamescw
 
Posts: 3
Joined: Sun Oct 28, 2018 12:48 pm
Top


Return to General

Who is online

Users browsing this forum: No registered users and 7 guests