After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 140717 - Make the fade-on-logout smooth
Make the fade-on-logout smooth
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
: 112486 137802 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-21 13:08 UTC by Ross Girshick
Modified: 2007-05-08 10:18 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
proposed smooth fadeout patch (4.54 KB, patch)
2004-04-21 13:11 UTC, Ross Girshick
none Details | Review
proposed smooth fadeout patch (5.12 KB, patch)
2004-04-21 20:54 UTC, Ross Girshick
none Details | Review
reworked patch (5.26 KB, patch)
2004-10-07 13:14 UTC, Kjartan Maraas
none Details | Review
reset fade counter (4.03 KB, patch)
2004-10-18 03:16 UTC, Ross Girshick
none Details | Review
reset fade counter (5.28 KB, patch)
2004-10-18 11:22 UTC, Ross Girshick
committed Details | Review
incremental patch between reworked and reset fade counter (657 bytes, patch)
2004-10-18 13:22 UTC, Ross Girshick
none Details | Review

Description Ross Girshick 2004-04-21 13:08:55 UTC
Description of Problem:

When logging out of gnome the fadeout is often
choppy and gives users a bad impression gnome's
performance charateristics.

Steps to reproduce the problem:
1. Logout
2. Watch the fadeout.

Momentarily I will be attaching a patch to fix
this problem.
Comment 1 Ross Girshick 2004-04-21 13:11:39 UTC
Created attachment 26912 [details] [review]
proposed smooth fadeout patch

It has been suggested that this patch might need to be able to drop frames on
slow machines. I'll look into whether that's still an issue or if the new code
is fast enough that it doesn't really matter.
Comment 2 Ross Girshick 2004-04-21 20:54:17 UTC
Created attachment 26937 [details] [review]
proposed smooth fadeout patch

*Removed unused variables start_pb and start_p.

