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 2829 by niro, Fri Aug 4 08:40:36 2017 UTC revision 2830 by niro, Tue Aug 15 11:22:47 2017 UTC
# Line 23  helper_graphic_rebuild_xorg_conf_d() Line 23  helper_graphic_rebuild_xorg_conf_d()
23   local CONFIG   local CONFIG
24   local conf   local conf
25   local boardvendor   local boardvendor
26     local write_zotac_quirk
27    
28   # rebuild 25-gfxcard.conf   # rebuild 25-gfxcard.conf
29   # always clear the config   # always clear the config
# Line 68  helper_graphic_rebuild_xorg_conf_d() Line 69  helper_graphic_rebuild_xorg_conf_d()
69   # always disable hdmi port on zotac devices atm - fixme make it configurable like alx   # always disable hdmi port on zotac devices atm - fixme make it configurable like alx
70   CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/30-fix-zotac.conf"   CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/30-fix-zotac.conf"
71   clearconfig   clearconfig
72     write_zotac_quirk=0
73   if [ -e /sys/devices/virtual/dmi/id/board_vendor ]   if [ -e /sys/devices/virtual/dmi/id/board_vendor ]
74   then   then
75   boardvendor="$(< /sys/devices/virtual/dmi/id/board_vendor)"   boardvendor="$(< /sys/devices/virtual/dmi/id/board_vendor)"
76   # decapitalize   # decapitalize
77   boardvendor="${boardvendor,,}"   boardvendor="${boardvendor,,}"
78   case ${boardvendor} in   case ${boardvendor} in
79   *zotac*)   *zotac*) write_zotac_quirk=1 ;;
  addconfig "# Autogenerated by mcored"  
  addconfig "Section \"Monitor\""  
  addconfig " Identifier \"LVDS1\""  
  addconfig " Option \"Ignore\" \"True\""  
  addconfig "EndSection"  
  ;;  
80   esac   esac
81   fi   fi
82     # some zotacs has as the board_vendor "filled by o.e.m"
83     # so we search the whole devices subtree for zotac vendor matches
84     # 0x19da="ZOTAC International (MCO) Ltd."
85     if [[ -n $(cat /sys/devices/*/*/subsystem_vendor  | grep 0x19da) ]]
86     then
87     write_zotac_quirk=1
88     fi
89     if [[ ${write_zotac_quirk} = 1 ]]
90     then
91     addconfig "# Autogenerated by mcored"
92     addconfig "Section \"Monitor\""
93     addconfig " Identifier \"LVDS1\""
94     addconfig " Option \"Ignore\" \"True\""
95     addconfig "EndSection"
96     fi
97  }  }
98    
99  help_graphic_resolution()  help_graphic_resolution()

Legend:
Removed from v.2829  
changed lines
  Added in v.2830