Skip to content

1.5 How to Access KlipperScreen on SmartPad via VNC

KlipperScreen VNC

This tutorial explains how to remotely view and control the KlipperScreen interface on your YUMI SmartPad using VNC. It shares the actual framebuffer of the SmartPad’s screen, including the correct rotation, allowing you to see exactly what is displayed.

Prerequisites

  • YUMI SmartPad with KlipperScreen running
  • Network connection between the SmartPad and your computer
  • SSH access to the SmartPad
  • A VNC client installed on your computer (e.g., TightVNC Viewer, RealVNC, UltraVNC)

Steps

1. Connect to the SmartPad via SSH

  • Find the SmartPad’s IP address in the network settings.
  • Open a terminal on your computer and connect via SSH:
ssh pi@smartpad_ip_address

Replace smartpad_ip_address with the actual IP of your SmartPad.

2. Install x11vnc (if not installed)

sudo apt update
sudo apt install x11vnc

3. Start the VNC server on the SmartPad

Run this command to start sharing the SmartPad’s screen with correct rotation:

sudo x11vnc -rawfb /dev/fb0 -rotate 180 -scale 1024x600 -passwd your_password -forever -shared -nocursor
  • -rawfb /dev/fb0: captures the physical framebuffer
  • -rotate 180: rotates the image upright
  • -scale 1024x600: adapts resolution for your PC
  • -passwd your_password: sets the VNC password (replace your_password with your chosen password)
  • -forever: keeps the server running after disconnects
  • -shared: allows multiple simultaneous connections

Leave this command running while you want to use VNC.

4. Connect from your computer using a VNC client

  • Open your preferred VNC viewer (e.g., TightVNC Viewer).
  • Enter the SmartPad’s IP address and port 5900, e.g.:

192.168.1.42:5900
* Enter the password you set for the VNC server. * You should now see the live SmartPad screen on your computer.

KlipperScreen VNC

Automate VNC Server Startup with systemd

To launch the VNC server automatically on boot, create a systemd service.

1. Create the service file

Run:

sudo nano /etc/systemd/system/x11vnc.service

2. Paste the following content

[Unit]
Description=Start x11vnc to share SmartPad framebuffer
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -rawfb /dev/fb0 -rotate 180 -scale 1024x600 -passwd your_password -forever -shared -nocursor
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Replace your_password by the password you want for VNC access.

3. Save and close (Ctrl+O, Enter, Ctrl+X)

4. Enable and start the service

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service

5. Check the service status

sudo systemctl status x11vnc.service

The VNC server will now start automatically on every boot.

Troubleshooting

  • Make sure SmartPad and your computer are on the same network.
  • If the image orientation is incorrect, adjust the -rotate parameter accordingly (0, 90, 180, or 270).
  • To stop the VNC server:

sudo systemctl stop x11vnc.service
* To disable auto-start:

sudo systemctl disable x11vnc.service