[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
** Changed in: notify-osd (Ubuntu) Assignee: (unassigned) = Mirco Müller (macslow) ** No longer affects: notify-osd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-consumption/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
seems like it was fixed with https://bugs.launchpad.net/notify- osd/+bug/915389 and no high cpu usage oon my 13.04 system ** Changed in: notify-osd Status: New = Fix Released ** Changed in: ubuntu-power-consumption Status: Triaged = Fix Released ** Changed in: notify-osd (Ubuntu) Status: Triaged = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
any news regarding that issue? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
Instead of polling all the time, wouldn't it be much more efficient to have something like this? - embed the notification bubble window in a larger transparent XWindow which provides an invisible frame in which the fading happens - subscribe to focus in/out events (GDK_ENTER_NOTIFY) in both windows, and to GDK_MOTION_NOTIFY in the frame Then nothing at all would happen if the mouse pointer is outside the frame; while it's inside, you can do the dynamic fading according to the mouse pointer positions, and if the pointer is inside the bubble window you just fade it out all the way. None of this requires any polling. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
** Also affects: ubuntu-power-consumption Importance: Undecided Status: New ** Changed in: ubuntu-power-consumption Status: New = Triaged ** Changed in: ubuntu-power-consumption Importance: Undecided = Low ** Changed in: notify-osd (Ubuntu) Importance: Medium = Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
I filed bug 915389 for the issue I described. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
Ah, seems I was slightly misled. As far as I can see, all five (or so) timeout handlers are cleaned up properly, i. e. notify-osd is quiet when there is no bubble and the system is idle. However, notify-osd needlessly keeps waking up for each X event (mouse, keyboard, screen, etc.), which is what I am debugging now. It is not from any g_timeout_add, gdk/x11 integration, or otherwise. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
I can confirm that stracing notify-osd when not showing any bubbles yields a neverending stream of poll() and read() calls, so it seems the removal of the timeouts doesn't work properly? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
I don't think we need anything clever here - the obvious question is: Why do we run these handlers when not rendering bubbles? NOSD should just uninstall the timeouts when the queue becomes empty. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
Looking at bubble.c it does appear to be the case that timeouts are removed when the Bubble instances are disposed. So either we only have a power surge when bubbles are on screen (which is probably not a big issue then), or the Bubble objects are leaked, keeping the timeouts going? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
** Changed in: notify-osd (Ubuntu) Importance: Undecided = Low ** Changed in: notify-osd Assignee: (unassigned) = Canonical Desktop Experience Team (canonical-dx-team) ** Changed in: notify-osd Assignee: Canonical Desktop Experience Team (canonical-dx-team) = Mirco Müller (macslow) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
** Changed in: notify-osd Importance: Undecided = High ** Changed in: notify-osd (Ubuntu) Importance: Low = High ** Changed in: notify-osd (Ubuntu) Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
** Project changed: notify-osd = notify-osd (Ubuntu) ** Changed in: notify-osd (Ubuntu) Milestone: None = ubuntu-12.04-beta-1 ** Tags added: battery-power-consumption -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
The attachment bubble.diff of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu- reviewers team please also unsubscribe the team from this bug report. [This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 645130] Re: notify-osd busy polling consumes CPU and drains battery
** Also affects: notify-osd Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/645130 Title: notify-osd busy polling consumes CPU and drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs