3 # 915resolution Change the resolution of an available vbios mode for the 915/865/915 Intel graphic chipset
5 # chkconfig: 2345 15 89
6 # description: set resolution for your laptop
7 # processname: 915resolution
9 # Source function library.
10 . /etc/rc.d/init.d/functions
13 if [ ! -f /etc/sysconfig/915resolution ]; then
17 # See how we were called.
19 start|restart|reload|force-reload)
20 grep -v "^#" /etc/sysconfig/915resolution | while read line
22 #TODO: make here some better better args checking
23 mode=`echo ${line} | awk '{ print $1;}'`
24 width=`echo ${line} | awk '{ print $2;}'`
25 height=`echo ${line} | awk '{ print $3;}'`
26 run_cmd "Replacing Mode ${mode} of your card with ${width}x${height}" "915resolution ${mode} ${width} ${height}"
36 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"