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