86 |
then |
then |
87 |
write_zotac_quirk=1 |
write_zotac_quirk=1 |
88 |
fi |
fi |
89 |
|
|
90 |
|
if [ -f ${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf ] |
91 |
|
then |
92 |
|
source ${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf |
93 |
|
case "${graphic_hdmi}" in |
94 |
|
enabled) write_zotac_quirk=0 ;; |
95 |
|
disabled) write_zotac_quirk=1 ;; |
96 |
|
esac |
97 |
|
fi |
98 |
|
|
99 |
if [[ ${write_zotac_quirk} = 1 ]] |
if [[ ${write_zotac_quirk} = 1 ]] |
100 |
then |
then |
101 |
addconfig "# Autogenerated by mcored" |
addconfig "# Autogenerated by mcored" |
136 |
mecho " Selects the graphic card driver used by Xorg." |
mecho " Selects the graphic card driver used by Xorg." |
137 |
} |
} |
138 |
|
|
139 |
|
help_graphic_hdmi() |
140 |
|
{ |
141 |
|
mecho "set graphic.hdmi [action]" |
142 |
|
mecho " Available actions:" |
143 |
|
mecho " enable - enables the hdmi port" |
144 |
|
mecho " disable - disables the hdmi port" |
145 |
|
} |
146 |
|
|
147 |
# set_graphic_resolution ${value} |
# set_graphic_resolution ${value} |
148 |
set_graphic_resolution() |
set_graphic_resolution() |
149 |
{ |
{ |
247 |
fi |
fi |
248 |
} |
} |
249 |
|
|
250 |
|
set_graphic_hdmi() |
251 |
|
{ |
252 |
|
local action="${CLASS_ARGV[0]}" |
253 |
|
local CONFIG |
254 |
|
|
255 |
|
case "${action}" in |
256 |
|
enable|disable) |
257 |
|
CONFIG="${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf" |
258 |
|
clearconfig |
259 |
|
addconfig "graphic_hdmi=\"${action}\"" |
260 |
|
;; |
261 |
|
*) |
262 |
|
help_graphic_driver |
263 |
|
return 1 |
264 |
|
;; |
265 |
|
esac |
266 |
|
} |
267 |
|
|
268 |
get_graphic_driver() |
get_graphic_driver() |
269 |
{ |
{ |
270 |
local action="${CLASS_ARGV[0]}" |
local action="${CLASS_ARGV[0]}" |
293 |
;; |
;; |
294 |
esac |
esac |
295 |
} |
} |
296 |
|
|
297 |
|
get_graphic_hdmi() |
298 |
|
{ |
299 |
|
local CONFIG="${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf" |
300 |
|
if [ -f ${CONFIG} ] |
301 |
|
then |
302 |
|
rvecho "$(< ${CONFIG})" |
303 |
|
fi |
304 |
|
} |