215 |
# add hsync, vrefresh |
# add hsync, vrefresh |
216 |
if [[ -x /sbin/ddcxinfo-knoppix ]] |
if [[ -x /sbin/ddcxinfo-knoppix ]] |
217 |
then |
then |
218 |
|
local hsync="$(ddcxinfo-knoppix -hsync)" |
219 |
|
local vsync="$(ddcxinfo-knoppix -vsync)" |
220 |
|
# fallback |
221 |
|
[[ ${hsync} = 0-0 ]] && hsync="28-96" |
222 |
|
[[ ${vsync} = 0-0 ]] && vsync="50-60" |
223 |
|
|
224 |
echo '' >> ${xfconfig} |
echo '' >> ${xfconfig} |
225 |
echo " HorizSync $(ddcxinfo-knoppix -hsync)" >> ${xfconfig} |
echo " HorizSync ${hsync}" >> ${xfconfig} |
226 |
echo " VertRefresh $(ddcxinfo-knoppix -vsync)" >> ${xfconfig} |
echo " VertRefresh ${vsync}" >> ${xfconfig} |
227 |
fi |
fi |
228 |
|
|
229 |
# add cvt modelines |
# add cvt modelines |