autostart works in gnome, but not in KDE

Posted on 2007-10-19
Last Modified: 2013-11-15
I am running Kubuntu.

I have a couple of commands that I need to run at the end of the  bootup sequence.

I created and installed /etc/init.d/local, containing the following:

      sudo /usr/bin/xset +dpms
      sudo /usr/bin/xset dpms 0 0 0

After KDE bootup "xset q" gives me:

DPMS (Energy Star):
  Standby: 1200    Suspend: 1800    Off: 2400
  DPMS is Disabled
 bootup "xset q" gives me:

DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

Commands run on bootup in GNOME,  but not in KDE.  Is it possible tha the commands are being executed in KDE, but defaults are loaded after commands are executed?

How do I tell what commands are executed in KDE at bootup and in what order?.

If commands are running out of sequence, how do I cnage the order in which lthey run?

Any suggestions as to how I get autostart to work in KDE.would be appreciated.

Question by:KenSpeedie
    1 Comment
    LVL 3

    Accepted Solution


    If its system sctipt, put it at the end of /etc/rc.local, before exit 0. And you don't need sudo in it.

    If it is for your kde session, put it in ~/.kde/Autostart.

    You can configure Autostart folder location in KDE settings.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now