add xorg autoconfiguration, install some config files for vdr, update nfs- and avahi configuration
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# forward environment variables to an environment file and the systemd user session
|
||||
env | grep "DISPLAY\|DBUS_SESSION_BUS_ADDRESS\|XDG_RUNTIME_DIR" > ~/.session-env
|
||||
systemctl --user import-environment DISPLAY XAUTHORITY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
@@ -798,7 +798,7 @@
|
||||
<decor>no</decor>
|
||||
<maximized>true</maximized>
|
||||
<!--<skip_pager>yes</skip_pager>-->
|
||||
<skip_taskbar>yes</skip_taskbar>
|
||||
<skip_taskbar>no</skip_taskbar>
|
||||
</application>
|
||||
<application title="browser">
|
||||
<decor>no</decor>
|
||||
|
||||
@@ -5,4 +5,4 @@ Before=graphical.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/x-daemon -logverbose 6 -noreset %I
|
||||
ExecStart=/usr/bin/x-daemon -logverbose 6 -noreset %I -config /etc/X11/xorg-debug.conf
|
||||
|
||||
2
roles/yavdr-xorg/templates/systemd/vdr-environ.j2
Normal file
2
roles/yavdr-xorg/templates/systemd/vdr-environ.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
EnvironmentFile=-/var/lib/vdr/.session-env
|
||||
20
roles/yavdr-xorg/templates/xorg-verbose.conf.j2
Normal file
20
roles/yavdr-xorg/templates/xorg-verbose.conf.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
Section "Device"
|
||||
Identifier "nvidia"
|
||||
Driver "nvidia"
|
||||
Option "NoLogo" "true"
|
||||
Option "DynamicTwinView" "true"
|
||||
Option "NoFlip" "false"
|
||||
# Option "FlatPanelProperties" "Scaling = Native"
|
||||
# Option "ModeValidation" "NoVesaModes, NoXServerModes"
|
||||
# Option "ModeDebug" "true"
|
||||
# Option "HWCursor" "false"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "screen"
|
||||
Device "nvidia"
|
||||
EndSection
|
||||
|
||||
Section "Extensions"
|
||||
Option "Composite" "false"
|
||||
EndSection
|
||||
98
roles/yavdr-xorg/templates/xorg.conf.j2
Normal file
98
roles/yavdr-xorg/templates/xorg.conf.j2
Normal file
@@ -0,0 +1,98 @@
|
||||
{{ ansible_managed_file | comment }}
|
||||
|
||||
Section "ServerLayout"
|
||||
Identifier "Layout0"
|
||||
Screen 0 "Screen0"
|
||||
{% if xorg.secondary is defined %}
|
||||
Screen 1 "Screen1" RightOf "Screen0"
|
||||
{% endif %}
|
||||
#InputDevice "Keyboard0" "CoreKeyboard"
|
||||
#InputDevice "Mouse0" "CorePointer"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "exclude eventlircd devices"
|
||||
MatchTag "eventlircd"
|
||||
Option "Ignore" "True"
|
||||
EndSection
|
||||
|
||||
Section "Monitor"
|
||||
Identifier "Monitor0"
|
||||
VendorName "{{ xorg.primary.vendor }}"
|
||||
ModelName "{{ xorg.primary.model }}"
|
||||
Option "DPMS"
|
||||
Option "ExactModeTimingsDVI" "True"
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "Device0"
|
||||
Driver "nvidia"
|
||||
VendorName "NVIDIA Corporation"
|
||||
Option "NoLogo" "true"
|
||||
{% if xorg.primary.bus_id is defined %}
|
||||
BoardName "{{ xorg.primary.gpu_name }}"
|
||||
BusID "{{ xorg.primary.bus_id }}"
|
||||
{% else %}
|
||||
BoardName "Unknown"
|
||||
{% endif %}
|
||||
Screen 0
|
||||
EndSection
|
||||
|
||||
|
||||
Section "Screen"
|
||||
Identifier "Screen0"
|
||||
Device "Device0"
|
||||
Monitor "Monitor0"
|
||||
DefaultDepth 24
|
||||
Option "nvidiaXineramaInfoOrder" "{{ xorg.primary.connector }}"
|
||||
Option "ConnectedMonitor" "{{ xorg.primary.connector }}"
|
||||
Option "UseDisplayDevice" "{{ xorg.primary.connector }}"
|
||||
Option "CustomEDID" "{{ xorg.primary.connector }}:/etc/X11/edid.{{ xorg.primary.connector }}.bin"
|
||||
Option "metamodes" "{{ xorg.primary.connector }}: {{ xorg.primary.mode }} +0+0"
|
||||
Option "SLI" "Off"
|
||||
Option "MultiGPU" "Off"
|
||||
Option "BaseMosaic" "off"
|
||||
SubSection "Display"
|
||||
Depth 24
|
||||
EndSubSection
|
||||
EndSection
|
||||
|
||||
{% if xorg.secondary is defined %}
|
||||
Section "Device"
|
||||
Identifier "Device1"
|
||||
Driver "nvidia"
|
||||
VendorName "NVIDIA Corporation"
|
||||
Option "NoLogo" "true"
|
||||
{% if xorg.secondary.bus_id is defined %}
|
||||
BoardName "{{ xorg.primary.gpu_name }}"
|
||||
BusID "{{ xorg.primary.bus_id }}"
|
||||
{% else %}
|
||||
BoardName "Unknown"
|
||||
{% endif %}
|
||||
Screen 1
|
||||
EndSection
|
||||
|
||||
Section "Monitor"
|
||||
Identifier "Monitor1"
|
||||
VendorName "{{ xorg.secondary.vendor }}"
|
||||
ModelName "{{ xorg.secondary.model }}"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "Screen1"
|
||||
Device "Device1"
|
||||
Monitor "Monitor1"
|
||||
DefaultDepth 24
|
||||
Option "nvidiaXineramaInfoOrder" "{{ xorg.secondary.connector }}"
|
||||
Option "ConnectedMonitor" "{{ xorg.secondary.connector }}"
|
||||
Option "UseDisplayDevice" "{{ xorg.secondary.connector }}"
|
||||
Option "CustomEDID" "{{ xorg.secondary.connector }}:/etc/X11/edid.{{ xorg.secondary.connector }}.bin"
|
||||
Option "metamodes" "{{ xorg.secondary.connector }}: {{ xorg.secondary.mode }} +0+0"
|
||||
Option "SLI" "Off"
|
||||
Option "MultiGPU" "Off"
|
||||
Option "BaseMosaic" "off"
|
||||
SubSection "Display"
|
||||
Depth 24
|
||||
EndSubSection
|
||||
EndSection
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user