Wireless powersave doesn't work (pm-utils)

Bug #1414110 reported by ubuntu-tester
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Confirmed
Undecided
Unassigned

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

affects: gvfs (Ubuntu) → pm-utils (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pm-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
John Morris (1pt1nq88tvxvjiijcixknc4iaqh3-na9c-8aho930n7szvk8tyqp2yd0cny5gr) wrote :

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

Revision history for this message
John Freed (oklp) wrote :

This is related to Bug #1299975

It appears that the filename was changed from "enable" to "enabled" and now back to "enable" again.

So #1299975 needs to be backed out.

Revision history for this message
Dirk F (fieldhouse) wrote :

Should be fixed along with bug 1544612. Marking as duplicate...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.