Author: radek                        Date: Tue Jun 27 00:03:54 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- copied from 855resolution.*

---- Files affected:
SOURCES:
   915resolution.init (NONE -> 1.1)  (NEW), 915resolution.sysconfig (NONE -> 
1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/915resolution.init
diff -u /dev/null SOURCES/915resolution.init:1.1
--- /dev/null   Tue Jun 27 02:03:54 2006
+++ SOURCES/915resolution.init  Tue Jun 27 02:03:49 2006
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# 915resolution        Change the resolution of an available vbios mode for 
the 915/865/915 Intel graphic chipset
+#
+# chkconfig:   2345 15 89
+# description: set resolution for your laptop
+# processname: 915resolution
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Get service config
+if [ ! -f /etc/sysconfig/915resolution ]; then
+       exit 0
+fi
+
+# See how we were called.
+case "$1" in
+  start|restart|reload|force-reload)
+       grep -v "^#" /etc/sysconfig/915resolution | while read line
+       do
+               #TODO: make here some better better args checking
+               mode=`echo ${line} | awk '{ print $1;}'`
+               width=`echo ${line} | awk '{ print $2;}'`
+               height=`echo ${line} | awk '{ print $3;}'`
+               run_cmd "Replacing Mode ${mode} of your card with 
${width}x${height}" "915resolution ${mode} ${width} ${height}"
+       done
+       ;;
+  stop)
+       # nothing to do
+       ;;
+  status)
+       915resolution -l
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 3
+esac

================================================================
Index: SOURCES/915resolution.sysconfig
diff -u /dev/null SOURCES/915resolution.sysconfig:1.1
--- /dev/null   Tue Jun 27 02:03:54 2006
+++ SOURCES/915resolution.sysconfig     Tue Jun 27 02:03:49 2006
@@ -0,0 +1,9 @@
+# Config file for 915resolution application
+# You can "patch" your card to have possible better resolutions on your laptop
+# List of possible modes to replace: 915resolution -l
+#
+# Syntax: mode width heght
+# Example:
+#7c 1280 800
+#7d 1280 800
+#7e 1280 800
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to