Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/client/include/graphic.client.class

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1642 by niro, Fri Feb 4 19:58:18 2011 UTC revision 1643 by niro, Thu Mar 10 18:12:54 2011 UTC
# Line 112  set_graphic_resolution() Line 112  set_graphic_resolution()
112   addconfig ' EndSubSection'   addconfig ' EndSubSection'
113   done   done
114    
115   if pidof X   x11runas "xrandr --size ${resolution}"
  then  
  x11runas "xrandr --size ${resolution}"  
  fi  
116    
117   helper_graphic_rebuild_xorg_conf_d   helper_graphic_rebuild_xorg_conf_d
118  }  }
# Line 154  set_graphic_refresh() Line 151  set_graphic_refresh()
151    
152   #echo "${value}" > ${SETTINGSPATH}/xorg/refresh   #echo "${value}" > ${SETTINGSPATH}/xorg/refresh
153    
154   if pidof X   x11runas "xrandr --refresh ${value}"
  then  
  x11runas "xrandr --refresh ${value}"  
  fi  
155    
156   helper_graphic_rebuild_xorg_conf_d   helper_graphic_rebuild_xorg_conf_d
157  }  }
# Line 196  get_graphic_driver() Line 190  get_graphic_driver()
190   if [[ -f ${config} ]]   if [[ -f ${config} ]]
191   then   then
192   driver=$(grep Driver "${config}" | sed 's:.*Driver.*\"\(.*\)\":\1:')   driver=$(grep Driver "${config}" | sed 's:.*Driver.*\"\(.*\)\":\1:')
193   mecho "${driver}"   rvecho "${driver}"
194   else   else
195   mecho "none"   rvecho "none"
196   fi   fi
197   ;;   ;;
198   system)   system)
# Line 206  get_graphic_driver() Line 200  get_graphic_driver()
200   do   do
201   driver="${driver} $(basename ${i} _drv.so)"   driver="${driver} $(basename ${i} _drv.so)"
202   done   done
203   mecho "${driver}"   rvecho "${driver}"
204   ;;   ;;
205   *)   *)
206   help_graphic_driver   help_graphic_driver

Legend:
Removed from v.1642  
changed lines
  Added in v.1643