Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where I can find the source code for fade out animation when the computer is inactive for x minutes?

I guess that it somewhere in /usr/share/gnome-shell/js/ui but I want to find the line.

enter image description here

Note - this question is NOT a duplicate of this:

share|improve this question
up vote 2 down vote accepted

I don't think you're looking in the right way. The respective effect of fade out is realised by gnome-screensaver. Now, you can check (with which gnome-screensaver in terminal) that you have installed on your system gnome-screensaver, but the problem is that this is the compiled version, so no sources on your system in this sense.

But, don't worry, you can download gnome-screensaver source package from Launchpad: The source code of fade out effect can be found in gs-fade.c and gs-fade.h files from src directory:


share|improve this answer
Please add how to download sources, compile them and install them on my system. Thanks! – Ionică Bizău Jun 28 '13 at 6:01
@Johnツ Well, this is the direct link for download:… (you can find it in the link that I gave you in the answer). To install, follow this post: Installing applications from source – Radu Rădeanu Jun 28 '13 at 6:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.