PiDerman
Posts: 13
Joined: Tue Sep 04, 2018 9:02 pm

local cursor is not visible on x11vnc

Wed Sep 26, 2018 7:30 am

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.
Last edited by PiDerman on Wed Sep 26, 2018 8:23 am, edited 1 time in total.

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: local cursor is not visible on x11vnc

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

PiDerman
Posts: 13
Joined: Tue Sep 04, 2018 9:02 pm

Re: local cursor is not visible on x11vnc

Wed Sep 26, 2018 8:13 am

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.

PiDerman
Posts: 13
Joined: Tue Sep 04, 2018 9:02 pm

Re: local cursor is not visible on x11vnc

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.

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: local cursor is not visible on x11vnc

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

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: local cursor is not visible on x11vnc

Wed Sep 26, 2018 9:10 am

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

LTolledo
Posts: 4812
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: local cursor is not visible on x11vnc

Wed Sep 26, 2018 10:08 am

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
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

klricks
Posts: 7545
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: local cursor is not visible on x11vnc

Wed Sep 26, 2018 1:03 pm

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.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
neilgl
Posts: 2664
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: local cursor is not visible on x11vnc

Wed Sep 26, 2018 3:55 pm

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.

PiDerman
Posts: 13
Joined: Tue Sep 04, 2018 9:02 pm

Re: local cursor is not visible on x11vnc

Thu Sep 27, 2018 6:21 pm

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?

User avatar
neilgl
Posts: 2664
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: local cursor is not visible on x11vnc

Thu Sep 27, 2018 7:16 pm

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)

Return to “Beginners”