# KlipperScreen Android (Wifi)

![](/files/95fk2USAiabinj5BL3Ak)

KlipperScreen es un interfaz muy cómodo para gestionar nuestra máquina, hoy os vamos a enseñar una forma de usarlo sin necesidad de comprarnos una pantalla para nuestra pi y aprovechando algún teléfono que tengamos antiguo por casa.

Los siguientes pasos se realizan una vez ya tenemos KlipperScreen ya instalado, os aconsejamos realizarlo desde [**Kiauh**](https://3dwork.qitec.net/klipper/instalacion#instalando-kiauh).

## Instalación

* Instalamos XServer XSDL desde la app store

{% embed url="<https://play.google.com/store/apps/details?gl=US&hl=de&id=x.org.server>" %}

{% hint style="info" %}
En el caso que uséis un Android que no esté soportado ya os aconsejamos coger una versión anterior desde [**aquí**](https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/)

<https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/>
{% endhint %}

* editaremos el fichero de lanzamiento de klipperScreen

```bash
cd ~/KlipperScreen 
nano ./launch_klipperscreen.sh
```

* Añadiremos el siguiente código y pulsaremos CTRL+X para guardarlos

```bash
#!/bin/bash
DISPLAY=<IPXServerXSDLApp>:0 /home/pi/.KlipperScreen-env/bin/python3 /home/pi/KlipperScreen/screen.py
```

{% hint style="info" %}
Para conocer el valor de DISPLAY abriremos desde nuestro Android la aplicación XServer XSDL que nos dará esta información

<img src="/files/v5KacslQEd8U45ic01wW" alt="" data-size="original">
{% endhint %}

{% hint style="danger" %}
**IMPORTANTE!!! si la IP varía en vuestro Android el proceso no funcionará por lo que os aconsejamos fijar esta IP en vuestro router.**
{% endhint %}

* Una vez guardados los cambios daremos permisos de ejecución

```bash
sudo chmod +x ./launch_klipperscreen.sh
```

* Lanzamos el script para comprobar que funcione todo y pulsaremos **CTRL+C para salir**

```bash
./launch_klipperscreen.sh
```

* configuramos el servicio para que arranque con klipperScreen

```bash
cd /etc/systemd/system
sudo nano ./KlippyScreenAndroid.service
```

* añadiremos el siguiente código y **CTRL+X para guardar/salir**

```bash
	[Unit]
	Description=KlippyScreen
	After=moonraker.service
	StartLimitIntervalSec=0

	[Service]
	Type=simple
	Restart=always
	RestartSec=1
	User=pi
	WorkingDirectory=/home/pi/KlipperScreen
	ExecStart=/usr/bin/bash  /home/pi/KlipperScreen/launch_klipperscreen.sh

	[Install]
	WantedBy=multi-user.target
```

* Reiniciaremos los siguientes servicios

```bash
	sudo systemctl daemon-reload
	sudo systemctl enable KlippyScreenAndroid
	sudo systemctl restart KlippyScreenAndroid
```

Ya deberiamos de tener nuestro KlipperScreen de forma inalámbrica en nuestro teléfono!!!

## Agradecimientos

Gracias al usuario <https://t.me/zhrosanFPV> de nuestro [**grupo de Telegram Klipper**](https://t.me/Klipper_Firmware_ES)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://klipper.3dwork.io/klipper/mejoras/klipperscreen-mejoras/klipperscreen-android-wifi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
