--- alx-src/branches/alx-web-060/show.php 2011/08/03 13:57:12 2711 +++ alx-src/branches/alx-web-060/show.php 2011/11/02 13:47:36 3275 @@ -16,6 +16,9 @@ $alxos = $alxinfo[os]; $alxutils = $alxinfo[utils]; +// get gfxdriver +$gfxinfo = sqlfirst('SELECT * FROM cfg_graphic WHERE serial='.$id); + if($kill==1) { foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id); @@ -35,14 +38,24 @@ if($alxos >= '0.6.0') { $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); + if($gfxinfo[module] = 'intel') + { + $drop['cfg_graphic_hdmi'] = array('disable', 'enable'); + } + else + { + $drop['cfg_graphic_hdmi'] = 'ignore'; + } } else if($alxos >= '0.5.3') { $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng'); + $drop['cfg_graphic_hdmi'] = 'ignore'; } else { $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i810', 'i710', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'via'); + $drop['cfg_graphic_hdmi'] = 'ignore'; } $drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050', '1280x720', '1920x1080'); $drop['depth'] = array('24', '16', '8');