[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-07-04 Thread Aron Xu
** Changed in: network-manager (Ubuntu)
   Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-06-21 Thread Will Cooke
Added to Trello: https://trello.com/c/BwK47hP3/6-bug-1557026-network-
manager-sets-powersave-off-by-default-in-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-06-08 Thread Sebastien Bacher
** Changed in: network-manager (Ubuntu)
 Assignee: Tony Espy (awe) => Aron Xu (happyaron)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-06-08 Thread Sebastien Bacher
seems like the fix was merged in the packaging vcs
https://git.launchpad.net/~network-manager/network-manager/+git/ubuntu/commit/?id=9f40397c

Aron, can you include that in the coming SRU maybe?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-06-08 Thread Amr Ibrahim
Bug #1579915 is for ubuntu touch.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-06-07 Thread Sebastien Bacher
Tony, is that right that it was fixed in the overlay version? If so why
is Ubuntu left behind?

** Changed in: network-manager (Ubuntu)
 Assignee: (unassigned) => Tony Espy (awe)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-06-03 Thread Amr Ibrahim
A fix was released for Ubuntu touch. Please SRU for desktop Xenial.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-05-10 Thread Tony Espy
Note, it looks like the problem is that the original patch fixes up the
libnm-util version of nm-settings-wireless.c which has been deprecated.
Instead the libnm-core version of nm-settings-wireless.c needs to be
updated.  I'm testing this now for a touch build and will report back
here if it works.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-05-10 Thread Tony Espy
So NM 1.1.93-0ubuntu1 includes the patch default_powersave_on.patch,
which is pretty simple, it just modifies the NMSettingWireless code to
default powersave to 1:

===
--- a/libnm-util/nm-setting-wireless.c
+++ b/libnm-util/nm-setting-wireless.c
@@ -675,7 +675,7 @@ nm_setting_wireless_get_hidden (NMSettin
 guint32
 nm_setting_wireless_get_powersave (NMSettingWireless *setting)
 {
-   g_return_val_if_fail (NM_IS_SETTING_WIRELESS (setting), 0);
+   g_return_val_if_fail (NM_IS_SETTING_WIRELESS (setting), 1);
 
return NM_SETTING_WIRELESS_GET_PRIVATE (setting)->powersave;
 }
@@ -885,6 +885,9 @@ verify (NMSetting *setting, GSList *all_
 static void
 nm_setting_wireless_init (NMSettingWireless *setting)
 {
+   NMSettingWirelessPrivate *priv = NM_SETTING_WIRELESS_GET_PRIVATE 
(setting);
+
+   priv->powersave = 1;
 }
 
 static void
@@ -1283,7 +1286,7 @@ nm_setting_wireless_class_init (NMSettin
g_object_class_install_property
(object_class, PROP_POWERSAVE,
 g_param_spec_uint (NM_SETTING_WIRELESS_POWERSAVE, "", "",
-   0, G_MAXUINT32, 0,
+   0, G_MAXUINT32, 1,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
 }

...unfortunately, the NM1.2 treats powersave=1 as IGNORE:

/** 

 
 * NMSettingWirelessPowersave:  

 
 * @NM_SETTING_WIRELESS_POWERSAVE_DEFAULT: use the default value

 
 * @NM_SETTING_WIRELESS_POWERSAVE_IGNORE: don't touch existing setting  

 
 * @NM_SETTING_WIRELESS_POWERSAVE_DISABLE: disable powersave

 
 * @NM_SETTING_WIRELESS_POWERSAVE_ENABLE: enable powersave  

 
 *  

 
 * These flags indicate whether wireless powersave must be enabled. 

 
 **/
typedef enum {
NM_SETTING_WIRELESS_POWERSAVE_DEFAULT   = 0,
NM_SETTING_WIRELESS_POWERSAVE_IGNORE= 1,
NM_SETTING_WIRELESS_POWERSAVE_DISABLE   = 2,
NM_SETTING_WIRELESS_POWERSAVE_ENABLE= 3,
_NM_SETTING_WIRELESS_POWERSAVE_NUM, /*< skip >*/
NM_SETTING_WIRELESS_POWERSAVE_LAST  =  
_NM_SETTING_WIRELESS_POWERSAVE_NUM - 1, /*< skip >*/
} NMSettingWirelessPowersave;

...and the code in NMDeviceWiFi will only enable powersave if the value
returned from NMSettingWireless is 3:


if (powersave == NM_SETTING_WIRELESS_POWERSAVE_IGNORE)
return;

nm_platform_wifi_set_powersave (NM_PLATFORM_GET,
nm_device_get_ifindex (device),
powersave == 
NM_SETTING_WIRELESS_POWERSAVE_ENABLE);


** Changed in: network-manager (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1557026] Re: Network Manager sets powersave off by default in xenial

2016-05-10 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: network-manager (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1557026

Title:
  Network Manager sets powersave off by default in xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1557026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs