← Back to team overview

kernel-packages team mailing list archive

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

 

We are sorry to have confused you with poor English.

My wireless card is Qualcomm Atheros AR9285 Wireless Network Adapter.
kernel driver in use: ath9k driver.
Power management is OFF by Default.
but driver option is set to ps_enable=1.(ps_enable: Enable WLAN PowerSave)

$ cat /etc/modprobe.d/ath9k_powersave.conf 
options ath9k ps_enable=1


# AC adapter connect & kernel 3.13.0-40-generic.

$ tail /var/log/pm-powersave.log
Running hook /etc/pm/power.d/wireless false:
Turning powersave for wlan0 off...Done.    <--- off
/etc/pm/power.d/wireless false: success.

$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"?????????"
          Mode:Managed  Frequency:2.412 GHz  Access Point: ??:??:??:??:??:??
          Bit Rate=1 Mb/s   Tx-Power=14 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
off--->   Power Management:off
          Link Quality=46/70  Signal level=-64 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2  Invalid misc:1278   Missed beacon:0

# AC adapter disconnect(battery power) & kernel 3.13.0-40-generic.

$ tail /var/log/pm-powersave.log
Running hook /etc/pm/power.d/wireless true:
Turning powersave for wlan0 on...Done.    <--- on
/etc/pm/power.d/wireless true: success.

$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"?????????"
          Mode:Managed  Frequency:2.412 GHz  Access Point: ??:??:??:??:??:??
          Bit Rate=1 Mb/s   Tx-Power=14 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
on --->   Power Management:on
          Link Quality=46/70  Signal level=-64 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2  Invalid misc:1278   Missed beacon:0

Power management is works fine.
but kernel 3.13.0-41-generic & 3.13.0-43-generic is does not work.

# AC adapter connect & (kernel 3.13.0-41-generic or 3.13.0-43-generic).

$ tail /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  <--- error
/usr/lib/pm-utils/power.d/wireless true: success.

$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"?????????"
          Mode:Managed  Frequency:2.412 GHz  Access Point: ??:??:??:??:??:??
          Bit Rate=1 Mb/s   Tx-Power=14 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
off--->  Power Management:off
          Link Quality=46/70  Signal level=-64 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2  Invalid misc:1278   Missed beacon:0

# AC adapter disconnect(battery power) & (kernel 3.13.0-41-generic or
3.13.0-43-generic).

** "ON" does not have it. **

$ tail /var/log/pm-powersave.log
cat: /sys/class/net/wlan0/device/enabled: No such file or directory  <--- error

$ iwconfig
off--->  Power Management:off


** a cause **
cat: /sys/class/net/wlan0/device/enabled: No such file or directory  <--- error

"/sys/class/net/wlan0/device/enabled" is assumed in wireless script.
(wireless script: /usr/lib/pm-utils/power.d/wireless in pm-utils package)
but changed to "/sys/class/net/wlan0/device/enable" on kernel 3.13.0-41 & 43-generic.
(filename: enabled -> enable)
So can not control wireless script in pm-utils package.

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

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