You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, January 31st 2006, 9:11pm

How to manually start screensaver (commandline)?

Is there a way to manually start the screensaver?

(The equivalent to xscreensaver-command -activate)

Thanks,
Mguel

2

Thursday, February 2nd 2006, 9:20pm

RE: How to manually start screensaver (commandline)?

You can do something like that with

Source code

1
dcop kdesktop KScreensaverIface lock

It locks the screen, so it will ask for a password to disable the screensaver.

3

Thursday, February 2nd 2006, 10:00pm

RE: How to manually start screensaver (commandline)?

Quoted

Originally posted by mart_k
You can do something like that with

Source code

1
dcop kdesktop KScreensaverIface lock

It locks the screen, so it will ask for a password to disable the screensaver.


Thanks!
I would prefer a way without locking the screen though.

Mguel

4

Friday, February 3rd 2006, 6:55am

RE: How to manually start screensaver (commandline)?

Quoted

Originally posted by Mguel
I would prefer a way without locking the screen though.
I also expected such kind of function, but I couldn't find it.

With dcop it is possible to execute a function in a running program. Which functions can be run can be obtained with the program kdcop. It is possible to see the screensaver functions with

Source code

1
dcop kdesktop KScreensaverIface
It is (off course) possible that I missed a function which does starts the screensaver.

Bob55

Beginner

Posts: 2

Location: Colorado

  • Send private message

5

Thursday, August 3rd 2006, 5:49pm

xscreensaver vs Kscreensaver

Hi All,

Following this thread as well as the others on this subject, I'm still not clear on

1) Can the kde screensaver be disabled?
2) Can the xscreensaver be used instead?

What are the "HOW TO" for either question?

Thanks.

Bob
Bob

6

Monday, October 9th 2006, 9:24pm

Answer - activate screen saver - don't lock

Found answer here:
http://lists.freedesktop.org/archives/po…May/000438.html

To activate the screen saver without locking the screen:
dcop kdesktop KScreensaverIface save

To lock:
dcop kdesktop KScreensaverIface lock

I know this post is old, but I like to find answers in my searches:).

7

Saturday, December 13th 2008, 12:49pm

manually starting screensaver via commandline in KDE4

Is there a way to do this in KDE 4?

8

Thursday, April 16th 2009, 8:29am

Quick Answers to Two Questions

I understand this is a somewhat ancient thread, but since I happened to be searching this very same information myself today, and this forum thread came up fairly high in my search results, I thought I'd go ahead and share what I'd found in case it helps anyone else searching for this information.
Hi All,

Following this thread as well as the others on this subject, I'm still not clear on

1) Can the kde screensaver be disabled?
2) Can the xscreensaver be used instead?

What are the "HOW TO" for either question?

Thanks.

Bob
The answer to Bob's question is contained in the xscreensaver manual under the section heading "USING KDE" (right below the section titled "USING GNOME" just a couple of pages from the top) and can be read by typing "man xscreensaver" in a terminal (console) window. The exact same manual page can also be found at http://www.jwz.org/xscreensaver/man1.html for those folks who would prefer to just click a link.
manually starting screensaver via commandline in KDE4
Is there a way to do this in KDE 4?
In answer to the above question posed by buchs, there are actually a couple ways that I personally know of to do this in KDE4, and there may be more ways than I know as well.

The first way I know of and probably the most reliable if your distro has the "XDG" tools installed is using the "xdg-screensaver lock" command, but even if this command is not available on your system, then there is still a method available similar to the dcop methods described here. The only major difference is that the new system is now dbus instead of dcop, and the tool for sending the commands is called "qdbus". (There is also a graphical dbus browser called "qdbusviewer" which can be used to browse the available dbus channels similarly to the kdcop program used in KDE3.)

Hopefully this information helps someone.

9

Monday, February 8th 2010, 8:00am

RE: How to manually start screensaver (commandline)?

I am using this cmd to start the screen saver on KDE 4.x (on opensuse 11.1/11.2):


Source code

1
qdbus org.kde.screensaver /ScreenSaver org.freedesktop.ScreenSaver.SetActive true


I found it on a that forum: http://forum.kde.org/viewtopic.php?f=66&t=84296&start=0