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

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