Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: TimJ on November 26, 2016, 04:31:59 PM

Title: VNC without a monitor attached
Post by: TimJ on November 26, 2016, 04:31:59 PM
Apologies for yet another question.

Then I try to start x11vnc on a RPi without any monitor attached, it will not start with an error unable to open the X DISPLAY.

Is it possible to use vnc on a headless RPi?

Thanks

Tim.
Title: Re: VNC without a monitor attached
Post by: Misalf on November 26, 2016, 05:45:27 PM
When attemptin to run  x11vnc  without an X server running ...
Code: [Select]
[...]
*** XOpenDisplay failed (:0)

*** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.
*** There may be "Xlib:" error messages above with details about the failure.

Some tips and guidelines:

** An X server (the one you wish to view) must be running before x11vnc is
   started: x11vnc does not start the X server.  (however, see the -create
   option if that is what you really want).
[...]
Title: Re: VNC without a monitor attached
Post by: Misalf on November 26, 2016, 05:48:25 PM
However, if  TC.tcz  is loaded onboot, or if  startx  was issued by other means, it does work.
Title: Re: VNC without a monitor attached
Post by: curaga on November 27, 2016, 02:14:42 AM
x11vnc always attaches to an existing screen. Use a different vnc server for a virtual screen.
Title: Re: VNC without a monitor attached
Post by: TimJ on November 27, 2016, 11:28:42 AM
I have fixed this by setting hdmi_force_hotplug=1 in config.txt so it always thinks that an HDMI monitor is attached.

One slightly related issue is that over VNC the keyboard repeat did not work. It appears that windows only sends repeated keyDown messages without any keyUp messages. The fix is to add -repeat to the startup of x11vnc.

Thanks for your help.

Tim