92 |
|
|
93 |
# add cvt modelines |
# add cvt modelines |
94 |
addconfig |
addconfig |
95 |
local cvt="/usr/X11R6/bin/cvt" |
local cvt="/usr/bin/cvt" |
96 |
local modeline |
local modeline |
97 |
modeline=$("${cvt}" "${cfg_graphic_resolution%x*}" "${cfg_graphic_resolution#*x}" "${cfg_graphic_refresh_rate}" | sed -e 's:^:\t:g' -e 's:_.*\":\":') |
modeline=$("${cvt}" "${cfg_graphic_resolution%x*}" "${cfg_graphic_resolution#*x}" "${cfg_graphic_refresh_rate}" | sed -e 's:^:\t:g' -e 's:_.*\":\":') |
98 |
addconfig "${modeline}" |
addconfig "${modeline}" |
124 |
addconfig ' Option "PasswordFile" "/root/.vnc/passwd"' |
addconfig ' Option "PasswordFile" "/root/.vnc/passwd"' |
125 |
fi |
fi |
126 |
addconfig 'EndSection' |
addconfig 'EndSection' |
127 |
|
|
128 |
|
# fixes |
129 |
|
# disable LVDS-1 on zotacs |
130 |
|
if [[ ! -z $(hwinfo --bios --storage | grep -i zotac) ]] |
131 |
|
then |
132 |
|
CONFIG="/etc/X11/xorg.conf.d/30-fix-zotac.conf" |
133 |
|
clearconfig |
134 |
|
addconfig 'Section "Monitor"' |
135 |
|
addconfig ' Identifier "LVDS1"' |
136 |
|
addconfig ' Option "Ignore" "True"' |
137 |
|
addconfig 'EndSection' |
138 |
|
else |
139 |
|
# clear this file |
140 |
|
if [ -f /etc/X11/xorg.conf.d/30-fix-zotac.conf ] |
141 |
|
then |
142 |
|
rm /etc/X11/xorg.conf.d/30-fix-zotac.conf |
143 |
|
fi |
144 |
|
fi |
145 |
} |
} |