This bug was fixed in the package network-manager - 0.9.8.8-0ubuntu10
---------------
network-manager (0.9.8.8-0ubuntu10) utopic; urgency=medium
* debian/patches/add_ofono_settings_support.patch:
- don't create a monitor for /var/lib/ofono if the path doesn't exist.
We'll get another chance to do it if oFono appears on the DBus bus.
(LP: #1289532)
- Sort the list of ofono connections before returning them.
* debian/patches/add_ofono_support.patch:
- Don't Online the modem, urfkill or telepathy-ofono will take care of it.
- Further refine how we pick the "best" for mobile data for oFono: we only
want to consider GSM-type connections, and should try to pick the last
connection to get successfully activated, defaulting to the first context
privisioned by oFono (if no connections were ever established).
* debian/patches/ofono_mms_support.patch: deal with MMS by setting up a host
route for the mobile data connection if the MessageProxy property is set in
oFono. (LP: #1302037)
* debian/patches/dont-check-secrets-for-ofono.patch: refreshed.
* debian/patches/git_default_route_active_device_9820258.patch: keep the
default gateway on the currently active device.
-- Mathieu Trudel-Lapierre <[email protected]> Wed, 07 May 2014 09:41:26
-0400
** Changed in: network-manager (Ubuntu)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1289532
Title:
NetworkManager is polling every 4 seconds on the Desktop looking for
/var/lib/ofono
Status in “network-manager” package in Ubuntu:
Fix Released
Bug description:
I was looking at what's sucking power on the Trusty desktop and found
that NetworkManager is polling every 4 seconds adding an inotify watch
on /var/lib/ofono (which does not exist on the desktop - isn't that a
phone related component?).
Anyhow, strace on one of the threads of NetworkManager shows:
sudo strace -p 710
Process 710 attached
restart_syscall(<... resuming interrupted call ...>) = 0
inotify_add_watch(8, "/var/lib/ofono",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 ENOENT (No such file or directory)
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3996) = 0 (Timeout)
inotify_add_watch(8, "/var/lib/ofono",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 ENOENT (No such file or directory)
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3995) = 0 (Timeout)
inotify_add_watch(8, "/var/lib/ofono",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 ENOENT (No such file or directory)
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3995) = 0 (Timeout)
inotify_add_watch(8, "/var/lib/ofono",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 ENOENT (No such file or directory)
So:
1. The polling is rather heavy - every 4 seconds? Is that really necessary?
2. Surely we can avoid repeatedly adding a watch on a directory that does not
exist. Are there better ways than doing this so frequently, especially because
it does not seem relevant on my desktop install.
Anyhow, can this be investigated, it's one of the final big causes of
wakeups on an idle desktop image.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1289532/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp