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.
This commit is contained in:
@@ -1,2 +1,10 @@
|
||||
---
|
||||
auto_suspend_grub_config_path_bios: /boot/grub2/grub.cfg
|
||||
|
||||
auto_suspend_alpha: 0.3
|
||||
auto_suspend_min_samples: 3
|
||||
auto_suspend_idle_timeout_cycles: 4
|
||||
auto_suspend_cpu_idle_threshold: 90.0
|
||||
auto_suspend_gpu_util_threshold: 5.0
|
||||
auto_suspend_state_dir: /var/lib/auto_suspend
|
||||
auto_suspend_log_file: /var/log/auto_suspend.log
|
||||
|
||||
Reference in New Issue
Block a user