← Back to team overview

desktop-packages team mailing list archive

[Bug 1414110] Re: Wireless powersave doesn't work (pm-utils)

 

I fixed the same problem the same way.

Error in /var/log/pm-powersave.log:
    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.

Fix:
    sed -ie '/\/sys\/class\/net\/$1\/device\/enabled/ s/enabled/enable/' \
        /usr/lib/pm-utils/power.d/wireless

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1414110

Title:
  Wireless powersave doesn't work (pm-utils)

Status in pm-utils package in Ubuntu:
  Confirmed

Bug description:
  Hello,

  I notice a bug about wireless powersave (pm-utils 1.4.1-13ubuntu0.1 on
  Ubuntu 14.04.1 LTS using kernel 3.13.0-44-generic) :

  # PM_FUNCTIONS="/usr/lib/pm-utils/functions" /usr/lib/pm-utils/power.d/wireless true
  cat: /sys/class/net/wlan0/device/enabled: No such file or directory

  If I replace '/sys/class/net/wlan0/device/enabled' by
  '/sys/class/net/wlan0/device/enable' in '/usr/lib/pm-
  utils/power.d/wireless', it seems to work fine :

  # PM_FUNCTIONS="/usr/lib/pm-utils/functions" /usr/lib/pm-utils/power.d/wireless true
  Turning powersave for wlan0 on...Done.

  Is it possible to fix this bug ?

  Thanks :)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1414110/+subscriptions


References