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