Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2843 by niro, Fri Nov 16 13:47:13 2018 UTC revision 2844 by niro, Fri Nov 16 13:48:00 2018 UTC
# Line 86  helper_graphic_rebuild_xorg_conf_d() Line 86  helper_graphic_rebuild_xorg_conf_d()
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"
# Line 126  help_graphic_driver() Line 136  help_graphic_driver()
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  {  {
# Line 229  set_graphic_driver() Line 247  set_graphic_driver()
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]}"
# Line 257  get_graphic_driver() Line 293  get_graphic_driver()
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    }

Legend:
Removed from v.2843  
changed lines
  Added in v.2844