Actualizo el rol a la versión X11 para Pi 5

This commit is contained in:
Andrés Felipe Marulanda Hernández 2025-08-22 15:47:36 -05:00
parent 98df59f097
commit 84c9085885
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Section "OutputClass"
Identifier "vc4"
MatchDriver "vc4"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection

View File

@ -22,3 +22,16 @@
- import_tasks: show_desktop_periodically.yml
- name: Identificar el modelo de Raspberry Pi
command: cat /proc/device-tree/model
register: pi_model_result
changed_when: false # Este comando solo lee información, no cambia nada.
- name: Copiar configuración de X11 solo si es una Raspberry Pi 5
copy:
src: 99-v3d.conf
dest: /etc/X11/xorg.conf.d/99-v3d.conf
owner: root
group: root
mode: '0644'
when: "'Raspberry Pi 5' in pi_model_result.stdout"