Package: pm-utils
Version: 1.3.0~rc3-2
Severity: normal

pm-powersave without any option behaves like pm-powersave true on desktop 
machines because "if on_ac_power; then" at line 47 is true if on_ac_power 
returns 0 (=on main power) and not if it returns 255 (=Power status could 
not be determined). But I think the expected behaviour is to behave like
pm-powersave false in the latter case and thus I replaced the line with:

/usr/bin/on_ac_power > /dev/null
    if test $? -ne 1; then

After it pm-powersave works like expected.


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

Kernel: Linux 2.6.33 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pm-utils depends on:
ii  console-tools              1:0.2.3dbs-68 Linux console and font utilities
ii  powermgmt-base             1.31          Common utils and configs for power

Versions of packages pm-utils recommends:
ii  procps                        1:3.2.8-7  /proc file system utilities
pn  radeontool                    <none>     (no description available)
ii  vbetool                       1.1-2      run real-mode video BIOS code to a

Versions of packages pm-utils suggests:
ii  cpufrequtils                  006-2      utilities to deal with the cpufreq
pn  uswsusp                       <none>     (no description available)

-- 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