Magellan Linux

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

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

revision 2844 by niro, Fri Nov 16 13:48:00 2018 UTC revision 2857 by niro, Wed Jul 15 06:26:01 2020 UTC
# Line 2  Line 2 
2    
3  push_firstboot 10_graphic_driver  push_firstboot 10_graphic_driver
4  push_firstboot 10_graphic_resolution  push_firstboot 10_graphic_resolution
5    push_firstboot 10_graphic_depth
6    
7  push_config 10_graphic_driver  push_config 10_graphic_driver
8  push_config 10_graphic_resolution  push_config 10_graphic_resolution
# Line 133  push_config_10_graphic_refresh() Line 134  push_config_10_graphic_refresh()
134   local serial="$1"   local serial="$1"
135   local value   local value
136    
137   value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'")   value=$(mysqldo "select refresh_rate from cfg_graphic where serial='${serial}'")
138   control_client "${serial}" set graphic.resolution "${value}"   control_client "${serial}" set graphic.refresh "${value}"
139  }  }
140    
141  # set_graphic_hdmi $serial $value  # set_graphic_hdmi $serial $value
# Line 212  push_firstboot_10_graphic_resolution() Line 213  push_firstboot_10_graphic_resolution()
213   import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}"   import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}"
214   fi   fi
215  }  }
216    
217    push_firstboot_10_graphic_depth()
218    {
219     local serial="$1"
220     # just set to 'auto'
221     local graphic_depth="auto"
222    
223     if [[ ${MCORE_GRAPHIC_HWDETECT_DEEP} = 1 ]]
224     then
225     # just set it to 'auto'
226     decho "graphic_depth='${graphic_depth}'"
227     import_resource cfg_graphic "${serial}" depth "${graphic_depth}"
228     else
229     # default to runtime autodetection
230     graphic_driver="auto"
231     import_resource cfg_graphic "${serial}" depth "${graphic_depth}"
232     fi
233    }

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