From 4e940b0a47a3019c915d08bdd520eade98cfa442 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Tue, 7 Aug 2007 03:02:32 +0000 Subject: [PATCH] * improved 915resolution adding a default configuration file. git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21990 10447126-35f2-4685-b0cf-6dd780d3921f --- video/915resolution/915resolution.conf | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 video/915resolution/915resolution.conf diff --git a/video/915resolution/915resolution.conf b/video/915resolution/915resolution.conf new file mode 100644 index 000000000..0aad2544c --- /dev/null +++ b/video/915resolution/915resolution.conf @@ -0,0 +1,41 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../915resolution/915resolution.conf +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +915resolution_postmake(){ +cat <<-EOT >> $root/etc/default/915resolution +# +# 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= +EOT +} + +hook_add postmake 5 '915resolution_postmake'