Package: upower
Version: 0.9.4-1
Severity: normal

Hi,

i use an encrypted swap partition. If i try to Hibernate for example with a
dbus command, i get the error message:

$  dbus-send --print-reply --system --dest=org.freedesktop.UPower \
        /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
Error org.freedesktop.UPower.GeneralError: Swap space is encrypted,
use AllowHibernateEncryptedSwap to override

But by default the entry AllowHibernateEncryptedSwap is set to true in
/etc/UPower.conf
$ grep "AllowHibernateEncryptedSwap" /etc/UPower.conf
AllowHibernateEncryptedSwap=true

In the Source file of upower-0.9.4 i have find a different location of the
UPower.conf file:
# dpkg -L upower | grep UPower.conf
/etc/UPower.conf
/etc/dbus-1/system.d/org.freedesktop.UPower.conf

$ grep -n "UPower.conf" src/up-daemon.c
959:    ret = g_key_file_load_from_file (file, PACKAGE_SYSCONF_DIR
"/UPower/UPower.conf", G_KEY_FILE_NONE, &error);

if I create an new folder /etc/UPower/ an copy the UPower.conf inside and
reboot the system Hibernate will work.
# mkdir /etc/UPower && cp /etc/UPower.conf /etc/UPower/UPower.conf

An other way to resolve patch src/up-daemon.c

@@ -956,7 +956,7 @@

        /* load some values from the config file */
        file = g_key_file_new ();
-       ret = g_key_file_load_from_file (file, PACKAGE_SYSCONF_DIR
"/UPower/UPower.conf", G_KEY_FILE_NONE, &error);
+       ret = g_key_file_load_from_file (file, PACKAGE_SYSCONF_DIR
"/UPower.conf", G_KEY_FILE_NONE, &error);
        if (ret) {
                daemon->priv->conf_sleep_timeout =
                        g_key_file_get_integer (file, "UPower", "SleepTimeout",
NULL);

Thanks so far,
David




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

Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages upower depends on:
ii  dbus                         1.2.24-1    simple interprocess messaging syst
ii  libc6                        2.10.2-9    Embedded GNU C Library: Shared lib
ii  libdbus-1-3                  1.2.24-1    simple interprocess messaging syst
ii  libdbus-glib-1-2             0.86-1      simple interprocess messaging syst
ii  libglib2.0-0                 2.24.1-1    The GLib library of C routines
ii  libgudev-1.0-0               154-1       GObject-based wrapper library for 
ii  libpolkit-gobject-1-0        0.96-2      PolicyKit Authorization API
ii  libupower-glib1              0.9.4-1     abstraction for power management -
ii  libusb-0.1-4                 2:0.1.12-14 userspace USB programming library
ii  udev                         154-1       /dev/ and hotplug management daemo

Versions of packages upower recommends:
ii  pm-utils                      1.3.0-1    utilities and scripts for power ma
ii  policykit-1                   0.96-2     framework for managing administrat

upower suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to