"DRI" "3" automatisch bei softhdvaapi setzen.
Hallo zusammen,
bei mir muß ich nach einem Update (Playbook) immer in die Datei "/etc/X11/xorg.conf.d/20-intel.conf" die Parameter option "DRI" "3" von Hand einfügen.
In der Datei "~/yavdr-ansible/hosts/localhost" ist "selected_frontend: softhdvaapi" gesetzt.
In der zugrunde liegenden Template-Datei "~/yavdr-ansible/roles/yavdr-xorg/templates/20-intel.conf.j2" wird in manchen Sektionen auf softhdvaapi getestet - dies greift aber bei mir nicht. (Fehlt mir xorg.secondary???)
Wie muß die die Vorlage ändern, damit bei mir der Eintrag in die 20-intel.conf automatisch erfolgt?
{{ ansible_managed | comment }}
{% set primary_output = xorg.primary.connector|replace("-", "") %}
{% if xorg.secondary is defined %}
{% set secondary_output = xorg.secondary.connector|replace("-", "") %}
{% endif %}
Section "Device"
Identifier "Device0"
Driver "intel"
Option "TearFree" "true"
{% if xorg.secondary is defined %}
Option "ZaphodHeads" "{{ primary_output }}"
Screen 0
{% endif %}
EndSection
{% if xorg.secondary is defined %}
Section "Device"
Identifier "Device1"
Driver "intel"
Option "TearFree" "true"
{%if selected_frontend == "softhdvaapi" %}
Option "DRI" "3"
{% endif %}
Option "ZaphodHeads" "{{ secondary_output }}"
Screen 1
EndSection
.....
#
# *** ANSIBLE MANAGED FILE ***
# template: /home/kk/yavdr-ansible/roles/yavdr-xorg/templates/20-intel.conf.j2
#
Section "Device"
Identifier "Device0"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DP1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080_50"
EndSubSection
EndSection
Section "Monitor"
Identifier "DP1"
Modeline "1920x1080_50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +HSync +VSync
EndSection
Section "Monitor"
Identifier "DP2"
Option "Ignore" "true"
EndSection
Section "Monitor"
Identifier "HDMI1"
Option "Ignore" "true"
EndSection
Gruß K.