← Back to team overview

kernel-packages team mailing list archive

[Bug 1404612] Re: Power management of the wireless LAN does not work.

 

* suggest 1: Fix it in the kernel side in "enable" or "enabled".

/sys/class/net/wlan0/device/enable
          or
/sys/class/net/wlan0/device/enabled   <- being ideal

* suggest 2: Revert by lp #1299975

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

* suggest 3: In the same way as a lp #1299975, modify pm-utils package
again.

diff -Nur pm-utils-1.4.1.orig/pm/power.d/wireless pm-utils-1.4.1/pm/power.d/wireless
--- pm-utils-1.4.1.orig/pm/power.d/wireless	2014-12-25 10:20:01.000000000 +0900
+++ pm-utils-1.4.1/pm/power.d/wireless	2014-12-25 10:23:12.727673449 +0900
@@ -19,8 +19,12 @@
     [ -L "/sys/class/net/$1/device/driver" ] || return 1
     # Skip if not a wireless card.
     [ -d "/sys/class/net/$1/wireless" ] || return 1
+    # temporary patch. lp:1404612
+    [ -e "/sys/class/net/$1/device/enabled" ] && enabled="enabled"
+    [ -e "/sys/class/net/$1/device/enable" ] && enabled="enable"
     # Also don't do anything if the device is disabled
-    [ "$(cat /sys/class/net/$1/device/enabled)" = "1" ] || return 1
+    [ "$(cat /sys/class/net/$1/device/$enabled)" = "1" ] || return 1
+    unset enabled
     driver="$(readlink "/sys/class/net/$1/device/driver")"
     driver=${driver##*/}
     case $driver in

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1404612

Title:
  Power management of the wireless LAN does not work.

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  wireless script(/usr/lib/pm-utils/power.d/wireless) fixed by bug:1299975
  https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1299975

  /usr/lib/pm-utils/power.d/wireless
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->
  23    [ "$(cat /sys/class/net/$1/device/enabled)" = "1" ] || return 1
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->

  Power management works fine.
  There is no problem to kernel-3.13.0-40.

  but kernel-3.13.0-41 & -43 changed to /sys/class/net/wlan0/device/enable.
  ( enabled -> enable )
  Power management does not work.

  $ tail /var/log/pm-powersave.log
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->
  Running hook /usr/lib/pm-utils/power.d/wireless false:
  cat: /sys/class/net/wlan0/device/enabled: No such file or directory
  /usr/lib/pm-utils/power.d/wireless false: success.
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.13.0-43-generic 3.13.0-43.72
  ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
  Uname: Linux 3.13.0-43-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  yokoyama   2136 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Sun Dec 21 15:46:21 2014
  HibernationDevice: RESUME=UUID=6ff533bf-2108-48e8-a717-5551b42f6ee7
  InstallationDate: Installed on 2014-04-18 (247 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  MachineType: LENOVO 26897LJ
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-43-generic.efi.signed root=UUID=4ba0cc0c-00ce-4685-ba4c-cc3ea1a9b01a ro clocksource=hpet quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-43-generic N/A
   linux-backports-modules-3.13.0-43-generic  N/A
   linux-firmware                             1.127.10
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/12/2013
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 62CN97WW
  dmi.board.asset.tag: No Asset Tag
  dmi.board.name: Lenovo G580
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Defined
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo G580
  dmi.modalias: dmi:bvnLENOVO:bvr62CN97WW:bd07/12/2013:svnLENOVO:pn26897LJ:pvrLenovoG580:rvnLENOVO:rnLenovoG580:rvrNotDefined:cvnLENOVO:ct10:cvrLenovoG580:
  dmi.product.name: 26897LJ
  dmi.product.version: Lenovo G580
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1404612/+subscriptions


References