Commit Graph

2 Commits

Author SHA1 Message Date
alexandre.pires 80c154df03 auto_suspend: busctl->shutdown now, 1min timer config, AMD JSON parsing, locale fix, unit tests 2026-06-09 20:45:08 +02:00
alexandre.pires 98b0f215aa Add fixtures and unit tests for auto suspend functionality
- Introduced fixture files for AMD and NVIDIA GPU monitoring outputs, CPU usage statistics, and user sessions.
- Created a comprehensive unit test suite for the auto_suspend module, covering state management, CPU and GPU measurement, user activity detection, and evaluation logic.
- Updated Ansible tasks to install Python instead of bc, create necessary directories and log files, and ensure proper SELinux context for the auto suspend script.
- Modified the systemd service and timer configurations to improve the auto suspend functionality, including command-line arguments for the Python script.
2026-06-08 22:09:21 +02:00