Package: pm-utils
Version: 1.4.1-15
Severity: normal

I think it is time to drop 17-fix-wireless-hook.patch...

After observing /var/log/pm-powersave.log, I believe I have uncovered
a typo on line 23 of /usr/lib/pm-utils/power.d/wireless:

    [ "$(cat /sys/class/net/$1/device/enabled)" = "1" ] || return 1

When the laptop lid is closed, this ends up in the log files:

Running hook /usr/lib/pm-utils/power.d/wireless true:
cat: /sys/class/net/wlan0/device/enabled: No such file or directory
/usr/lib/pm-utils/power.d/wireless true: success.

Removing just one character so that the line reads:

     [ "$(cat /sys/class/net/$1/device/enable)" = "1" ] || return 1

Then, the log file yields this result:

Running hook /usr/lib/pm-utils/power.d/wireless true:
Turning powersave for wlan0 on...Done.
/usr/lib/pm-utils/power.d/wireless true: success.

This same issue is all over the Ubuntu forums.  The name of the file
changed from enable to enabled and back again to enable!


-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pm-utils depends on:
ii  powermgmt-base  1.31+nmu1

Versions of packages pm-utils recommends:
ii  ethtool  1:3.16-1
ii  hdparm   9.43-2
ii  kbd      1.15.5-2
ii  procps   2:3.3.9-9
ii  vbetool  1.1-3

Versions of packages pm-utils suggests:
pn  cpufrequtils    <none>
pn  radeontool      <none>
ii  wireless-tools  30~pre9-8

-- no debconf information

Reply via email to