The backlight on the CM3-PANEL cannot be controled with normal DPMS. Instead, the brightness is set using PWM on GPIO pin 22. The `thermostat.backlight` program runs as a background process to manage the PWM duty cycle. It exposes a D-Bus service to allow other programs to control the backlight. It also watches for *xscreensaver* events to detect when the screen is blanked and disable the backlight. |
||
---|---|---|
.vscode | ||
src/thermostat | ||
.editorconfig | ||
.gitignore | ||
README.md | ||
backlight.service | ||
poetry.lock | ||
pyproject.toml | ||
sensor.service | ||
xinit@.service | ||
xinitrc.sh |
README.md
Thermostat Display
Screen Setup
As instructed at https://www.acmesystems.it/CM3-PANEL-7-BASIC_microsd
- Device Tree Overlay (
config.txt
) - Enable SSH:
thouch /run/media/boot/ssh
- Configure wpa_supplicant
Build/Install
- Build wheel:
poetry build
- Copy wheel to Raspberry Pi
- Install:
python3 -m pip install --user ~/thermostat-*.whl
- Copy
sensor.service
to~/.config/systemd/user
- Start sensor:
systemctl --user enable --now sensor
Automatic Login/Autostart
-
Install packages:
- firefox-esr
- matchbox-window-manager
- x11-xserver-utils
- xdotool
- xinit
-
Copy
xinit@.service
to/etc/systemd/system
-
Copy
xinit.sh
to~/.xinitrc
-
Start GUI:
systemctl enable xinit@pi.service systemctl set-default graphical.target systemctl isolate graphical.target
-
Install Auto Fullscreen add-on fore Firefox