pindakaas: Fix Alacritty black font

This commit is contained in:
Geoffrey Frogeye 2023-12-22 20:20:36 +01:00
parent 53304b4abd
commit 73bdb5e567
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 2 additions and 29 deletions

View file

@ -32,5 +32,6 @@
memoryMax = builtins.floor (4022636544 * 1.5); # Factory settings
};
# Fixes black font on Alacritty
environment.variables.PAN_MESA_DEBUG = "gl3";
}

View file

@ -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

View file

@ -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