22 |
{ |
{ |
23 |
local CONFIG |
local CONFIG |
24 |
local conf |
local conf |
25 |
|
local boardvendor |
26 |
|
|
27 |
# rebuild 25-gfxcard.conf |
# rebuild 25-gfxcard.conf |
28 |
# always clear the config |
# always clear the config |
64 |
helper_graphic_add_configs ${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen |
helper_graphic_add_configs ${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen |
65 |
addconfig 'EndSection' |
addconfig 'EndSection' |
66 |
fi |
fi |
67 |
|
|
68 |
|
# always disable hdmi port on zotac devices atm - fixme make it configurable like alx |
69 |
|
CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/30-fix-zotac.conf" |
70 |
|
clearconfig |
71 |
|
if [ -e /sys/devices/virtual/dmi/id/board_vendor ] |
72 |
|
then |
73 |
|
boardvendor="$(< /sys/devices/virtual/dmi/id/board_vendor)" |
74 |
|
# decapitalize |
75 |
|
boardvendor="${boardvendor,,}" |
76 |
|
case ${boardvendor} in |
77 |
|
*zotac*) |
78 |
|
addconfig "# Autogenerated by mcored" |
79 |
|
addconfig "Section \"Monitor\"" |
80 |
|
addconfig " Identifier \"LVDS1\"" |
81 |
|
addconfig " Option \"Ignore\" \"True\"" |
82 |
|
addconfig "EndSection" |
83 |
|
;; |
84 |
|
esac |
85 |
|
fi |
86 |
} |
} |
87 |
|
|
88 |
help_graphic_resolution() |
help_graphic_resolution() |