Package: hibernate
Version: 1.96~pre-svn.r1136-1
Severity: normal
Tags: patch

The attached patch fixes the backlight script to work better if the
backlight was initially below 10%.

-- Package-specific info:

--- configuration
==> /etc/hibernate/common.conf <==
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution debian
XDisplay :0
SaveClock restore-only
DownInterfaces wlan0
UpInterfaces wlan0
PauseAudio yes
XStatus x
XmessageDisable yes
XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' 
--colour=Green --shadow 1 --pos top --align center --offset 0
BackLight yes
==> /etc/hibernate/disk.conf <==
TryMethod ususpend-disk.conf
TryMethod sysfs-disk.conf
==> /etc/hibernate/hibernate.conf <==
TryMethod ram.conf
==> /etc/hibernate/ram.conf <==
TryMethod sysfs-ram.conf
==> /etc/hibernate/suspend2.conf <==
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
FullSpeedCPU yes
Include common.conf
==> /etc/hibernate/sysfs-disk.conf <==
UseSysfsPowerState disk
Include common.conf
==> /etc/hibernate/sysfs-ram.conf <==
UseSysfsPowerState mem
Include common.conf
==> /etc/hibernate/ususpend-both.conf <==
USuspendMethod both
Include common.conf
==> /etc/hibernate/ususpend-disk.conf <==
USuspendMethod disk
Include common.conf
==> /etc/hibernate/ususpend-ram.conf <==
USuspendMethod ram
Include common.conf

--- /sys/power
==> /sys/power/disk <==
platform
==> /sys/power/image_size <==
524288000
==> /sys/power/resume <==
0:0
==> /sys/power/state <==
mem disk 

--- s2ram -n
Machine unknown
This machine can be identified by:
    sys_vendor   = ""
    sys_product  = ""
    sys_version  = ""
    bios_version = ""
--- log
hibernate.log file not readable.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hibernate depends on:
ii  console-tools              1:0.2.3dbs-65 Linux console and font utilities

Versions of packages hibernate recommends:
ii  dash                   0.5.4-1           The Debian Almquist Shell
ii  hdparm                 7.6-1             tune hard disk parameters for high
ii  uswsusp                0.6~cvs20070618-1 tools to use userspace software su
ii  vbetool                0.7-1.1           run real-mode video BIOS code to a

-- no debconf information

-- 
see shy jo
--- backlight.orig	2007-07-26 21:07:12.000000000 -0400
+++ backlight	2007-07-26 21:07:34.000000000 -0400
@@ -7,14 +7,14 @@
 DimBackLight() {
     FindXServer
     Backlight_current=$(xbacklight)
-    if [ "${Backlight_current%.*}" -gt 0 ]; then
+    if [ "${Backlight_current%.*}" -gt 10 ]; then
 	xbacklight -set 10 || true
     fi
     return 0
 }
 
 RestoreBackLight() {
-    if [ "${Backlight_current%.*}" -gt 0 ]; then
+    if [ "${Backlight_current%.*}" -gt 10 ]; then
 	xbacklight -set "$Backlight_current" || true
     fi
     return 0

Attachment: signature.asc
Description: Digital signature

Reply via email to