Bug 134765 - kscreensaver kicks in immediately when the desktop is taken over via x11vnc
Summary: kscreensaver kicks in immediately when the desktop is taken over via x11vnc
Status: RESOLVED FIXED
Alias: None
Product: kscreensaver
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: needs_verification, triaged
: 136222 138402 142308 147091 313905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-27 21:58 UTC by Szokovacs Robert
Modified: 2015-01-23 13:12 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szokovacs Robert 2006-09-27 21:58:37 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Debian testing/unstable Packages

I have configured kscreensaver to start automatically after a 5 minute delay. It works all right until I take over the desktop remotely, using the x11vnc. When viewed through vnc, when I release the mouse, the screensaver starts immediately. (It used to work all right a couple of releases back, I'm not sure when, I didn't use vnc for many months now)
Comment 1 vatbier 2006-11-08 22:20:59 UTC
Yes,
I also have to disable the screensaver when I take over my home computer running x11vnc 0.8.3 remotely from work with tightvnc_viewer.
I have Mandriva Linux with KDE 3.5.4.

Karl Runge thinks it may be a bug in kdesktop_lock:
http://www.karlrunge.com/x11vnc/#faq:
Q-42:  Help! x11vnc and my KDE screensaver keep switching each other on and off every few seconds.  
 This is a new (Jul/2006) problem seen, say, on the version of KDE that is shipped with SuSE 10.1. It is not yet clear what is causing this... If you move the mouse through x11vnc the screensaver shuts off like it should but then a second or two after you stop moving the mouse the screensaver snaps back on. 
 This may be a bug in kdesktop_lock. For now the only workaround is to disable the screensaver. You can try using another one such as straight xscreensaver.

vatbier
Comment 2 kdebug 2006-11-21 23:56:01 UTC
I have traced this down to a DPMSInfo() call in the kdesktop_lock

Even though there has been mouse or keyboard input to wake kdesktop_lock
up and cause it to turn off the screen saver, kdesktop_lock (or a
respawned process of it) checks DPMSInfo() and if it sees the Monitor
is in a low power state ("standby", "suspend", or "off") it turns on
the screensaver again.

I'm not sure if this is the desired behavior of kdesktop_lock or not to
discard the recent mouse/keyboard input information...

I have put in a workaround to x11vnc for this, the -nodpms option where
it will keep the Monitor in the DPMS "on" state whenever VNC clients
are connected.

        http://www.karlrunge.com/x11vnc/#faq-kde-screensaver

Karl

Comment 3 David Faure 2006-12-06 11:39:56 UTC
*** Bug 138402 has been marked as a duplicate of this bug. ***
Comment 4 Rex Dieter 2007-01-16 15:26:48 UTC
*** Bug 136222 has been marked as a duplicate of this bug. ***
Comment 5 Elan Ruusamäe 2007-11-06 20:45:24 UTC
i can confirm it too, and i use kde's own vnc tools (krdc and krfb).

so for now the only real fix is to revert patch like mentioned in bug 142308?
Comment 6 FiNeX 2008-12-10 02:46:30 UTC
Is this still an issue on KDE 4?
Comment 7 Szokovacs Robert 2009-01-08 16:47:36 UTC
As far as I can tell, it's gone. I checked it in ubuntu hardy. (It looks OK for KDE 3 also in hardy)
Comment 8 David Faure 2009-01-08 17:24:41 UTC
Actually -- what a coincidence, it's amazing -- I just had this bug with my wife's kubuntu hardy's KDE3. Not that I'll reopen this bug though, before seeing it with kde4 first.
Comment 9 Mitko 2010-09-14 21:50:35 UTC
I can confirm this bug with KDE 4.5.1 and X11VNC
Comment 10 David Faure 2010-09-28 02:24:24 UTC
*** Bug 142308 has been marked as a duplicate of this bug. ***
Comment 11 David Faure 2010-10-01 19:35:31 UTC
Bug not reproducible anymore with KDE-4.5.1 and x11vnc 0.9.9.
Comment 12 David Faure 2010-10-01 20:28:41 UTC
Oops. And on the second try the bug happened again. If I move the mouse out of vncviewer, the screensaver kicks in immediately again.

However I think this is an Xorg bug more than a KDE bug. It's X which decides when to let the screensaver kick in, AFAIK.
Comment 13 ietc 2010-12-05 01:52:36 UTC
*** This bug has been confirmed by popular vote. ***
Comment 14 Mitko 2010-12-06 22:13:33 UTC
On my system the screensaver starts as soon as I stop moving the cursor on the remote screen, moving the mouse away from it.
Comment 15 cyberbat 2012-03-20 18:18:39 UTC
I confirm this with kde-4.7.4 and tigervnc-1.1.0.
Comment 16 Marc Payne 2012-08-12 22:43:03 UTC
Confirmed with KDE 4.9.0 and x11vnc 0.9.13. The -nodpms option of x11vnc does not solve the problem. The only workaround I've found is to disable the screensaver.
Comment 17 Sergiu Bivol 2012-11-04 00:06:25 UTC
The -nodpms switch to x11vnc works great for me. Without it, the screen saver kicks in every other second, even when typing text.

Client: KRDC 4.8.5
Server x11vnc version: 0.9.13
Server KDE version: 4.9.2
Comment 18 George Goldberg 2013-03-29 19:07:26 UTC
*** Bug 313905 has been marked as a duplicate of this bug. ***
Comment 19 George Goldberg 2013-03-29 19:08:54 UTC
*** Bug 147091 has been marked as a duplicate of this bug. ***
Comment 20 Oliver Henshaw 2013-04-10 17:46:54 UTC
The kde 4.10 screen locker doesn't behave the same, so this shouldn't be happening any more IIRC. If anyone is encountering it on 4.10 and can reproduce it, I'd like to hear details.
Comment 21 Martin Flöser 2015-01-23 13:12:32 UTC
given comment #20 I assume this issue to be fixed. If it still happens, please reopen.