This forum has been archived. All content is frozen. Please use KDE Discuss instead.

cli command start screensaver

Tags: None
(comma "," separated)
annoyingposter
Registered Member
Posts
13
Karma
0

cli command start screensaver

Sun Aug 25, 2013 7:44 pm
hi im new here, not sure if this is the correct subforum..

i like to have a keyboard shortcut that starts the screensaver, or screen locker or what its called
in 4.10 i used the command 'qdbus org.kde.screensaver /ScreenSaver SetActive true' to start the screen saver/locker, however this would also lock the screen.

in 4.11 this command no longer works at all

if someone can provide me with commands for kde 4.11that
1) starts the screensaver/locker without actually password locking the screen
2) as above but with pw locking the screen
i would be very happy

thanks :)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Mon Aug 26, 2013 8:01 am
For locking the screen, open System Settings > Gestures & Shortcuts > Global Keyboard Shortcuts. Under "KDE component", find and select "kscreenlocker". This should present you with an option to set a global shortcut which will lock the screen (and enable the screensaver if it is configured to do so).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 9:21 am
hi, thanks for suggestion. i have no 'kscreenlocker' in that kde component drop-down list, nor anything else that looks related to this..im on kubuntu 13.04 64 bit with kde 4.11 from kubuntu backports ppa
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Mon Aug 26, 2013 9:22 am
Is there another component, such as "Screen Locker" or something along those lines present in that drop down instead? It may have been renamed at some point.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 9:32 am
i have the following, leaving out amarok,ktorrent, knotes etc:

kactivitymanagerd
kde daemon (it contains hibernate and a bunch of other things but nothing related to screenlocker or screensver)
kde keyboard layout switcher
khotkeys (where my previous shortcut as described in original post is located)
klipper
kmix
kwin
kwinactive
plasma desktop shell
run command interface
kde session manager

ive looked though all of these but none have anything related to screen locker or screensaver that i can see
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Mon Aug 26, 2013 9:37 am
Oh, I recall responsibility for locking the screen was shifted to the Session Manager - try checking that one.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 9:42 am
ah yeah theres a lock session there, thanks

but thats not really what i wanted, i really want a shortcut that starts the screen locker, but without actually locking it so that it goes away when i move the mouse, just like when the screensaver/locker starts automaticly after X minutes
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Mon Aug 26, 2013 9:44 am
I see. From the various interfaces I can see, that is not possible i'm afraid. You might want to check the output of this command though, as it may indicate something which is helpful here.
Code: Select all
qdbus org.kde.screensaver /ScreenSaver


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 9:47 am
hmm yeah, that gives me the same error as the command i mentioned in the first post. the error message is:
qdbus: could not find a Qt installation of ''
thats 2x' not 1x"
this started happening after installing 4.11, not in 4.10

thanks for your help
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Mon Aug 26, 2013 9:50 am
That is a rather serious message. Can you make sure all your Qt packages are the same version, and from the same source?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 9:57 am
well, i have noticed no ill effects of any kind, its been, what, over a week since i installed 4.11. i got all the upgrades from the kubuntu backports ppa, nothing more, nothing less

im not sure how to check that all qt packages are same version and from same source except putting 'qt' in to the package manager search field which results in a million packages..
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Mon Aug 26, 2013 10:09 am
The packages in particular you need to care about will be called "libqt4-*"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 12:00 pm
i have these from dpkg --get-selections libqt4-*

libqt4-dbus:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-declarative:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-designer:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-help:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-network:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-opengl:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-qt3support:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-script:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-scripttools:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-sql:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-sql-mysql:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-sql-sqlite:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-svg:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-test:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-xml:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
libqt4-xmlpatterns:amd64 4:4.8.4+dfsg-0ubuntu14~ubuntu13.04~ppa1
annoyingposter
Registered Member
Posts
13
Karma
0

Re: cli command start screensaver

Mon Aug 26, 2013 12:01 pm
something went a bit wrong with the formatting there but you can probably make sense of it
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: cli command start screensaver

Tue Aug 27, 2013 8:32 am
It appears this is an Ubuntu packaging defect. Please see https://bugs.launchpad.net/ubuntu/+sour ... ug/1177823 for more information.
Fortunately there does appear to be an interim workaround - which is mentioned in that Launchpad report.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]