Page 1 of 1

local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 7:30 am
by PiDerman
I just bought a pi and followed this tuotria to setup a x11vnchttp://captainbodgit.blogspot.com/2014/ ... i.html?m=1

What I am trying to achieve is this: Using smartphone as a monitor for a raspberry pi connected with a usb mouse and keyboard. the pi is running raspbian latest version. I want to the vnc to be able to autostart on boot and then i will use smartphone as a display.

I am able to see the pi's desktop, but the local cursor is not visible, it is working though when you left cick the mouse and the menu gets opened up.

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 8:00 am
by mattmiller
You've followed a really old piece of information

If you've just started with a pi - I'd recommend wiping and starting over again

The just run sudo raspi-config in a terminal window , click on interfaces and go down to VNC and select and enable it

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 8:13 am
by PiDerman
mattmiller wrote:
Wed Sep 26, 2018 8:00 am
You've followed a really old piece of information

If you've just started with a pi - I'd recommend wiping and starting over again

The just run sudo raspi-config in a terminal window , click on interfaces and go down to VNC and select and enable it
I have done that but i want a vnc on reboot and it should work with local keyboard and mouse. the thing you mentioned does not works with reboot.

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 8:23 am
by PiDerman
What I am trying to achieve is this: Using smartphone as a monitor for a raspberry pi connected with a usb mouse and keyboard. the pi is running raspbian latest version. I want to the vnc to be able to autostart on boot and then i will use smartphone as a display.

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 9:04 am
by mattmiller
the thing you mentioned does not works with reboot.
I assure you it does start on reboot :)

I have 9 Pi in my house all using it

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 9:10 am
by mattmiller
and it should work with local keyboard and mouse.
This is the bit I don't know about - it might be that the standard VNC server does not show the "real" desktop

If that is true, then I can see your need for X11VNC

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 10:08 am
by LTolledo
mattmiller wrote:
Wed Sep 26, 2018 9:04 am
the thing you mentioned does not works with reboot.
I assure you it does start on reboot :)

I have 9 Pi in my house all using it
I second this! All of my RPi with raspbian stretch with Desktop have the RealVNC autostart every time during boot-up and reboot.
and connects automatically during reboot.
and it should work with local keyboard and mouse.
keyboard local to the RPi or local to the smartphone?

use this android app to connect to realVNC server on RPi
https://play.google.com/store/apps/deta ... er.android

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 1:03 pm
by klricks
PiDerman wrote:
Wed Sep 26, 2018 8:23 am
What I am trying to achieve is this: Using smartphone as a monitor for a raspberry pi connected with a usb mouse and keyboard. the pi is running raspbian latest version. I want to the vnc to be able to autostart on boot and then i will use smartphone as a display.
As mentioned already...
RealVNC is already installed by default in Raspbian Desktop so no need to install anything else. You only need to enable VNC using the GUI config tool or sudo raspi-config. Once enabled, RealVNC will autostart at boot AND will show the local console by default.

Uninstall x11vnc and undo whatever else from the tutorial or reinstall Raspbian with Desktop.

Re: local cursor is not visible on x11vnc

Posted: Wed Sep 26, 2018 3:55 pm
by neilgl
Yes and another thing to watch out for is setting the resolution using raspi-config to (say) 800x600 or else the vncviewer on the phone will only show part of the pi desktop.

Re: local cursor is not visible on x11vnc

Posted: Thu Sep 27, 2018 6:21 pm
by PiDerman
Thanks everyone! It worked!
But my Ip address gets changed sometimes and then I have to change the IP on my vnc viewer to connect to pi, same is with my ssh client as well. does someone knows why my Pi's IP is changing?

Re: local cursor is not visible on x11vnc

Posted: Thu Sep 27, 2018 7:16 pm
by neilgl
Probably because your router is assigning addresses using DHCP.
To avoid this, I login to my router admin page and configure it to always use the same address for my pi (called Address reservation)