PDA

View Full Version : VNC for piCoreplayer?



ftarz
2019-02-19, 20:16
I'm putting together a piCoreplayer system on a RPi 3B+ with the Pi 7 inch screen for my parents who live 500 miles away.

I've got them set-up with VNC for remote support and this will let me use a browser for piCoreplayer and LMS control, but is there any way to see what's on the piCoreplayer screen? VNC or any other way to share the RPi screen?

This would be great for when they pressed something and don't understand what happened.

Frank

DJanGo
2019-02-19, 23:37
Afaik vnc and its derivates needs X-server and picore doesnt have a X Server.

ralphy
2019-02-25, 05:23
There are a couple framebuffer vncserver implementations based from https://github.com/ponty/framebuffer-vncserver which in turn is derived from the example file https://github.com/LibVNC/libvncserver/blob/master/examples/androidvncserver.c

I have a working POC that allows navigating a picoreplay jivelite instance via the ipad vncviewer app, the keyboard interface still needs some changes to be able to use vnc at the linux console.....stay tuned.

26820

ftarz
2019-04-02, 19:23
There are a couple framebuffer vncserver implementations based from https://github.com/ponty/framebuffer-vncserver which in turn is derived from the example file https://github.com/LibVNC/libvncserver/blob/master/examples/androidvncserver.c

I have a working POC that allows navigating a picoreplay jivelite instance via the ipad vncviewer app, the keyboard interface still needs some changes to be able to use vnc at the linux console.....stay tuned.

26820

Ralphy,

Wondering if you've made any progress with this? I could make use of seeing what's on the RPi monitor using VNCviewer and using mouse clicks if needed. Configuration work and input would be done via the web interface.

Thanks.

Frank

ralphy
2019-04-04, 06:17
The keyboard support still doesn't work very well but the touch and mouse inputs have been fine, however the mouse wheel can't be used with jivelite.

On a wireless rpi3, not the 3+, the vncserver daemon uses only 10% cpu while displaying active VU meters on the iPad vncviewer client.

Here are the client settings I use.

27100

Here is my current picoreplayer build you can try.

SSH into pcp, download and install the extension.

ceo

wget http://ralph-irving.users.sourceforge.net/pico/pcp-vncserver.tcz.md5.txt
wget http://ralph-irving.users.sourceforge.net/pico/pcp-vncserver.tcz

md5sum -c pcp-vncserver.tcz.md5.txt # verify the download was ok
pcp-vncserver.tcz: OK

tce-load -i pcp-vncserver # load the extension now
pcp-vncserver.tcz: OK

Enable loading the extension at boot.


ce

echo "pcp-vncserver.tcz" >> onboot.lst

Add to the User commands on the web gui tweaks page to start vncserver at boot.


/usr/local/sbin/framebuffer-vncserver.sh

To start vncserver now, without a reboot


sudo -E -b /usr/local/sbin/framebuffer-vncserver.sh

and the log file is located at /var/log/vncserver.log

The source code is available on github (https://github.com/ralph-irving/framebuffer-vncserver).

ftarz
2019-04-04, 20:49
Here is my current picoreplayer build you can try.

Ralphy,

Fantastic, works like a charm! Provides enough visualization and control for some remote hand-holding for my parents.

Many thanks.

Frank

rkrug
2019-04-04, 23:38
This sounds like a neat thing: to have a remote for piCoreplayer out of the box. Any chance of making it easy to install in the next version of piCoreplayer (i.e. via the webui)?

Jeff07971
2019-04-05, 03:28
The keyboard support still doesn't work very well but the touch and mouse inputs have been fine, however the mouse wheel can't be used with jivelite.

On a wireless rpi3, not the 3+, the vncserver daemon uses only 10% cpu while displaying active VU meters on the iPad vncviewer client.

Here are the client settings I use.

27100

Here is my current picoreplayer build you can try.

SSH into pcp, download and install the extension.

ceo

wget http://ralph-irving.users.sourceforge.net/pico/pcp-vncserver.tcz.md5.txt
wget http://ralph-irving.users.sourceforge.net/pico/pcp-vncserver.tcz

md5sum -c pcp-vncserver.tcz.md5.txt # verify the download was ok
pcp-vncserver.tcz: OK

tce-load -i pcp-vncserver # load the extension now
pcp-vncserver.tcz: OK

Enable loading the extension at boot.


ce

echo "pcp-vncserver.tcz" >> onboot.lst

Add to the User commands on the web gui tweaks page to start vncserver at boot.


/usr/local/sbin/framebuffer-vncserver.sh

To start vncserver now, without a reboot


sudo -E -b /usr/local/sbin/framebuffer-vncserver.sh

and the log file is located at /var/log/vncserver.log

The source code is available on github (https://github.com/ralph-irving/framebuffer-vncserver).


Thanks Ralphy works great !

One feature request though, If no touchscreen is found allow navigation by keyboard ?

Thanks again

Jeff

ralphy
2019-04-05, 04:19
Thanks Ralphy works great !

One feature request though, If no touchscreen is found allow navigation by keyboard ?

Thanks again

Jeff

It's a command line option to enable but the startup script only checks for the official 7" screen so far.

Navigation by keyboard does not work yet and you have to have a keyboard connected to pcp.

./framebuffer-vncserver [-f device] [-p port] [-t touchscreen] [-h]
-p port: VNC port, default is 5900
-f device: framebuffer device node, default is /dev/fb0
-k device: keyboard device node, (example: /dev/input/event0)
-t device: touchscreen device node (example:/dev/input/event2)
-h : print this help

ralphy
2019-04-05, 04:27
This sounds like a neat thing: to have a remote for piCoreplayer out of the box. Any chance of making it easy to install in the next version of piCoreplayer (i.e. via the webui)?

If/when I get the keyboard interface working it will likely be added to the pcp extensions repository.

Jeff07971
2019-04-05, 12:40
It's a command line option to enable but the startup script only checks for the official 7" screen so far.

Navigation by keyboard does not work yet and you have to have a keyboard connected to pcp.

./framebuffer-vncserver [-f device] [-p port] [-t touchscreen] [-h]
-p port: VNC port, default is 5900
-f device: framebuffer device node, default is /dev/fb0
-k device: keyboard device node, (example: /dev/input/event0)
-t device: touchscreen device node (example:/dev/input/event2)
-h : print this help

Thanks Ralphy

I did look at the script and rewrote to use the keyboard event if no touch was detected but even though VNC run up and I could view it I could not control.
I'll spend a little more time have another go at some point.

Jeff

ralphy
2019-04-06, 04:56
Hi Jeff,

Thanks for looking into the keyboard support.

Paul mentioned that there's a gpio-keys driver in post #14 of this thread (https://forums.slimdevices.com/showthread.php?109686-controlling-jivelite-with-piCorePlayer-with-bash-script&p=925222&viewfull=1#post925222). Which could remove the need for a keyboard device. I just haven't had time to investigate it.

The original keyboard code in framebuffer-vncserver doesn't support all key events so it still needs to be updated.