Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188618 - gnome-power-manager-2.18.3 does not display icon in notification area
Summary: gnome-power-manager-2.18.3 does not display icon in notification area
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-12 17:46 UTC by Christian Schlotter
Modified: 2007-11-16 02:06 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Hacked ebuild which workarounds this bug (gnome-power-manager-2.20.0-r1.ebuild,2.50 KB, text/plain)
2007-11-05 17:10 UTC, Shogun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schlotter 2007-08-12 17:46:28 UTC
Hi!

Yesterday I upgraded to gnome 2.18. Since then, gnome-power-manager's icon, which used to be displayed in the notification area has disappeared. I checked that gnome-power-manager is set to "Always display an icon" in Power Management Preferences.

Best regards
Christian
Comment 1 Mart Raudsepp gentoo-dev 2007-08-12 17:52:46 UTC
Please read the GNOME 2.18 Upgrade Guide at http://www.gentoo.org/proj/en/desktop/gnome/howtos/gnome-2.18-upgrade.xml
Comment 2 Herman Timmermans 2007-08-25 07:51:42 UTC
Same problem with amd64 after update.

Portage 2.1.2.12 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Turion(tm) 64 Mobile Technology MT-28
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 23 Aug 2007 18:00:01 +0000
................
equery gives me =>
..........

[I--] [  ] gnome-extra/gnome-power-manager-2.18.3 (0)
..........

Herman
Comment 3 Ferry 2007-10-29 08:02:21 UTC
Issue is still here in 2.20.0. Any ideas for a solution? It's pretty annoying.
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-10-29 17:01:44 UTC
No.  No one seems to have a clue.
Comment 5 Andrey Melentyev 2007-10-30 00:19:56 UTC
Unfortunately the bug is reproducable on my system too. I don't really know what information can be helpful, my system is up-to-date ~x86.
Comment 6 Mart Raudsepp gentoo-dev 2007-10-30 09:56:18 UTC
We need some hardcore debugging here, not information, unfortunately. Well, actually we need information retrieved from some debugging deep in gtk+ and g-p-m internals..
I got somewhere months back but haven't been able to dig even more deeper.
I'll try to later dig up the various upstream bugs and link em up from here.
Comment 7 Pacho Ramos gentoo-dev 2007-10-30 12:47:06 UTC
Only say that, if I set up opera browser for opening at gnome-session startup, also its notification icon is usually missing and I have to restart opera for getting it. I am not an expert but, maybe, this would indicate that the problem is more related to notification applet than a gnome-power-manager bug. On the other hand, it's extrange that other icons like beagle or gdesklets one are not affected by this (tomboy usually works but sometime it also fails) :-/
Comment 8 Andrey Melentyev 2007-10-30 15:06:10 UTC
By the way, I've heard about similar problems with Beryl icon in KDE. If beryl-manager is started automatically within KDE startup, there is no icon in the notification area. And of course the icon is on its right place if beryl-manager is started by hand. So maybe Pacho is right and the problem is not in gnome-power-manager itself?
Comment 9 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-10-30 17:12:36 UTC
The problem is believed to be in gtk+, but no one knows for sure.  It manifests most often in gnome-power-manager.
Comment 10 Shogun 2007-11-05 17:10:27 UTC
Created attachment 135258 [details]
Hacked ebuild which workarounds this bug

Hi guys!
I can confirm that this bug is of GTK, as it shows also with tomboy and networkmanager.
By the way, at least for gnome-power-manager I think I have found a solution.
I noticed accidentally that if g-p-m is emerged without XEvents support (unlike the official ebuild) this bug disappear.
More info are available here: http://bugzilla.gnome.org/show_bug.cgi?id=413360#c38
I attach this ebuild which transform xevents support in a use flag. (on my 2007.0 is disable by default)
Hope this helps!
Cheers!
  Shogun
Comment 11 Mart Raudsepp gentoo-dev 2007-11-09 08:17:09 UTC
(In reply to comment #10)
> Hi guys!
> I can confirm that this bug is of GTK, as it shows also with tomboy and
> networkmanager.

No, it's not. It's an application problem if it filters out X Events from under gtk+'s back, as g-p-m did.

> By the way, at least for gnome-power-manager I think I have found a solution.
> I noticed accidentally that if g-p-m is emerged without XEvents support (unlike
> the official ebuild) this bug disappear.
> More info are available here:
> http://bugzilla.gnome.org/show_bug.cgi?id=413360#c38

Many many many thanks for pinpointing this to the very small HAVE_XEVENTS specific code! I can't believe I didn't find this with my greps back at July when looking for GdkFilter problems (HAVE_XEVENTS code has one). As the functionality this provides has never worked and is probably untested, I went with passing --disable-xevents, but also created a patch that fixes the filter properly and attached it to the above-mentioned bug with a full analysis of why the icon was breaking for those interested.

So, this bug is now fixed in 2.20.0-r1, while later we should reconsider if we want to use the xevents functionality or not - awaiting upstreams opinion on the upstream bug
Comment 12 Pacho Ramos gentoo-dev 2007-11-09 08:26:42 UTC
(In reply to comment #11)
> So, this bug is now fixed in 2.20.0-r1, while later we should reconsider if we
> want to use the xevents functionality or not - awaiting upstreams opinion on
> the upstream bug
> 

Could this be also done for 2.18 branch? 

I know that I can manually edit the ebuild for disabling xevents, but I think that most of users would be happy getting this fixed also for gnome-2.18 :-)

Thanks a lot
Comment 13 Mart Raudsepp gentoo-dev 2007-11-09 08:30:05 UTC
If all goes well, 2.20 will be going stable in the coming days anyways, so not sure I want a revision bump hanging around that will probably never get stabled
Comment 14 Pacho Ramos gentoo-dev 2007-11-09 08:38:49 UTC
(In reply to comment #13)
> If all goes well, 2.20 will be going stable in the coming days anyways, so not
> sure I want a revision bump hanging around that will probably never get stabled
> 

OK 
Comment 15 Mart Raudsepp gentoo-dev 2007-11-16 02:06:22 UTC
I fixed it for 2.18 series afterall in 2.18.3-r1 now.