Add / Enable Screensavers in Ubuntu 12.04 (Precise Pangolin)

When you install or upgrade to Ubuntu 12.04, you’ll notice that screensaver has been removed. Now a blank (dark) screen will kick in when your computer is idled. In previous versions of Ubuntu, when your computer becomes idled, a screensaver will start and begin displaying different patterns on your display. Not anymore. If you want to add or enable screensaver package in 12.04, then you must continue below to learn how to do it.

Enable Screensaver in Ubuntu 12.04 (Precise Pangolin)



Enhance your coding experience with this split keyboard that offers up to 9" of separation.

To get started, press Ctrl – Alt – T on your keyboard to open terminal. When it opens, run the commands below to remove gnome-screensaver package.

sudo apt-get purge gnome-screensaver




Next, run the commands below to install xscreensaver packages

sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra




Next, run the commands below to create xscreensaver autostart file.

sudo gedit /etc/xdg/autostart/screensaver.desktop




Then copy and paste the lines into the file and save it.

[Desktop Entry]Name=ScreensaverType=ApplicatonExec=xscreensaver -nosplash




Restart and you’re done. To customize how often it launches, open Dash and search for screensaver, then open it and configure your settings.





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Invest in some screen real estate with a new big screen, backlit monitor availabe in five different sizes and price points.

17 thoughts on “Add / Enable Screensavers in Ubuntu 12.04 (Precise Pangolin)”

  1. how do undo this action? I would like to go back to stock as like before i did the above steps.


  2. In the lines to be copied to the file etc/xdg/autostart/screensaver.desktop, the word “Application” was wrongly spelled as “Applicaton”. So that auto restart will not work if it is not corrected..

  3. Will not work after a reboot due to typo in the screensaver.desktop file. When you edit the file to include the screensaver startup parameters you need to correct the spelling mistake on the line “Type=Application”, The word Application is spelt wrong. When this is corrected all works well :-)


  4. The screensaver works but if I click on “scherm vergendelen” (that is lock screen in Dutch) nothing happens anymore.
    How do I make the screensaver start when I want to lock the screen when I am getting away from my computer ?


  5. You have to do all that just for a screensaver? That seemingly should have already been there? What have I got myself in to. :-(
    I am missing windows already………………………..

  6. I have installed using the instructions on but I get the error
    X error in glslideshow:
    X Error of failed reqest: Badrequest (invalid request code or no such operation)
    Major opcode of failed request: 136 (GLX)
    Minor opcoce of failed request: 19(X_GLXQueryServerString)
    Serial number of failed request: 23
    Current serial number in output stream: 23
    xscreensaver: 18:02:12: 0: child pid 3074 (glslideshow) exited abnormally (code -1)

    on for example Glslideshow.

  7. Note that the error that is frustrating many is still there:

    [Desktop Entry]Name=ScreensaverType=ApplicatonExec=xscreensaver -nosplash

    So when you get to the step where you paste this instruction, make sure that you correct the spelling of “applicaton” to read “application”

Leave a Reply

Your email address will not be published. Required fields are marked *