--- mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.client.class.in 2018/11/21 14:01:34 2847 +++ mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.client.class.in 2019/07/25 09:51:37 2848 @@ -66,6 +66,34 @@ addconfig 'EndSection' fi + # rebuild 25-monitor.conf + # always clear the config + CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/25-monitor.conf" + clearconfig + addconfig "# Autogenerated by mcored" + # but only add lines if some values are found in config.d dir + if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/monitor + then + addconfig 'Section "Monitor"' + addconfig ' Identifier "Monitor0"' + helper_graphic_add_configs ${MROOT}/${MCORE_CONFIG_PATH}/xorg/monitor + addconfig 'EndSection' + fi + + # rebuild 25-serverlayout.conf + # always clear the config + CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/25-serverlayout.conf" + clearconfig + addconfig "# Autogenerated by mcored" + # but only add lines if some values are found in config.d dir + if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/serverlayout + then + addconfig 'Section "ServerLayout"' + addconfig ' Identifier "ServerLayout0"' + helper_graphic_add_configs ${MROOT}/${MCORE_CONFIG_PATH}/xorg/serverlayout + addconfig 'EndSection' + fi + # always disable hdmi port on zotac devices atm - fixme make it configurable like alx CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/30-fix-zotac.conf" clearconfig