mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
add option for tuned-ppd
This commit is contained in:
parent
aa9255b16e
commit
0126cb6ff2
4 changed files with 26 additions and 1 deletions
|
|
@ -336,3 +336,5 @@ hardened:
|
|||
enable_namespaces: true
|
||||
|
||||
kernel_parameters: "quiet consoleblank=60"
|
||||
|
||||
power_management: "tlp"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,14 @@
|
|||
---
|
||||
- include_tasks: tlp.yml
|
||||
when: power_management is defined and power_management == "tlp"
|
||||
|
||||
- include_tasks: tuned.yml
|
||||
when: power_management is defined and power_management == "tuned"
|
||||
|
||||
- name: Install x86_energy_perf_policy
|
||||
pacman:
|
||||
name: x86_energy_perf_policy
|
||||
state: present
|
||||
|
||||
- name: Copy touchpad configuration file
|
||||
copy:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
- name: Install TLP
|
||||
pacman:
|
||||
name:
|
||||
- x86_energy_perf_policy
|
||||
- ethtool
|
||||
- tlp
|
||||
- tlp-rdw
|
||||
|
|
|
|||
15
roles/laptop/tasks/tuned.yml
Normal file
15
roles/laptop/tasks/tuned.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Install TuneD
|
||||
pacman:
|
||||
name: tuned-ppd
|
||||
state: present
|
||||
tags:
|
||||
- tuned
|
||||
|
||||
- name: Enable and start TuneD
|
||||
service:
|
||||
name: tuned.service
|
||||
enabled: yes
|
||||
state: started
|
||||
tags:
|
||||
- tuned
|
||||
Loading…
Add table
Add a link
Reference in a new issue