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 2510 by niro, Mon Sep 14 08:17:58 2015 UTC revision 2640 by niro, Fri Oct 2 09:24:51 2015 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    push_config 10_graphic_resolution
4    push_config 10_graphic_depth
5    push_config 10_graphic_module
6    
7  help_graphic_resolution()  help_graphic_resolution()
8  {  {
9   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
# Line 24  help_graphic_driver() Line 28  help_graphic_driver()
28   control_client "${serial}" help graphic.driver   control_client "${serial}" help graphic.driver
29  }  }
30    
31  # set_graphic_gfxcard $serial $value  # set_graphic_driver $serial $value
32  set_graphic_gfxcard()  set_graphic_driver()
33  {  {
34   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
35   local value="${CLASS_ARGV[1]}"   local value="${CLASS_ARGV[1]}"
# Line 33  set_graphic_gfxcard() Line 37  set_graphic_gfxcard()
37   import_resource cfg_graphic "${serial}" module "${value}"   import_resource cfg_graphic "${serial}" module "${value}"
38  }  }
39    
40    control_graphic_driver()
41    {
42     local serial="${CLASS_ARGV[0]}"
43     push_config_10_graphic_driver "${serial}"
44    }
45    
46    push_config_10_graphic_driver()
47    {
48     local serial="$1"
49     local value
50    
51     value=$(mysqldo "select module from cfg_graphic where serial='${serial}'")
52     control_client "${serial}" set graphic.driver "${value}"
53    }
54    
55  # set_graphic_resolution $serial $value  # set_graphic_resolution $serial $value
56  set_graphic_resolution()  set_graphic_resolution()
57  {  {
# Line 46  set_graphic_resolution() Line 65  set_graphic_resolution()
65  control_graphic_resolution()  control_graphic_resolution()
66  {  {
67   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
68     push_config_10_graphic_resolution "${serial}"
69    }
70    
71    push_config_10_graphic_resolution()
72    {
73     local serial="$1"
74   local value   local value
75    
76   value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'")   value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'")
# Line 61  set_graphic_depth() Line 86  set_graphic_depth()
86   import_resource cfg_graphic "${serial}" depth "${value}"   import_resource cfg_graphic "${serial}" depth "${value}"
87  }  }
88    
89    control_graphic_depth()
90    {
91     local serial="${CLASS_ARGV[0]}"
92     push_config_10_graphic_depth "${serial}"
93    }
94    
95    push_config_10_graphic_depth()
96    {
97     local serial="$1"
98     local value
99    
100     value=$(mysqldo "select depth from cfg_graphic where serial='${serial}'")
101     control_client "${serial}" set graphic.depth "${value}"
102    }
103    
104  # set_graphic_refesh $serial $value  # set_graphic_refesh $serial $value
105  set_graphic_refresh()  set_graphic_refresh()
106  {  {
107   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
108   local value="${CLASS_ARGV[1]}"   local value="${CLASS_ARGV[1]}"
109    
110   import_resource cfg_graphic "${serial}" hz "${value}"   import_resource cfg_graphic "${serial}" refresh_rate "${value}"
111  }  }
112    
113  # control_graphic_resolution $serial  # control_graphic_resolution $serial
114  control_graphic_refresh()  control_graphic_refresh()
115  {  {
116   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
117     push_config_10_graphic_refresh "${serial}"
118    }
119    
120    push_config_10_graphic_refresh()
121    {
122     local serial="$1"
123   local value   local value
124    
125   value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'")   value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'")

Legend:
Removed from v.2510  
changed lines
  Added in v.2640