How cicag/kalibret works
Kalibret is a fullscreen GTK touchscreen calibration and testing GUI. An operator configures the input device, runs five-point calibration or starts free-draw testing, reviews the result, and can generate udev rules for manual installation or use Revert to remove the generated rules. The GUI also records free-draw strokes and calibration artifacts under data/. The main implementation is concentrated in kalibret.py; the supplied excerpts show configuration loading and some persistence, while feature relationships noted only in the README are cited there.
Main entry points: kalibret.py Five-point calibration · kalibret.conf Device configuration · 99-kalibret-touchscreen.rules Generated udev rule · last-draw.json Draw log
Components 15
Device setup
- Device configuration
kalibret.conf - Config loading
kalibret.py - GUI entry
kalibret.py
Touch workflows
- Touch interaction
kalibret.py - Free draw testing
kalibret.py - Five-point calibration
kalibret.py - Calibration result
kalibret.py
Saved results
- Draw log
data/last-draw.json - Calibration backups
data - Udev rule generator
kalibret.py - Generated udev rule
udev/99-kalibret-touchscreen.rules
Other components
- Operator
- Touchscreen
- Display session
- System udev rules
Connections 17
- Operator → Device configuration: sets device
README.md - Config loading → Device configuration: reads settings
kalibret.py - Operator → GUI entry: launches GUI
README.md - GUI entry → Display session: shows GUI
README.md - Touchscreen → Touch interaction: provides touches
- Touch interaction → Free draw testing: records strokes
kalibret.py - Free draw testing → Draw log: writes log
kalibret.py - Operator → Free draw testing: starts draw mode
README.md - Touch interaction → Five-point calibration: collects taps
README.md - Operator → Five-point calibration: taps targets
README.md - Five-point calibration → Calibration result: shows result
README.md - Five-point calibration → Calibration backups: saves samples
kalibret.py - Calibration result → Udev rule generator: requests apply
README.md - Udev rule generator → Generated udev rule: writes rules
kalibret.py - Operator → Generated udev rule: copies manually
README.md - Operator → Udev rule generator: reverts rules
README.md - Operator → System udev rules: reloads rules
README.md