Annotation of /mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.control.class.in
Parent Directory | Revision Log
Revision 2664 -
(hide annotations)
(download)
Thu Nov 19 15:03:18 2015 UTC (8 years, 6 months ago) by niro
File size: 2667 byte(s)
Thu Nov 19 15:03:18 2015 UTC (8 years, 6 months ago) by niro
File size: 2667 byte(s)
-ignore driver settings while autodetection was requested
1 | niro | 2510 | # $Id$ |
2 | niro | 2051 | |
3 | niro | 2664 | push_config 10_graphic_driver |
4 | niro | 2579 | push_config 10_graphic_resolution |
5 | niro | 2636 | push_config 10_graphic_depth |
6 | push_config 10_graphic_module | ||
7 | niro | 2561 | |
8 | niro | 2510 | help_graphic_resolution() |
9 | { | ||
10 | local serial="${CLASS_ARGV[0]}" | ||
11 | control_client "${serial}" help graphic.resolution | ||
12 | } | ||
13 | |||
14 | help_graphic_refresh() | ||
15 | { | ||
16 | local serial="${CLASS_ARGV[0]}" | ||
17 | control_client "${serial}" help graphic.refresh | ||
18 | } | ||
19 | |||
20 | help_graphic_depth() | ||
21 | { | ||
22 | local serial="${CLASS_ARGV[0]}" | ||
23 | control_client "${serial}" help graphic.depth | ||
24 | } | ||
25 | |||
26 | help_graphic_driver() | ||
27 | { | ||
28 | local serial="${CLASS_ARGV[0]}" | ||
29 | control_client "${serial}" help graphic.driver | ||
30 | } | ||
31 | |||
32 | niro | 2636 | # set_graphic_driver $serial $value |
33 | set_graphic_driver() | ||
34 | niro | 2051 | { |
35 | niro | 2305 | local serial="${CLASS_ARGV[0]}" |
36 | local value="${CLASS_ARGV[1]}" | ||
37 | niro | 2051 | |
38 | import_resource cfg_graphic "${serial}" module "${value}" | ||
39 | } | ||
40 | |||
41 | niro | 2636 | control_graphic_driver() |
42 | { | ||
43 | local serial="${CLASS_ARGV[0]}" | ||
44 | push_config_10_graphic_driver "${serial}" | ||
45 | } | ||
46 | |||
47 | push_config_10_graphic_driver() | ||
48 | { | ||
49 | local serial="$1" | ||
50 | local value | ||
51 | |||
52 | value=$(mysqldo "select module from cfg_graphic where serial='${serial}'") | ||
53 | control_client "${serial}" set graphic.driver "${value}" | ||
54 | } | ||
55 | |||
56 | niro | 2051 | # set_graphic_resolution $serial $value |
57 | set_graphic_resolution() | ||
58 | { | ||
59 | niro | 2305 | local serial="${CLASS_ARGV[0]}" |
60 | local value="${CLASS_ARGV[1]}" | ||
61 | niro | 2051 | |
62 | import_resource cfg_graphic "${serial}" resolution "${value}" | ||
63 | } | ||
64 | |||
65 | # control_graphic_resolution $serial | ||
66 | control_graphic_resolution() | ||
67 | { | ||
68 | niro | 2305 | local serial="${CLASS_ARGV[0]}" |
69 | niro | 2579 | push_config_10_graphic_resolution "${serial}" |
70 | niro | 2561 | } |
71 | |||
72 | niro | 2579 | push_config_10_graphic_resolution() |
73 | niro | 2561 | { |
74 | local serial="$1" | ||
75 | niro | 2051 | local value |
76 | |||
77 | value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'") | ||
78 | control_client "${serial}" set graphic.resolution "${value}" | ||
79 | } | ||
80 | |||
81 | # set_graphic_depth $serial $value | ||
82 | set_graphic_depth() | ||
83 | { | ||
84 | niro | 2305 | local serial="${CLASS_ARGV[0]}" |
85 | local value="${CLASS_ARGV[1]}" | ||
86 | niro | 2051 | |
87 | import_resource cfg_graphic "${serial}" depth "${value}" | ||
88 | } | ||
89 | |||
90 | niro | 2640 | control_graphic_depth() |
91 | niro | 2636 | { |
92 | local serial="${CLASS_ARGV[0]}" | ||
93 | push_config_10_graphic_depth "${serial}" | ||
94 | } | ||
95 | |||
96 | push_config_10_graphic_depth() | ||
97 | { | ||
98 | local serial="$1" | ||
99 | local value | ||
100 | |||
101 | value=$(mysqldo "select depth from cfg_graphic where serial='${serial}'") | ||
102 | control_client "${serial}" set graphic.depth "${value}" | ||
103 | } | ||
104 | |||
105 | niro | 2051 | # set_graphic_refesh $serial $value |
106 | set_graphic_refresh() | ||
107 | { | ||
108 | niro | 2305 | local serial="${CLASS_ARGV[0]}" |
109 | local value="${CLASS_ARGV[1]}" | ||
110 | niro | 2051 | |
111 | niro | 2560 | import_resource cfg_graphic "${serial}" refresh_rate "${value}" |
112 | niro | 2051 | } |
113 | |||
114 | # control_graphic_resolution $serial | ||
115 | control_graphic_refresh() | ||
116 | { | ||
117 | niro | 2305 | local serial="${CLASS_ARGV[0]}" |
118 | niro | 2636 | push_config_10_graphic_refresh "${serial}" |
119 | } | ||
120 | |||
121 | push_config_10_graphic_refresh() | ||
122 | { | ||
123 | local serial="$1" | ||
124 | niro | 2051 | local value |
125 | |||
126 | value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'") | ||
127 | control_client "${serial}" set graphic.resolution "${value}" | ||
128 | } |