I also tested this on a 650MHz PIII with a 1400x1050 LCD panel (the slowest
machine running gnome that I have access to) and the fade out seems fine. It
does take a little longer than 1.5 seconds, but it doesn't block the user from
logging out and is much nicer looking than the choppy fade IMHO.
Comment 3 Mark McLoughlin 2004-05-13 11:12:29 UTC
*** Bug 137802 has been marked as a duplicate of this bug. ***
Comment 4 Mark McLoughlin 2004-06-21 07:48:43 UTC
*** Bug 112486 has been marked as a duplicate of this bug. ***
Comment 5 Ilya Konstantinov 2004-10-06 15:01:36 UTC
Two dupes for this already, so it's about time we confirm (and check in the patch).
Comment 6 Christian Kellner 2004-10-06 16:53:53 UTC
It looks kinda crappy here too (Pentium-M @ 600 Mhz) .. its not really fading
but getting darker in just 2 steps. 
Comment 7 Kjartan Maraas 2004-10-06 17:01:24 UTC
Sorry about this, but the patch has to be updated as it doesn't apply cleanly
any more. Could you do that? I promise I'll test it here and report back if you
do :-)
Comment 8 Ross Girshick 2004-10-06 18:35:14 UTC
I probably won't have time to update the patch until next week. I'll also get my
hands on a slower machine to check out what Christian is reporting.
Comment 9 Kjartan Maraas 2004-10-07 13:13:19 UTC
Attaching a reworked patch for HEAD. It doesn't work after Cancelling the logout
dialog though so that needs to be looked at. The fadeout is definitely much
better  with this.
Comment 10 Kjartan Maraas 2004-10-07 13:14:09 UTC
Created attachment 32329 [details] [review]
reworked patch
Comment 11 Ross Girshick 2004-10-18 03:14:34 UTC
The fade step counter (static) needed to be reset to zero upon completion. The
following patch does that. I tested it on my laptop at 600Mhz and 1.6Ghz
(1400x1050) and it performed fine in both cases -- though more people should do
performance tests. It should be noted that with this algorithm images on the
screen tend to get a little bit of an contour map look to them when fading. I
don't think that it's a big problem for sake making the fade smoother.
Comment 12 Ross Girshick 2004-10-18 03:16:07 UTC
Created attachment 32714 [details] [review]
reset fade counter
Comment 13 Kjartan Maraas 2004-10-18 10:39:58 UTC
Could you attach a patch in diff -up format? Also, was this incremental to the
previous patch?
Comment 14 Ross Girshick 2004-10-18 11:21:04 UTC
Sorry about the format -- I've gotten to used to using svn. The patch is against
cvs HEAD. Re-attaching below...
Comment 15 Ross Girshick 2004-10-18 11:22:14 UTC
Created attachment 32721 [details] [review]
reset fade counter
Comment 16 Kjartan Maraas 2004-10-18 12:30:13 UTC
Is this on top of the other patch or a rewrite of it or? :-) Maybe attaching an
incremental patch too would be nice just to see what you actually changed from
the previous patch.
Comment 17 Ross Girshick 2004-10-18 13:20:59 UTC
As I said in comment #14, it's against cvs HEAD (using cvs diff -up logout.c). I
will attach an incremental patch showing differences between the reworked patch
that you posted and the new one -- almost nothing has changed.
Comment 18 Ross Girshick 2004-10-18 13:22:04 UTC
Created attachment 32728 [details] [review]
incremental patch between reworked and reset fade counter
Comment 19 Kjartan Maraas 2004-10-19 14:22:31 UTC
Does this work correctly for you? I got some strange delays when logging in and
hitting logout right away. It did nothing for a minute or two and then suddenly
started throwing logout dialogs at me... Second time I tried it hung.
Comment 20 Ross Girshick 2004-10-19 14:51:53 UTC
That sounds pretty bad. I haven't seen that behavior in my testing. I'll try
applying the patch to a fresh cvs checkout to limit other factors. Has anyone
else had a chance to test this?
Comment 21 Kjartan Maraas 2005-01-25 20:15:00 UTC
Giving this a go again to see if I can find out what broke.
Comment 22 Kjartan Maraas 2005-01-25 20:25:04 UTC
I can't get it to break now, so that was probably some other bug in an earlier
release. Maybe we can get this in now then? Anyone able to test this on Solaris
and maybe even a SunRay server?
Comment 23 Sebastien Bacher 2005-07-11 10:40:43 UTC
maybe this patch could be pushed now?
Comment 24 Kjartan Maraas 2005-07-25 14:07:17 UTC
Still hasn't had anyone test the implications on network traffic or cpu usage on
big servers with a lot of users. I don't know whether we should cater for those
unless someone who are running something like that actually wants to test the
patch...
Comment 25 James Hall 2005-08-14 18:39:34 UTC
This needs pushing now, it has been over a year and the bug is appearing often
in other distros bugzilla's downstream. The wasted time it takes to keep
repatching patchs is just silly.
Comment 26 Kjartan Maraas 2005-08-15 13:29:39 UTC
Yeah, it needs pushing and we need someone to get this tested on for example a
SunRAY or plain X server with many users on it to see if it works without a big
impact on performance in these environments. Glynn or Calum could help maybe...
Comment 27 Scott Harmon 2005-09-24 06:00:23 UTC
Any recent work on this?
Comment 28 Scott Harmon 2005-09-24 06:01:41 UTC
Arg, cut of the rest of the comment...xscreensaver seems to have a very nice
fade mechanism, maybe this could be duplicated here?
Comment 29 Arthur Taylor 2006-01-03 05:07:17 UTC
Just a comment, could animatine the fading the logout display be automaticly disable when being used on a remote (xdmcp) display, as the fade out process takes a long time over the network, particularily with older/crappy x servers (aka winaxe)? Or should that be another bug report? 
Comment 30 Kjartan Maraas 2006-01-03 20:47:41 UTC
Keeping just the patch that contains the full and updated change.
Comment 31 Michel Dänzer 2006-03-10 15:31:47 UTC
What I don't understand is why the GDK/Cairo/RENDER alpha blending capabilities aren't used for the fade effect. That would take advantage of hardware acceleration and should work equally well remotely, e.g.

(With a compositing manger, it would be even easier, just create a suitably coloured solid window and change its translucency :)

Re: comment #28: xscreensaver fades out by changing the colourmap, so the logout dialog would be affected as well. I doubt that'd be useful. :)
Comment 32 Ralph Corderoy 2006-03-10 16:00:47 UTC
Whatever solution is chosen, it needs to work, degrade, or simply butt-out for network X sessions.  It isn't just on old hardware that this is a problem.
Comment 33 Daniel Holbach 2006-04-13 08:07:43 UTC
We use the patch in Ubuntu and it works nicely although some people noticed some quirks regarding the faded out colours: https://launchpad.net/distros/ubuntu/+source/gnome-session/+bug/39371
Comment 34 Duncan Lithgow 2006-11-07 21:50:56 UTC
The strange colours are still there, especially on LCD screens. Gnome 2.16.1 Ubuntu 6.10
Comment 35 Vincent Untz 2007-01-07 12:50:06 UTC
Daniel: does Ubuntu with LDTP use this patch? Or do they disable it?
Comment 36 Christof Krüger 2007-03-02 11:24:20 UTC
I've uploaded a patch downstream. I changed the original implementation by using a lookup table This should be faster because it just needs one lookup operation per channel per pixel.
It also saves som memory since there's no need for the end frame pixmap any more.

http://librarian.launchpad.net/6582374/13_smoother_fading.patch
Comment 37 Vincent Untz 2007-05-08 10:18:11 UTC
The patch is faster than what we had, so it really can't make things worse. I committed it.