Implement Acer RGB control daemon and CLI

- Removed acer-rgb.cpp and replaced it with acer-rgb-cli.cpp for command-line interface functionality.
- Added acer-rgbd.cpp to implement a daemon that manages RGB settings for keyboard, lid, and button devices.
- Introduced a socket communication mechanism via acer-rgb.sh for sending commands to the daemon.
- Created service and socket files (acer-rgbd.service and acer-rgbd.socket) for systemd integration, allowing the daemon to run as a service.
- Implemented state persistence for RGB settings in /var/lib/acer-rgbd/state.txt, enabling restoration on boot.
This commit is contained in:
Fernando Crespo
2026-01-30 16:43:45 -03:00
parent 8918d48b12
commit 4c1c7a5477
7 changed files with 583 additions and 27 deletions

11
acer-rgbd.service Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=Acer RGB daemon
After=systemd-udevd.service
[Service]
Type=simple
ExecStart=/usr/local/bin/acer-rgbd
Restart=on-failure
[Install]
WantedBy=multi-user.target