--- 915resolution-0.5.2.orig/debian/915resolution.8 +++ 915resolution-0.5.2/debian/915resolution.8 @@ -0,0 +1,31 @@ +.TH 915resolution 8 "November 10, 2005" 915resolution 8 +.SH NAME +915resolution \- resolution modify tool for Intel graphic chipset +.SH SYNOPSIS +.B 915resolution [-f file] [-c chipset] [-l] [mode X Y] [bits/pixel] +.SH DESCRIPTION +This manual page documents briefly the +.B 915resolution +program. +.PP + \fB915resolution\fP is a tool to modify the video BIOS of the 800 + and 900 series Intel graphics chipsets. This includes the 845G, + 855G, and 865G chipsets, as well as 915G, 915GM, and 945G chipsets. + This modification is necessary to allow the display of certain + graphics resolutions for an Xorg or XFree86 graphics server. +.SH OPTIONS +For more information, see /usr/share/doc/915resolution/README.Debian . +.TP +.B \-f +Use an alternate file (THIS IS USED FOR DEBUG PURPOSES). +.TP +.B \-c +Force chipset type (THIS IS USED FOR DEBUG PURPOSES). +.TP +.B \-l +Display the modes found in the video BIOS. +.SH AUTHOR +915resolution was written by Steve Tomljenovic stomljen@yahoo.com +.PP +This manual page was written by Steffen Joeris , +for the Debian project (but may be used by others). --- 915resolution-0.5.2.orig/debian/README.Debian +++ 915resolution-0.5.2/debian/README.Debian @@ -0,0 +1,71 @@ +915resolution for Debian +------------------------ + +915resolution changes the resolution of an available vbios mode. + +1. First, you need to check available modes by: + +# 915resolution -l + +2. You will get a mode list such as: + +Intel 800/900 Series VBIOS Hack : version 0.4.7 + +Chipset: 915GM +BIOS: TYPE 1 +Mode Table Offset: $C0000 + $269 +Mode Table Entries: 36 + +Mode 30 : 640x480, 8 bits/pixel +Mode 32 : 800x600, 8 bits/pixel +Mode 34 : 1024x768, 8 bits/pixel +Mode 38 : 1280x1024, 8 bits/pixel +Mode 3a : 1600x1200, 8 bits/pixel +Mode 3c : 1280x768, 8 bits/pixel +Mode 41 : 640x480, 16 bits/pixel +Mode 43 : 800x600, 16 bits/pixel +Mode 45 : 1024x768, 16 bits/pixel +Mode 49 : 1280x1024, 16 bits/pixel +Mode 4b : 1600x1200, 16 bits/pixel +Mode 4d : 1280x768, 16 bits/pixel +Mode 50 : 640x480, 32 bits/pixel +Mode 52 : 800x600, 32 bits/pixel +Mode 54 : 1024x768, 32 bits/pixel +Mode 58 : 1280x1024, 32 bits/pixel +Mode 5a : 1600x1200, 32 bits/pixel +Mode 5c : 1280x768, 32 bits/pixel + +3. Write the mode number and resolution which you want to use to + /etc/default/915resolution. For example: + +MODE=3c +XRESO=1400 +YRESO=1050 + +# optional setting +BIT=32 + +4. Reboot or run "/etc/init.d/915resolution start" by hand. + +5. To use specified resolution, you need to modify your X configuration + file (If you use Xorg, it's /etc/X11/xorg.conf) + +SubSection "Display" + Depth 24 + Modes "1400x1050" "1024x768" "800x600" "640x480" +EndSubSection + + + + +915resolution with suspend/resume function: + +If you are planning to use the suspend/resume mechanism and you are using a +video mode that requires to run 915resolution, it's quite possible that your +video card requires you to run 915resolution also on resume. If you use the +hibernate package there is an option to call 915resolution on resume. +If you want to use it just activate it in the file "etc/hibernate/common.conf" . +There is an uncommented line called "# Runi915resolution yes" . + + + -- Steffen Joeris , Thu, 15 Jun 2006 17:18:41 +0200 --- 915resolution-0.5.2.orig/debian/docs +++ 915resolution-0.5.2/debian/docs @@ -0,0 +1 @@ +chipset_info.txt --- 915resolution-0.5.2.orig/debian/copyright +++ 915resolution-0.5.2/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Steffen Joeris on +Thu, 10 Nov 2005 11:33:30 +0100. + +It was downloaded from http://www.geocities.com/stomljen/download.html + +Copyright Holder: Steve Tomljenovic + +License: + +This source code is into the public domain. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR THE CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- 915resolution-0.5.2.orig/debian/patches/00list +++ 915resolution-0.5.2/debian/patches/00list @@ -0,0 +1 @@ +01-add-chipsets --- 915resolution-0.5.2.orig/debian/patches/01-add-chipsets.dpatch +++ 915resolution-0.5.2/debian/patches/01-add-chipsets.dpatch @@ -0,0 +1,82 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-add-chipsets.dpatch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add support for some chipsets to 915resolution + +@DPATCH@ +diff -urN 915resolution-0.5.2.old/915resolution.c 915resolution-0.5.2/915resolution.c +--- 915resolution-0.5.2.old/915resolution.c 2006-09-28 13:08:29.000000000 +0200 ++++ 915resolution-0.5.2/915resolution.c 2006-09-28 13:16:49.000000000 +0200 +@@ -55,10 +55,14 @@ + typedef unsigned int cardinal; + + typedef enum { +- CT_UNKWN, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM ++ CT_UNKWN, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, ++ CT_946GZ, CT_965Q, CT_965G + } chipset_type; + +-char * chipset_type_names[] = {"UNKNOWN", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM"}; ++char * chipset_type_names[] = { ++ "UNKNOWN", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", ++ "946GZ", "965Q", "965G" ++}; + + typedef enum { + BT_UNKWN, BT_1, BT_2, BT_3 +@@ -205,6 +209,18 @@ + type = CT_945GM; + break; + ++ case 0x29708086: ++ type = CT_946GZ; ++ break; ++ ++ case 0x29908086: ++ type = CT_965Q; ++ break; ++ ++ case 0x29a08086: ++ type = CT_965G; ++ break; ++ + default: + type = CT_UNKWN; + break; +@@ -488,6 +504,9 @@ + case CT_915GM: + case CT_945G: + case CT_945GM: ++ case CT_946GZ: ++ case CT_965Q: ++ case CT_965G: + outl(0x80000090, 0xcf8); + map->b1 = inb(0xcfd); + map->b2 = inb(0xcfe); +@@ -535,6 +554,9 @@ + case CT_915GM: + case CT_945G: + case CT_945GM: ++ case CT_946GZ: ++ case CT_965Q: ++ case CT_965G: + outl(0x80000090, 0xcf8); + outb(map->b1, 0xcfd); + outb(map->b2, 0xcfe); +@@ -773,6 +795,15 @@ + else if (!strcmp(argv[index], "945GM")) { + *forced_chipset = CT_945GM; + } ++ else if (!strcmp(argv[index], "946GZ")) { ++ *forced_chipset = CT_946GZ; ++ } ++ else if (!strcmp(argv[index], "965Q")) { ++ *forced_chipset = CT_965Q; ++ } ++ else if (!strcmp(argv[index], "965G")) { ++ *forced_chipset = CT_965G; ++ } + else { + *forced_chipset = CT_UNKWN; + } --- 915resolution-0.5.2.orig/debian/manpages +++ 915resolution-0.5.2/debian/manpages @@ -0,0 +1 @@ +debian/915resolution.8 --- 915resolution-0.5.2.orig/debian/compat +++ 915resolution-0.5.2/debian/compat @@ -0,0 +1 @@ +5 --- 915resolution-0.5.2.orig/debian/control +++ 915resolution-0.5.2/debian/control @@ -0,0 +1,29 @@ +Source: 915resolution +Section: x11 +Priority: extra +Maintainer: Steffen Joeris +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.7.2 + +Package: 915resolution +Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, vbetool (>= 0.6.1) +Replaces: 855resolution +Conflicts: 855resolution +Provides: 855resolution +Description: resolution modification tool for Intel graphic chipset + 915resolution is a tool to modify the video BIOS of the 800 + and 900 series Intel graphics chipsets. This includes the 845G, + 855G, and 865G chipsets, as well as 915G, 915GM, and 945G chipsets. + This modification is necessary to allow the display of certain + graphics resolutions for an Xorg or XFree86 graphics server. + . + 915resolution's modifications of the BIOS are transient. + There is no risk of permanent modification of the BIOS. + This also means that 915resolution must be run every time the + computer boots in order for its changes to take effect. + If you want to automatically set the resolution on each boot + and before X is launched, see /usr/share/doc/915resolution/README.Debian + for information about configuring the provided initscript. + . + Homepage: http://www.geocities.com/stomljen/ --- 915resolution-0.5.2.orig/debian/rules +++ 915resolution-0.5.2/debian/rules @@ -0,0 +1,52 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +build: patch build-stamp + +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + install -D -m 755 915resolution $(CURDIR)/debian/915resolution/usr/sbin/915resolution + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs changes.log + dh_installdocs + dh_installinit -- defaults 12 + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- 915resolution-0.5.2.orig/debian/init +++ 915resolution-0.5.2/debian/init @@ -0,0 +1,104 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: 915resolution +# Required-Start: $syslog +# Required-Stop: $syslog +# Should-Start: $local_fs +# Should-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Set the resolution for special chipset +# Description: The right resolution mode will be set and given +# to the X server +### END INIT INFO + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +PROG=/usr/sbin/915resolution +NAME=915resolution +DESC=915resolution +VBETOOL=/usr/sbin/vbetool + +test -x $PROG || exit 0 + +# Include 915resolution defaults if available +if [ -f /etc/default/915resolution ] ; then + . /etc/default/915resolution +fi + +wrong_chipset() +{ + echo "Wrong chipset detected. 915resolution only works with Intel 800/900 series graphic chipsets." + exit 0 +} + +$PROG -l &>/dev/null || wrong_chipset + +if [ "$MODE" = auto -a \! -x "$VBETOOL" ] || [ "$MODE" != auto -a \( -z "$MODE" -o -z "$XRESO" -o -z "$YRESO" \) ] ; then + echo "*** Your 915resolution hasn't been configured! ***" + echo "Please read /usr/share/doc/915resolution/README.Debian and define" + echo "MODE, XRESO, and YRESO." + exit 0 +fi + +auto_select_modes() +{ + if [ ! -x "$VBETOOL" ] || ! panelsize=`$VBETOOL vbefp panelsize` ; then + echo "*** Your 915resolution was not automatically configured! ***" + echo "Please read /usr/share/doc/915resolution/README.Debian then define" + echo "MODE, XRESO, and YRESO manually in /etc/default/915resolution ." + echo "For now a default will be set, which might be inappropiate." + XRESO=1024 + YRESO=768 + fi + + # If the native panel-size is already in the BIOS mode list, we + # don't have to do anything, yippee! + bios_list=`$PROG -l` + if echo "$bios_list" | grep -q "^Mode .* $panelsize" ; then + #echo 'Correct panel-size is already listed, skipping' + return + fi + + # For want of a better approach to selecting modelines for stealing;... + # this expression grabs us the highest *numbered* mode in each + # bit-depth that the BIOS already lists. + # + # An argument for using the highest mode-number, rather than the + # highest resolution is that if we've already reprogrammed the + # mode to be a lower resolution it will no longer be the highest. + # If this has changed over a suspend cycle, that consequences + # might not be so good. -Paul Sladen + target_modes=`echo "$bios_list" | awk '/^Mode [^T]/{sub(",","",$4); print $5,$4,$2}' | tac | sort -n -u | cut -d' ' -f3` + + for m in $target_modes ; do + # The 'tr' converts '1024x768' -> '1024' '768' + # and the bitdepth is missed off because we have one of each depth + $PROG $m $(echo $panelsize | tr x ' ') + done +} + +set -e + +case "$1" in + start|restart|force-reload) + echo -n "Starting $DESC: " + if [ "$MODE" = "auto" ] ; then + auto_select_modes + else + $PROG $MODE $XRESO $YRESO $BIT + fi + echo "$NAME." + ;; + stop) + #echo -n "Stopping $DESC: " + #echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N start" >&2 + echo "Usage: $N start" >&2 + exit 1 + ;; +esac + +exit 0 --- 915resolution-0.5.2.orig/debian/default +++ 915resolution-0.5.2/debian/default @@ -0,0 +1,21 @@ +# +# 915resolution default +# +# find free modes by /usr/sbin/915resolution -l +# and set it to MODE or set to 'MODE=auto' +# +# With 'auto' detection, the panel-size will be fetched from the VBE +# BIOS if possible and the highest-numbered mode in each bit-depth +# will be overwritten with the detected panel-size. +MODE=auto +# +# and set resolutions for the mode. +# e.g. use XRESO=1024 and YRESO=768 +XRESO= +YRESO= +# +# We can also set the pixel mode. +# e.g. use BIT=32 +# Please note that this is optional, +# you can also leave this value blank. +BIT= --- 915resolution-0.5.2.orig/debian/changelog +++ 915resolution-0.5.2/debian/changelog @@ -0,0 +1,109 @@ +915resolution (0.5.2-9) unstable; urgency=medium + + * Fix bad typo in init script (Closes: #401820) + Thanks to Dylan Thurston and Hugues Clouatre for pointing me to + that + + -- Steffen Joeris Wed, 6 Dec 2006 08:31:58 +0100 + +915resolution (0.5.2-8) unstable; urgency=medium + + * Make sure that the init script exits and does not display + the error messages from the 915resolution binary (Closes: #401728) + Thanks to Frederic Bothamy + * Include an understandable error message if 915resolution is + inappropriate for the chipset + * Fix check for installed binary in init script + + -- Steffen Joeris Tue, 5 Dec 2006 19:52:11 +0100 + +915resolution (0.5.2-7) unstable; urgency=medium + + * Include patch for 946GZ, 965G and 965Q chipsets (Closes: #399221) + Thanks to Jeremy Bobbio + * Add dpatch to build-depends and adjust debian/rules file for + patching + + -- Steffen Joeris Wed, 22 Nov 2006 18:29:53 +0100 + +915resolution (0.5.2-6) unstable; urgency=low + + * Make sure that the init script exits gracefully in case the chipset + is not supported (Closes: #398077) Thanks to David Fox + * Add some default values if the auto selection mode does not work + + -- Steffen Joeris Tue, 14 Nov 2006 00:10:56 +1100 + +915resolution (0.5.2-5) unstable; urgency=low + + * Introduce auto detection, fetched from Ubuntu + * Set the auto option in the config file + * Merge code for auto detection into the init script + * Add dependency against vbetool for the auto configuration + * Minor change in package description + * Include lsb-header into the init script + * Drop unneeded build-dependency against cdbs + * Bump debhelper level to 5 + + -- Steffen Joeris Sat, 14 Oct 2006 21:08:02 +1000 + +915resolution (0.5.2-4) unstable; urgency=low + + * Fix spelling errors in description (Closes: #363570) + * Add some suggestions into README.Debian to explain + how to use hibernate package for suspend/resume with + 915resolution (Closes: #367937) + Thanks to Maximiliano Curia + * Bump standards version + * Add some hints into the default configuration file to give + some more hints + + * Upload sponsored by Petter Reinholdtsen + + -- Steffen Joeris Thu, 15 Jun 2006 17:19:40 +0200 + +915resolution (0.5.2-3) unstable; urgency=low + + * Add kfreebsd-amd64 into architecture list (Closes: #361611) + + -- Steffen Joeris Sun, 9 Apr 2006 14:42:40 +0200 + +915resolution (0.5.2-2) unstable; urgency=low + + * Make sure that 915resolution runs + earlier and so also works on Ubuntu systems + + -- Steffen Joeris Sun, 19 Feb 2006 16:13:32 +0100 + +915resolution (0.5.2-1) unstable; urgency=low + + * new upstream release + * provide author's new changelog + * remove binary and object file from orig.tar.gz + it was an accident by author + * sponsored by Morten Werner Olsen + + -- Steffen Joeris Tue, 14 Feb 2006 13:12:43 +0100 + +915resolution (0.5-1) unstable; urgency=low + + * new upstream release + * provide the color mode option + so it can be specified by configuration (Closes: #342346) + * updated the README.Debian + * now the package also provides 855resolution + * switch from cdbs to normal debhelper + + -- Steffen Joeris Wed, 7 Dec 2005 11:42:31 +0100 + +915resolution (0.4.8-1) unstable; urgency=low + + * new upstream release + + -- Steffen Joeris Mon, 21 Nov 2005 11:18:05 +0100 + +915resolution (0.4.7-1) unstable; urgency=low + + * Initial release (Closes: #338530) + + -- Steffen Joeris Thu, 10 Nov 2005 11:33:30 +0100