]> git.pld-linux.org Git - packages/915resolution.git/commitdiff
- copied from 855resolution.*
authorradek <radek@pld-linux.org>
Tue, 27 Jun 2006 00:03:49 +0000 (00:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    915resolution.init -> 1.1
    915resolution.sysconfig -> 1.1

915resolution.init [new file with mode: 0644]
915resolution.sysconfig [new file with mode: 0644]

diff --git a/915resolution.init b/915resolution.init
new file mode 100644 (file)
index 0000000..7952948
--- /dev/null
@@ -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
diff --git a/915resolution.sysconfig b/915resolution.sysconfig
new file mode 100644 (file)
index 0000000..a15d059
--- /dev/null
@@ -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
This page took 0.311975 seconds and 4 git commands to generate.