From f1d716d9009a303828fb1f7aee36d8433e7bb0c7 Mon Sep 17 00:00:00 2001 From: PaulVua Date: Tue, 17 Feb 2026 12:28:58 +0100 Subject: [PATCH] Docs: Add usage instructions to screen.py --- screen_control/screen.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/screen_control/screen.py b/screen_control/screen.py index b868d71..dcde19c 100644 --- a/screen_control/screen.py +++ b/screen_control/screen.py @@ -1,4 +1,26 @@ +# Screen Control Script (Kivy) +# +# This script displays a simple "Bonjour" message on the HDMI screen using Kivy. +# It is designed to be run on a device without a desktop environment (headless/framebuffer). +# +# HOW TO RUN (CLI): +# ----------------- +# 1. Ensure Kivy is installed (python3-kivy). +# 2. You may need to set the DISPLAY environment variable if running from SSH or outside a graphical session: +# export DISPLAY=:0 +# 3. Run the script: +# python3 /home/aircarto/nebuleair_pro_4g/screen_control/screen.py +# +# HOW TO RUN (BACKGROUND): +# ------------------------ +# nohup python3 /home/aircarto/nebuleair_pro_4g/screen_control/screen.py > /dev/null 2>&1 & +# +# HOW TO STOP: +# ------------ +# pkill -f "screen_control/screen.py" +# + import os os.environ['KIVY_GL_BACKEND'] = 'gl' from kivy.app import App