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 2305 by niro, Mon Jan 20 14:08:31 2014 UTC revision 2579 by niro, Thu Sep 17 10:46:46 2015 UTC
# Line 1  Line 1 
1  #!/bin/sh  # $Id$
2    
3    push_config 10_graphic_resolution
4    
5    help_graphic_resolution()
6    {
7     local serial="${CLASS_ARGV[0]}"
8     control_client "${serial}" help graphic.resolution
9    }
10    
11    help_graphic_refresh()
12    {
13     local serial="${CLASS_ARGV[0]}"
14     control_client "${serial}" help graphic.refresh
15    }
16    
17    help_graphic_depth()
18    {
19     local serial="${CLASS_ARGV[0]}"
20     control_client "${serial}" help graphic.depth
21    }
22    
23    help_graphic_driver()
24    {
25     local serial="${CLASS_ARGV[0]}"
26     control_client "${serial}" help graphic.driver
27    }
28    
29  # set_graphic_gfxcard $serial $value  # set_graphic_gfxcard $serial $value
30  set_graphic_gfxcard()  set_graphic_gfxcard()
# Line 22  set_graphic_resolution() Line 48  set_graphic_resolution()
48  control_graphic_resolution()  control_graphic_resolution()
49  {  {
50   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
51     push_config_10_graphic_resolution "${serial}"
52    }
53    
54    push_config_10_graphic_resolution()
55    {
56     local serial="$1"
57   local value   local value
58    
59   value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'")   value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'")
# Line 43  set_graphic_refresh() Line 75  set_graphic_refresh()
75   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
76   local value="${CLASS_ARGV[1]}"   local value="${CLASS_ARGV[1]}"
77    
78   import_resource cfg_graphic "${serial}" hz "${value}"   import_resource cfg_graphic "${serial}" refresh_rate "${value}"
79  }  }
80    
81  # control_graphic_resolution $serial  # control_graphic_resolution $serial

Legend:
Removed from v.2305  
changed lines
  Added in v.2579