diff --git a/config/automatrop/roles/software/tasks/main.yml b/config/automatrop/roles/software/tasks/main.yml index eb41d28..8956ddd 100644 --- a/config/automatrop/roles/software/tasks/main.yml +++ b/config/automatrop/roles/software/tasks/main.yml @@ -93,20 +93,30 @@ become: yes when: arch_based +- name: Enable pacman ParallelDownloads + lineinfile: + path: /etc/pacman.conf + regexp: '^#?ParallelDownloads' + line: 'ParallelDownloads = 5' + insertafter: '^\[options\]$' + become: yes + when: arch_based + - name: Enable pacman colors lineinfile: path: /etc/pacman.conf - regexp: "^#?Color" - line: "Color" + regexp: '^#?Color' + line: 'Color' + insertafter: '^\[options\]$' become: yes when: arch_based - name: Enable pacman pac-man lineinfile: path: /etc/pacman.conf - regexp: "^#?ILoveCandy" - line: "ILoveCandy" - insertafter: "^#?Color" + regexp: '^#?ILoveCandy' + line: 'ILoveCandy' + insertafter: '^#?Color' become: yes when: arch_based diff --git a/config/automatrop/roles/system/handlers/main.yaml b/config/automatrop/roles/system/handlers/main.yaml index 55ba85a..b7065d7 100644 --- a/config/automatrop/roles/system/handlers/main.yaml +++ b/config/automatrop/roles/system/handlers/main.yaml @@ -34,3 +34,8 @@ debug: msg: "The Wi-Fi configuration was changed, but not applied to let this playbook finish. A reboot is required." listen: wifi setup changed + +- name: Warn about changed Panfrost config + debug: + msg: "The Panfrost display driver configuration was changed, but needs a reboot to be applied." + listen: panfrost config changed diff --git a/config/automatrop/roles/system/tasks/main.yml b/config/automatrop/roles/system/tasks/main.yml index 74719a6..275b89e 100644 --- a/config/automatrop/roles/system/tasks/main.yml +++ b/config/automatrop/roles/system/tasks/main.yml @@ -38,6 +38,33 @@ become: yes when: arch_based and False # I'm trying to remember why I usually delete this thing +# Verbose logging during boot + +- name: Check if using Uboot + stat: + path: /boot/extlinux/extlinux.conf + register: extlinux +# This (and the following) was made with the Pinebook in mind, +# not sure about compatibility + +- name: Remove non-tty1 console (Uboot) + replace: + path: /boot/extlinux/extlinux.conf + regexp: '^APPEND(.*) console=(?!tty1)\S+(.*)$' + replace: 'APPEND\1\2' + become: yes + when: extlinux.stat.exists +# Only one console= will be removed because regular expression are either hard +# or somewhat limited. It's just what I need anyway + +- name: Remove bootsplash.bootfile (Uboot) + replace: + path: /boot/extlinux/extlinux.conf + regexp: '^APPEND(.*) bootsplash.bootfile=\S+(.*)$' + replace: 'APPEND\1\2' + become: yes + when: extlinux.stat.exists + # Xorg configuration - name: Check if there is nvidia-xrun is installed @@ -115,6 +142,24 @@ notify: etc changed loop: "{{ xorg_common_config_dirs }}" +- name: List modules we're using + slurp: + src: /proc/modules + register: modules + when: display_server +# Not sure the module will be loaded in early setup stages though + +- name: Make panfrost use OpenGL 3.3 + lineinfile: + path: /etc/environment + line: 'PAN_MESA_DEBUG="gl3"' + regexp: '^#? ?PAN_MESA_DEBUG=' + become: yes + when: display_server and using_panfrost + vars: + using_panfrost: "{{ 'panfrost' in (modules.content | b64decode) }}" + notify: panfrost config changed + # Numlock on boot - name: set numlock on boot