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 2636 by niro, Tue Sep 29 11:57:49 2015 UTC revision 2843 by niro, Fri Nov 16 13:47:13 2018 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    push_firstboot 10_graphic_driver
4    push_firstboot 10_graphic_resolution
5    
6    push_config 10_graphic_driver
7  push_config 10_graphic_resolution  push_config 10_graphic_resolution
8  push_config 10_graphic_depth  push_config 10_graphic_depth
9  push_config 10_graphic_module  #push_config 10_graphic_refresh
10    
11  help_graphic_resolution()  help_graphic_resolution()
12  {  {
# Line 86  set_graphic_depth() Line 90  set_graphic_depth()
90   import_resource cfg_graphic "${serial}" depth "${value}"   import_resource cfg_graphic "${serial}" depth "${value}"
91  }  }
92    
93  control_graphic_depth  control_graphic_depth()
94  {  {
95   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
96   push_config_10_graphic_depth "${serial}"   push_config_10_graphic_depth "${serial}"
# Line 125  push_config_10_graphic_refresh() Line 129  push_config_10_graphic_refresh()
129   value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'")   value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'")
130   control_client "${serial}" set graphic.resolution "${value}"   control_client "${serial}" set graphic.resolution "${value}"
131  }  }
132    
133    push_firstboot_10_graphic_driver()
134    {
135     local serial="$1"
136     local graphic_driver
137    
138     if [[ ${MCORE_GRAPHIC_HWDETECT_DEEP} = 1 ]]
139     then
140     nsslsay_queue_init
141     nsslsay_queue_add "nocolors"
142     nsslsay_queue_add "get hardware.detect driver graphic"
143     graphic_driver=$(control_client "${serial}" run-queue)
144     if [[ -n ${graphic_driver} ]]
145     then
146     decho "graphic_driver='${graphic_driver}'"
147     import_resource cfg_graphic "${serial}" module "${graphic_driver}"
148     else
149     decho "no graphic_driver found"
150     fi
151     else
152     # default to runtime autodetection
153     graphic_driver="auto"
154     import_resource cfg_graphic "${serial}" module "${graphic_driver}"
155     fi
156    }
157    
158    push_firstboot_10_graphic_resolution()
159    {
160     local serial="$1"
161     local monitor_info
162     local monitor_resolution
163    
164     if [[ ${MCORE_GRAPHIC_HWDETECT_DEEP} = 1 ]]
165     then
166     nsslsay_queue_init
167     nsslsay_queue_add "nocolors"
168     nsslsay_queue_add "get hardware.detect info monitor"
169     monitor_info=$(control_client "${serial}" run-queue)
170     monitor_resolution="${monitor_info##*;}"
171     if [[ -n ${monitor_resolution} ]]
172     then
173     decho "monitor_resolution='${monitor_resolution}'"
174     import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}"
175     else
176     decho "no monitor_resolution found"
177     fi
178     else
179     monitor_resolution="auto"
180     import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}"
181     fi
182    }

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