From 73bdb5e5676eb6807dc1795852af2500149bc517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Fri, 22 Dec 2023 20:20:36 +0100 Subject: [PATCH] pindakaas: Fix Alacritty black font --- pindakaas/hardware.nix | 3 ++- .../automatrop/roles/system/handlers/main.yaml | 10 ---------- .../automatrop/roles/system/tasks/main.yml | 18 ------------------ 3 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 unprocessed/config/automatrop/roles/system/handlers/main.yaml diff --git a/pindakaas/hardware.nix b/pindakaas/hardware.nix index d5bcb0a..e53feae 100644 --- a/pindakaas/hardware.nix +++ b/pindakaas/hardware.nix @@ -32,5 +32,6 @@ memoryMax = builtins.floor (4022636544 * 1.5); # Factory settings }; - + # Fixes black font on Alacritty + environment.variables.PAN_MESA_DEBUG = "gl3"; } diff --git a/unprocessed/config/automatrop/roles/system/handlers/main.yaml b/unprocessed/config/automatrop/roles/system/handlers/main.yaml deleted file mode 100644 index a0bc42e..0000000 --- a/unprocessed/config/automatrop/roles/system/handlers/main.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- name: Reload systemd daemon - ansible.builtin.systemd: - daemon_reload: true - listen: systemd changed - become: true - -- name: Warn about changed Panfrost config - ansible.builtin.debug: - msg: The Panfrost display driver configuration was changed, but needs a reboot to be applied. - listen: panfrost config changed diff --git a/unprocessed/config/automatrop/roles/system/tasks/main.yml b/unprocessed/config/automatrop/roles/system/tasks/main.yml index 4a012d1..03ec156 100644 --- a/unprocessed/config/automatrop/roles/system/tasks/main.yml +++ b/unprocessed/config/automatrop/roles/system/tasks/main.yml @@ -7,21 +7,3 @@ become: true when: display_server == 'x11' loop: "{{ xorg_common_config_dirs }}" - -- name: List modules we're using - ansible.builtin.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 - ansible.builtin.lineinfile: - path: /etc/environment - line: PAN_MESA_DEBUG="gl3" - regexp: ^#? ?PAN_MESA_DEBUG= - become: true - when: display_server and using_panfrost - vars: - using_panfrost: "{{ 'panfrost' in (modules.content | b64decode) }}" - notify: panfrost config changed