# pxdiv/div-acer-manager-max architecture

> Architecture diagram of the GitHub repository pxdiv/div-acer-manager-max, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pxdiv/div-acer-manager-max
- Repository: https://github.com/pxdiv/div-acer-manager-max

## Overview

Div Acer Manager Max is a Linux Acer-laptop control suite: users change device settings and view live system information in an Avalonia GUI, which communicates with a privileged daemon over a Unix socket; the daemon applies supported controls through the Linuwu Sense driver layer. A separate keyboard monitor can launch the GUI from the laptop’s dedicated key. The README also documents thermal profiles, fans, battery controls, lighting and other device features. Several feature implementations are unsampled, so those are represented at subsystem level; edges are limited to documented or excerpt-supported relationships.

Main entry points: [`DivAcerManagerMax/MainWindow.axaml.cs`](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/MainWindow.axaml.cs) (Main window), [`DAMM-Daemon/DAMX-Daemon.py`](https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/DAMX-Daemon.py) (Daemon control), [`DivAcerManagerMax/DAMXClient.cs`](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/DAMXClient.cs) (Socket client), [`DivAcerManagerMax/PowerSourceDetection.cs`](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/PowerSourceDetection.cs) (GUI power status)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gui["Desktop interface"]
  node_window["Main window"]
  node_dashboard["Live dashboard<br/>[Dashboard.axaml.cs]"]
  node_internals["Internal controls"]
  node_client["Socket client<br/>[DAMXClient.cs]"]
  node_gui_power["GUI power status"]
end

subgraph group_daemon["Control daemon"]
  node_keyboard["Key monitor<br/>[KeyboardMonitor.py]"]
  node_daemon_core["Daemon control<br/>[DAMX-Daemon.py]"]
end

subgraph group_power["Power handling"]
  node_power_auto["Automatic profiles"]
end

subgraph group_hardware["Hardware access"]
  node_drivers["Linuwu Sense drivers"]
  node_sysfs["Linux device interfaces"]
end

node_user(("Laptop user"))
node_key(("Dedicated key"))

node_user -->|"uses"| node_window
node_window -->|"sends commands"| node_client
node_client -->|"Unix socket IPC"| node_daemon_core
node_user -->|"views metrics"| node_dashboard
node_user -->|"changes controls"| node_internals
node_window -->|"creates monitor"| node_gui_power
node_gui_power -->|"updates status"| node_window
node_key -->|"triggers"| node_keyboard
node_keyboard -->|"launches GUI"| node_window
node_daemon_core -->|"controls hardware"| node_drivers
node_drivers -->|"exposes controls"| node_sysfs
node_power_auto -->|"sets thermal profile"| node_daemon_core
node_daemon_core -.->|"reads device state"| node_sysfs

click node_window "https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/MainWindow.axaml.cs"
click node_dashboard "https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/Dashboard.axaml.cs"
click node_internals "https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/InternalsManager.axaml.cs"
click node_client "https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/DAMXClient.cs"
click node_gui_power "https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/PowerSourceDetection.cs"
click node_keyboard "https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/KeyboardMonitor.py"
click node_daemon_core "https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/DAMX-Daemon.py"
click node_power_auto "https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/PowerSourceDetection.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_window,node_dashboard,node_internals,node_client,node_gui_power,node_user toneBlue
class node_keyboard,node_daemon_core toneAmber
class node_power_auto toneMint
class node_drivers,node_sysfs toneRose
class node_key toneIndigo
```

## Components

### Desktop interface

- [Main window](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/MainWindow.axaml.cs): `DivAcerManagerMax/MainWindow.axaml.cs`
- [Live dashboard](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/Dashboard.axaml.cs): `DivAcerManagerMax/Dashboard.axaml.cs`
- [Internal controls](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/InternalsManager.axaml.cs): `DivAcerManagerMax/InternalsManager.axaml.cs`
- [Socket client](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/DAMXClient.cs): `DivAcerManagerMax/DAMXClient.cs`
- [GUI power status](https://github.com/pxdiv/div-acer-manager-max/blob/main/DivAcerManagerMax/PowerSourceDetection.cs): `DivAcerManagerMax/PowerSourceDetection.cs`

### Control daemon

- [Key monitor](https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/KeyboardMonitor.py): `DAMM-Daemon/KeyboardMonitor.py`
- [Daemon control](https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/DAMX-Daemon.py): `DAMM-Daemon/DAMX-Daemon.py`

### Power handling

- [Automatic profiles](https://github.com/pxdiv/div-acer-manager-max/blob/main/DAMM-Daemon/PowerSourceDetection.py): `DAMM-Daemon/PowerSourceDetection.py`

### Hardware access

- **Linuwu Sense drivers**
- **Linux device interfaces**

### Other components

- **Laptop user**
- **Dedicated key**

## Connections

- Laptop user → Main window: uses (evidence: `README.md`)
- Main window → Socket client: sends commands (evidence: `DivAcerManagerMax/MainWindow.axaml.cs`)
- Socket client → Daemon control: Unix socket IPC (evidence: `DivAcerManagerMax/DAMXClient.cs`)
- Laptop user → Live dashboard: views metrics (evidence: `README.md`)
- Laptop user → Internal controls: changes controls (evidence: `DivAcerManagerMax/InternalsManager.axaml.cs`)
- Main window → GUI power status: creates monitor (evidence: `DivAcerManagerMax/MainWindow.axaml.cs`)
- GUI power status → Main window: updates status (evidence: `DivAcerManagerMax/PowerSourceDetection.cs`)
- Dedicated key → Key monitor: triggers (evidence: `DAMM-Daemon/KeyboardMonitor.py`)
- Key monitor → Main window: launches GUI (evidence: `DAMM-Daemon/KeyboardMonitor.py`)
- Daemon control → Linuwu Sense drivers: controls hardware (evidence: `README.md`)
- Linuwu Sense drivers → Linux device interfaces: exposes controls (evidence: `README.md`)
- Automatic profiles → Daemon control: sets thermal profile (evidence: `DAMM-Daemon/PowerSourceDetection.py`)
- Daemon control → Linux device interfaces: reads device state
