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 1258 by niro, Fri Feb 4 19:58:18 2011 UTC revision 1920 by niro, Wed Nov 9 13:35:31 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 137  set_graphic_depth() Line 134  set_graphic_depth()
134   *) help_graphic_depth && return 1 ;;   *) help_graphic_depth && return 1 ;;
135   esac   esac
136    
 # if pidof X  
 # then  
 # x11runas "xrandr --size ${value}"  
 # fi  
   
137   helper_graphic_rebuild_xorg_conf_d   helper_graphic_rebuild_xorg_conf_d
138   mecho "X11 restart required!"   mecho "X11 restart required!"
139  }  }
# Line 154  set_graphic_refresh() Line 146  set_graphic_refresh()
146    
147   #echo "${value}" > ${SETTINGSPATH}/xorg/refresh   #echo "${value}" > ${SETTINGSPATH}/xorg/refresh
148    
149   if pidof X   x11runas "xrandr --refresh ${value}"
  then  
  x11runas "xrandr --refresh ${value}"  
  fi  
150    
151   helper_graphic_rebuild_xorg_conf_d   helper_graphic_rebuild_xorg_conf_d
152  }  }
# Line 196  get_graphic_driver() Line 185  get_graphic_driver()
185   if [[ -f ${config} ]]   if [[ -f ${config} ]]
186   then   then
187   driver=$(grep Driver "${config}" | sed 's:.*Driver.*\"\(.*\)\":\1:')   driver=$(grep Driver "${config}" | sed 's:.*Driver.*\"\(.*\)\":\1:')
188   mecho "${driver}"   rvecho "${driver}"
189   else   else
190   mecho "none"   rvecho "none"
191   fi   fi
192   ;;   ;;
193   system)   system)
# Line 206  get_graphic_driver() Line 195  get_graphic_driver()
195   do   do
196   driver="${driver} $(basename ${i} _drv.so)"   driver="${driver} $(basename ${i} _drv.so)"
197   done   done
198   mecho "${driver}"   rvecho "${driver}"
199   ;;   ;;
200   *)   *)
201   help_graphic_driver   help_graphic_driver

Legend:
Removed from v.1258  
changed lines
  Added in v.1920