86 |
then |
then |
87 |
write_zotac_quirk=1 |
write_zotac_quirk=1 |
88 |
fi |
fi |
|
|
|
|
if [ -f ${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf ] |
|
|
then |
|
|
source ${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf |
|
|
case "${graphic_hdmi}" in |
|
|
enabled) write_zotac_quirk=0 ;; |
|
|
disabled) write_zotac_quirk=1 ;; |
|
|
esac |
|
|
fi |
|
|
|
|
89 |
if [[ ${write_zotac_quirk} = 1 ]] |
if [[ ${write_zotac_quirk} = 1 ]] |
90 |
then |
then |
91 |
addconfig "# Autogenerated by mcored" |
addconfig "# Autogenerated by mcored" |
126 |
mecho " Selects the graphic card driver used by Xorg." |
mecho " Selects the graphic card driver used by Xorg." |
127 |
} |
} |
128 |
|
|
|
help_graphic_hdmi() |
|
|
{ |
|
|
mecho "set graphic.hdmi [action]" |
|
|
mecho " Available actions:" |
|
|
mecho " enable - enables the hdmi port" |
|
|
mecho " disable - disables the hdmi port" |
|
|
} |
|
|
|
|
129 |
# set_graphic_resolution ${value} |
# set_graphic_resolution ${value} |
130 |
set_graphic_resolution() |
set_graphic_resolution() |
131 |
{ |
{ |
229 |
fi |
fi |
230 |
} |
} |
231 |
|
|
|
set_graphic_hdmi() |
|
|
{ |
|
|
local action="${CLASS_ARGV[0]}" |
|
|
local CONFIG |
|
|
|
|
|
case "${action}" in |
|
|
enable|disable) |
|
|
CONFIG="${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf" |
|
|
clearconfig |
|
|
addconfig "graphic_hdmi=\"${action}\"" |
|
|
;; |
|
|
*) |
|
|
help_graphic_driver |
|
|
return 1 |
|
|
;; |
|
|
esac |
|
|
} |
|
|
|
|
232 |
get_graphic_driver() |
get_graphic_driver() |
233 |
{ |
{ |
234 |
local action="${CLASS_ARGV[0]}" |
local action="${CLASS_ARGV[0]}" |
257 |
;; |
;; |
258 |
esac |
esac |
259 |
} |
} |
|
|
|
|
get_graphic_hdmi() |
|
|
{ |
|
|
local CONFIG="${MCORE_CONFIG_PATH}/xorg/device/30-hdmi.conf" |
|
|
if [ -f ${CONFIG} ] |
|
|
then |
|
|
rvecho "$(< ${CONFIG})" |
|
|
fi |
|
|
} |
|