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 2823 by niro, Fri Jul 28 10:00:23 2017 UTC revision 2843 by niro, Fri Nov 16 13:47:13 2018 UTC
# Line 22  helper_graphic_rebuild_xorg_conf_d() Line 22  helper_graphic_rebuild_xorg_conf_d()
22  {  {
23   local CONFIG   local CONFIG
24   local conf   local conf
25     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 63  helper_graphic_rebuild_xorg_conf_d() Line 65  helper_graphic_rebuild_xorg_conf_d()
65   helper_graphic_add_configs ${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen   helper_graphic_add_configs ${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen
66   addconfig 'EndSection'   addconfig 'EndSection'
67   fi   fi
68    
69     # 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"
71     clearconfig
72     write_zotac_quirk=0
73     if [ -e /sys/devices/virtual/dmi/id/board_vendor ]
74     then
75     boardvendor="$(< /sys/devices/virtual/dmi/id/board_vendor)"
76     # decapitalize
77     boardvendor="${boardvendor,,}"
78     case ${boardvendor} in
79     *zotac*) write_zotac_quirk=1 ;;
80     esac
81     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.2823  
changed lines
  Added in v.2843