Initial Commit

This commit is contained in:
2026-01-07 14:37:17 +02:00
commit 57dc14dff7
6 changed files with 154 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
diff --git a/docs/CONFIG.md b/docs/CONFIG.md
index 2b1a803..29a86fd 100644
--- a/docs/CONFIG.md
+++ b/docs/CONFIG.md
@@ -1,7 +1,7 @@
# Configuration
The LACT config file is located in `/etc/lact/config.yaml`, and contains all of the GPU settings that are typically edited in the GUI, as well as a few settings specifying the behaviour of the daemon.
-LACT listens for config file changes and reloads all GPU settings automatically, but daemon-related settings such as the logging level or permissions require a service restart (`systemctl restart lactd`).
+LACT listens for config file changes and reloads all GPU settings automatically, but daemon-related settings such as the logging level or permissions require a service restart (` ectl sv restart lactd`).
Full config file with all possible options:
```yaml
diff --git a/lact-gui/src/app.rs b/lact-gui/src/app.rs
index 82b26ec..6294978 100644
--- a/lact-gui/src/app.rs
+++ b/lact-gui/src/app.rs
@@ -212,7 +212,7 @@ impl AsyncComponent for AppModel {
.expect("Could not list devices");
if system_info.version != GUI_VERSION || system_info.commit.as_deref() != Some(GIT_COMMIT) {
- let err = anyhow!("Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo systemctl restart lactd`.", system_info.version, system_info.commit.as_deref().unwrap_or_default());
+ let err = anyhow!("Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo ectl sv reload && sudo ectl sv restart lactd`.", system_info.version, system_info.commit.as_deref().unwrap_or_default());
sender.input(AppMsg::Error(err.into()));
}
@@ -1045,7 +1045,7 @@ fn show_embedded_info(parent: &ApplicationWindow, err: anyhow::Error) {
let text_label = gtk::Label::new(Some(&text));
let enable_label = gtk::Entry::builder()
- .text("sudo systemctl enable --now lactd")
+ .text("sudo ectl sv reload && sudo ectl sv enable lactd && sudo ectl sv start lactd")
.editable(false)
.build();
+6
View File
@@ -0,0 +1,6 @@
name: lactd
description: LACT GPU control daemon
type: background
start_cmd: /usr/bin/lact daemon
exit_method: kill
restart: true