Fix fix asusctl
This commit is contained in:
parent
93631cd468
commit
be124761d4
@ -6,7 +6,7 @@ StartLimitBurst=0
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Restart=on-failure
|
||||
ExecStart=/bin/bash -c 'echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
|
||||
ExecStart=/bin/bash -c 'echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -3,10 +3,16 @@
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- rust-all
|
||||
- cmake
|
||||
- libayatana-appindicator3-1
|
||||
- libclang-dev
|
||||
- libgtk-3-dev
|
||||
- libglib2.0-dev
|
||||
- libgdk-pixbuf-2.0-dev
|
||||
- libpango1.0-dev
|
||||
- libudev-dev
|
||||
- make
|
||||
- rust-all
|
||||
|
||||
- name: checkout asusctl repo
|
||||
git:
|
||||
@ -28,6 +34,6 @@
|
||||
- name: "Enable service"
|
||||
become: yes
|
||||
ansible.builtin.systemd:
|
||||
name: asusctl
|
||||
name: asusd
|
||||
state: started
|
||||
enabled: yes
|
@ -10,24 +10,17 @@
|
||||
|
||||
- name: checkout supergfxctl repo
|
||||
git:
|
||||
repo: "{{ asusctl.repo }}"
|
||||
repo: "{{ supergfxctl.repo }}"
|
||||
dest: "{{ ansible_user_dir }}/src/supergfxctl"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: build asusctl
|
||||
- name: build supergfxctl
|
||||
make:
|
||||
chdir: "{{ ansible_user_dir }}/src/supergfxctl"
|
||||
|
||||
- name: install asusctl
|
||||
- name: install supergfxctl
|
||||
become: yes
|
||||
make:
|
||||
chdir: "{{ ansible_user_dir }}/src/supergfxctl"
|
||||
target: install
|
||||
|
||||
- name: "Enable service"
|
||||
become: yes
|
||||
ansible.builtin.systemd:
|
||||
name: asusctl
|
||||
state: started
|
||||
enabled: yes
|
Loading…
Reference in New Issue
Block a user