Skip to content

Commit

Permalink
[mark2] Add missing rpi-backlight overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Aug 12, 2024
1 parent aa509e9 commit 8725fdd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion ansible/roles/ovos_hardware_mark2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

- name: Include touchscreen.yml
ansible.builtin.import_tasks: touchscreen.yml
when: "'attiny1614' in ovos_installer_i2c_devices"

- name: Include wireplumber.yml
ansible.builtin.import_tasks: wireplumber.yml
11 changes: 9 additions & 2 deletions ansible/roles/ovos_hardware_mark2/tasks/touchscreen.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
---
- name: Add rpi-backlight DT overlay
ansible.builtin.lineinfile:
path: "{{ _boot_directory }}/config.txt"
regexp: "^rpi-backlight"
line: "dtoverlay=rpi-backlight"

- name: Manage touchscreen, DevKit vs Mark II
ansible.builtin.lineinfile:
path: "{{ _boot_directory }}/config.txt"
regexp: "^{{ item.overlay }}"
line: "{{ item.overlay }}"
state: "{{ item.state }}"
loop:
- {"overlay": "dtoverlay=vc4-kms-v3d", "state": "absent" }
- {"overlay": "dtoverlay=vc4-fkms-v3d", "state": "present" }
- { "overlay": "dtoverlay=vc4-kms-v3d", "state": "absent" }
- { "overlay": "dtoverlay=vc4-fkms-v3d", "state": "present" }
when: "'attiny1614' in ovos_installer_i2c_devices"

0 comments on commit 8725fdd

Please sign in to comment.