2 |
|
|
3 |
push_firstboot 10_graphic_driver |
push_firstboot 10_graphic_driver |
4 |
push_firstboot 10_graphic_resolution |
push_firstboot 10_graphic_resolution |
5 |
|
push_firstboot 10_graphic_depth |
6 |
|
|
7 |
push_config 10_graphic_driver |
push_config 10_graphic_driver |
8 |
push_config 10_graphic_resolution |
push_config 10_graphic_resolution |
61 |
local value |
local value |
62 |
|
|
63 |
value=$(mysqldo "select module from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select module from cfg_graphic where serial='${serial}'") |
64 |
control_client "${serial}" set graphic.driver "${value}" |
control_client "${serial}" set graphic.driver "\"${value}\"" |
65 |
} |
} |
66 |
|
|
67 |
# set_graphic_resolution $serial $value |
# set_graphic_resolution $serial $value |
86 |
local value |
local value |
87 |
|
|
88 |
value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'") |
89 |
control_client "${serial}" set graphic.resolution "${value}" |
control_client "${serial}" set graphic.resolution "\"${value}\"" |
90 |
} |
} |
91 |
|
|
92 |
# set_graphic_depth $serial $value |
# set_graphic_depth $serial $value |
110 |
local value |
local value |
111 |
|
|
112 |
value=$(mysqldo "select depth from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select depth from cfg_graphic where serial='${serial}'") |
113 |
control_client "${serial}" set graphic.depth "${value}" |
control_client "${serial}" set graphic.depth "\"${value}\"" |
114 |
} |
} |
115 |
|
|
116 |
# set_graphic_refesh $serial $value |
# set_graphic_refesh $serial $value |
134 |
local serial="$1" |
local serial="$1" |
135 |
local value |
local value |
136 |
|
|
137 |
value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select refresh_rate from cfg_graphic where serial='${serial}'") |
138 |
control_client "${serial}" set graphic.resolution "${value}" |
control_client "${serial}" set graphic.refresh "\"${value}\"" |
139 |
} |
} |
140 |
|
|
141 |
# set_graphic_hdmi $serial $value |
# set_graphic_hdmi $serial $value |
160 |
local value |
local value |
161 |
|
|
162 |
value=$(mysqldo "select hdmi from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select hdmi from cfg_graphic where serial='${serial}'") |
163 |
control_client "${serial}" set graphic.hdmi "${value}" |
control_client "${serial}" set graphic.hdmi "\"${value}\"" |
164 |
} |
} |
165 |
|
|
166 |
push_firstboot_10_graphic_driver() |
push_firstboot_10_graphic_driver() |
213 |
import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}" |
import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}" |
214 |
fi |
fi |
215 |
} |
} |
216 |
|
|
217 |
|
push_firstboot_10_graphic_depth() |
218 |
|
{ |
219 |
|
local serial="$1" |
220 |
|
# just set to 'auto' |
221 |
|
local graphic_depth="auto" |
222 |
|
|
223 |
|
if [[ ${MCORE_GRAPHIC_HWDETECT_DEEP} = 1 ]] |
224 |
|
then |
225 |
|
# just set it to 'auto' |
226 |
|
decho "graphic_depth='${graphic_depth}'" |
227 |
|
import_resource cfg_graphic "${serial}" depth "${graphic_depth}" |
228 |
|
else |
229 |
|
# default to runtime autodetection |
230 |
|
graphic_driver="auto" |
231 |
|
import_resource cfg_graphic "${serial}" depth "${graphic_depth}" |
232 |
|
fi |
233 |
|
} |