Public bug reported:

[TEST CASE]
* on a laptop machine with a ac adapter connect & wireless interface run:
1. ac adapter disconnect
2. $ tail /var/log/pm-powersave.log & $ iwconfig

[Actual Result]
* wireless power management does not "ON"

$ tail /var/log/pm-powersave.log
--->---> snip --->---> snip --->---> snip --->---> snip --->--->
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.
--->---> snip --->---> snip --->---> snip --->---> snip --->--->

$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"xxxxxxxxx"  
--->---> snip --->---> snip --->---> snip --->---> snip --->--->
          Power Management:off
--->---> snip --->---> snip --->---> snip --->---> snip --->--->

[Expected Result]
$ tail /var/log/pm-powersave.log
--->---> snip --->---> snip --->---> snip --->---> snip --->--->
Running hook /etc/pm/power.d/wireless true:
Turning powersave for wlan0 on...Done.
/etc/pm/power.d/wireless true: success.
--->---> snip --->---> snip --->---> snip --->---> snip --->--->

$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"xxxxxxxxx"  
--->---> snip --->---> snip --->---> snip --->---> snip --->--->
          Power Management:on
--->---> snip --->---> snip --->---> snip --->---> snip --->--->


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
Codename:       trusty

$ uname -a
Linux xxxxxxx 3.13.0-49-generic #81-Ubuntu SMP Tue Mar 24 19:29:48 UTC 2015 
x86_64 x86_64 x86_64 GNU/Linux

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

$ apt-cache policy pm-utils
pm-utils:
  インストールされているバージョン: 1.4.1-13ubuntu0.1
  候補:               1.4.1-13ubuntu0.1
  バージョンテーブル:
 *** 1.4.1-13ubuntu0.1 0
        500 http://www.ftp.ne.jp/Linux/packages/ubuntu/archive/ 
trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4.1-13 0
        500 http://www.ftp.ne.jp/Linux/packages/ubuntu/archive/ trusty/main 
amd64 Packages

** Affects: pm-utils (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  After kernel-3.13.04-41, wireless script checks wrong sys file.

Status in pm-utils package in Ubuntu:
  New

Bug description:
  [TEST CASE]
  * on a laptop machine with a ac adapter connect & wireless interface run:
  1. ac adapter disconnect
  2. $ tail /var/log/pm-powersave.log & $ iwconfig

  [Actual Result]
  * wireless power management does not "ON"

  $ tail /var/log/pm-powersave.log
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->
  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.
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->

  $ iwconfig
  wlan0     IEEE 802.11bgn  ESSID:"xxxxxxxxx"  
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->
            Power Management:off
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->

  [Expected Result]
  $ tail /var/log/pm-powersave.log
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->
  Running hook /etc/pm/power.d/wireless true:
  Turning powersave for wlan0 on...Done.
  /etc/pm/power.d/wireless true: success.
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->

  $ iwconfig
  wlan0     IEEE 802.11bgn  ESSID:"xxxxxxxxx"  
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->
            Power Management:on
  --->---> snip --->---> snip --->---> snip --->---> snip --->--->

  
  $ lsb_release -a
  No LSB modules are available.
  Distributor ID:       Ubuntu
  Description:  Ubuntu 14.04.2 LTS
  Release:      14.04
  Codename:     trusty

  $ uname -a
  Linux xxxxxxx 3.13.0-49-generic #81-Ubuntu SMP Tue Mar 24 19:29:48 UTC 2015 
x86_64 x86_64 x86_64 GNU/Linux

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

  $ apt-cache policy pm-utils
  pm-utils:
    インストールされているバージョン: 1.4.1-13ubuntu0.1
    候補:               1.4.1-13ubuntu0.1
    バージョンテーブル:
   *** 1.4.1-13ubuntu0.1 0
          500 http://www.ftp.ne.jp/Linux/packages/ubuntu/archive/ 
trusty-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       1.4.1-13 0
          500 http://www.ftp.ne.jp/Linux/packages/ubuntu/archive/ trusty/main 
amd64 Packages

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to