Package: powersaved
Version: 0.12.7-1
Severity: normal

in /usr/lib/powersave/scripts, the scripts:

prepare_suspend_to_disk and restore_after_suspend_to_disk work with
the files:

    /etc/sysconfig/videobios, and
    /etc/init.d/boot.videobios

and have something to do with 855resolution (package?).

To the best of my knowledge, the equivalent package in Debian is
915resolution which uses the files:

    /etc/default/915resolution, and
    /etc/init.d/915resolution
    
Here is the relevent lines of code for a modified version of
prepare_suspend_to_disk; you'll note the similarities so perhaps there is a
better method:

(BEGIN)
#############################################################################
# if the system is configured for 855resolution, we _must_ switch away from
# X before suspend

if [ -e /etc/sysconfig/videobios ]; then
   . /etc/sysconfig/videobios
   if [ "$VIDEOBIOS_PATCH" = "yes" ]; then
     SWITCH_VT=yes
     echo "VIDEOBIOS_PATCH is enabled" >> $LSMOD_LOG
   fi
fi
                       
# debian update / 915resolution - Elizabeth Barham Fri May 19 04:46:05 CDT 2006

R915="/etc/default/915resolution"

if [ -e $R915 ]; then
  . $R915
  if [ $MODE ]; then
    SWITCH_VT=yes
    echo "VIDEOBIOS_PATCH (915resolution) is enabled" >> $LSMOD_LOG
  fi
fi
(END)

and from restore_after_suspend_to_disk:

(BEGIN)
#############################################################################
# if the system is configured for 855resolution, we first patch the BIOS,
# then force the switch back to the previous console
if [ -e /etc/sysconfig/videobios ]; then
  . /etc/sysconfig/videobios
  if [ "$VIDEOBIOS_PATCH" = "yes" ]; then
    SWITCH_VT=yes
    BIOS_INIT="/etc/init.d/boot.videobios"
    echo "patching video bios..." >> $LSMOD_LOG
    [ -x $BIOS_INIT ] && $BIOS_INIT start >> $LSMOD_LOG
  fi
fi
    
# debian update / 915resolution - Elizabeth Barham Fri May 19 04:46:05 CDT 2006

R915="/etc/default/915resolution"

if [ -e $R915 ]; then
  . $R915
  if [ $MODE ]; then
    SWITCH_VT=yes
    BIOS_INIT="/etc/init.d/915resolution"
    echo "patching video bios..." >> $LSMOD_LOG
    [ -x $BIOS_INIT ] && $BIOS_INIT start >> $LSMOD_LOG
  fi
fi
(END)

the top part of the code is the original and then I added the part
for dealing with 915resolution.
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)

Versions of packages powersaved depends on:
ii  adduser                     3.87         Add and remove users and groups
ii  dbus                        0.61-5       simple interprocess messaging syst
ii  hal                         0.5.7-1      Hardware Abstraction Layer
ii  libc6                       2.3.6-7      GNU C Library: Shared libraries
ii  libcpufreq0                 001-2        shared library to deal with the cp
ii  libdbus-1-2                 0.61-5       simple interprocess messaging syst
ii  libdbus-glib-1-2            0.61-5       simple interprocess messaging syst
ii  libgcc1                     1:4.1.0-1+b1 GCC support library
ii  libglib2.0-0                2.10.2-1     The GLib library of C routines
ii  libhal1                     0.5.7-1      Hardware Abstraction Layer - share
ii  libpowersave10              0.12.7-1     power management daemon - shared l
ii  libstdc++6                  4.1.0-1+b1   The GNU Standard C++ Library v3
ii  libsysfs2                   2.0.0-6      interface library to sysfs
ii  lsb-base                    3.1-5        Linux Standard Base 3.1 init scrip

Versions of packages powersaved recommends:
ii  acpid                         1.0.4-5    Utilities for using ACPI power man
ii  hdparm                        6.6-1      tune hard disk parameters for high
ii  kpowersave                    0.6.0-1    frontend to powersave for setting 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to