Package: pm-utils
Version: 0.99.2-1
Severity: important

Hi,

I tried configuring pm-utils to pass the options needed for my system to
s2ram. Therefor I created a new file in /etc/pm/config.d/ which looked
like this:

S2RAM_OPTS="--force --acpi_sleep 3"

This didn't work as expected. Some debugging turned up that it didn't
even bother to read my config file. That was caused by following check
in source_configs in /usr/lib/pm-utils/functions.

[ -x $cfg ] || continue

This check doesn't make much sense to me as the config files aren't
executed. They're just read in line-by line.

After making my config executable things still didn't work as I liked
them to. Apparently it ignores all lines within the config files which
start with something that looks like "VAR=" if VAR is one of the global
configuration variables declared with the add_global function:

while read LINE ; do
        case "$GLOBAL_CONFIG_VARIABLES " in
        *" ${LINE%=*} "*) continue ;;
        *) eval $LINE ;;
    esac
done < $cfg

I'm not sure if this is really what you want to do as those variables
control important behaviour which, as far as I see, can't be set
anywhere else.


-Flo

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

Kernel: Linux 2.6.22-rc3 (PREEMPT)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pm-utils depends on:
ii  powermgmt-base                1.29       Common utils and configs for power

Versions of packages pm-utils recommends:
ii  hal                    0.5.9-3           Hardware Abstraction Layer
ii  radeontool             1.5-5             utility to control ATI Radeon back
ii  uswsusp                0.6~cvs20070513-1 tools to use userspace software su
ii  vbetool                0.7-1.1           run real-mode video BIOS code to a

-- no debconf information


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

Reply via email to