By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1475

Summary: [Regression] ScreenSaver not activating
Product: TDE Reporter: Kris <krisgamrat>
Component: tdebaseAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: bugwatch, darrella, kb9vqf, krisgamrat, slavek.banko
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:

Description Kris 2013-04-22 09:12:31 CDT
This is *potentially* a regression of bug #811, it looks like the same thing but is marked as fixed.

Even though I have a screen saver selected to activate after so many minutes, I do not see the screen saver. Instead, I see the locked desktop screen, e.g. the enter password dialog or the CTRL+ALT+DEL screen (depending on whether TSAK is enabled).

I'm seeing this in both R14 and 3.5.13.1 (though I don't remember seeing it in 3.5.13 pre-SRU).
Comment 1 Timothy Pearson 2013-04-22 16:15:06 CDT
I'm going to go out on a limb and guess that this is possibly related to Bug 1467.
Comment 2 Kris 2013-04-22 16:22:27 CDT
(In reply to comment #1)
> I'm going to go out on a limb and guess that this is possibly related to Bug
> 1467.

I doubt it, bug #1467 appeared only after a dist-upgrade to the latest nightlies when I filed that bug. This particular bug has actually been around for quite awhile, I've just been neglecting to report it.
Comment 3 Kris 2013-04-22 16:24:46 CDT
(In reply to comment #2)
> (In reply to comment #1)
> > I'm going to go out on a limb and guess that this is possibly related to Bug
> > 1467.
> 
> I doubt it, bug #1467 appeared only after a dist-upgrade to the latest
> nightlies when I filed that bug. This particular bug has actually been around
> for quite awhile, I've just been neglecting to report it.

Correction: I doubt it's related beyond the fact that you need to fix #1467 before fixing this (at least in the nightlies/git sources, 3.5.13-sru may be fixable if someone is still maintaining it)
Comment 4 Slávek Banko 2013-04-22 17:53:45 CDT
No such problems I've noticed in 3.5.13.x. The only thing I accidentally saw
again recently, it was stuck kdesktop_lock in sigsuspend - as described in the
bug 1288. In this case, however, was not activated both - screen saver and also screen lock.

When observing a virtual machine but after a while I see a strange behavior:
While the screensaver is running properly, for a long time instead of screen
saver displays an background image (if it is turned on including the unlock
screen) - after a minute (my start saver time) saver starts again, runs 10
seconds and return to the background image. And so over and over again. The
time before it starts to behave strangely maybe corresponds to the time to
switch monitor to standby.
Comment 5 Timothy Pearson 2013-04-22 21:45:51 CDT
I have corrected several uninitialized variable issues in kdesktop_lock in my recent patches for Bug 1467; can you please re-test with those patches applied and let me know if they do anything to help this report?

Thanks!
Comment 6 Kris 2013-04-22 22:23:50 CDT
(In reply to comment #4)
> No such problems I've noticed in 3.5.13.x. The only thing I accidentally saw
> again recently, it was stuck kdesktop_lock in sigsuspend - as described in the
> bug 1288. In this case, however, was not activated both - screen saver and also
> screen lock.

Perhaps it's specific to Debian Squeeze?
Comment 7 Slávek Banko 2013-04-23 12:39:54 CDT
(Odpověď na komentář #6)
> (In reply to comment #4)
> > No such problems I've noticed in 3.5.13.x. The only thing I accidentally saw
> > again recently, it was stuck kdesktop_lock in sigsuspend - as described in the
> > bug 1288. In this case, however, was not activated both - screen saver and also
> > screen lock.
> 
> Perhaps it's specific to Debian Squeeze?

If I know Roman Savochenko uses a different distribution, and this problem also observed.
Comment 8 Slávek Banko 2013-04-23 12:50:02 CDT
(Odpověď na komentář #4)
> When observing a virtual machine but after a while I see a strange behavior:
> While the screensaver is running properly, for a long time instead of screen
> saver displays an background image (if it is turned on including the unlock
> screen) - after a minute (my start saver time) saver starts again, runs 10
> seconds and return to the background image. And so over and over again. The
> time before it starts to behave strangely maybe corresponds to the time to
> switch monitor to standby.

I believe that the observed problem is related to the LockProcess::checkDPMSActive. After activation DPMS screen saver is stopped - it is very good. However, after a preset period of inactivity the screen saver is started again... and then was stopped again due to still active DPMS. And so over and over again.
Comment 9 Timothy Pearson 2013-04-24 14:37:31 CDT
(In reply to comment #8)
> I believe that the observed problem is related to the
> LockProcess::checkDPMSActive. After activation DPMS screen saver is stopped -
> it is very good. However, after a preset period of inactivity the screen saver
> is started again... and then was stopped again due to still active DPMS. And so
> over and over again.

Good work tracking this down!  I have committed several fixes to the DPMS handling code in GIT hash be61b99; please let me know if this resolves the problems noted.
Comment 10 Slávek Banko 2013-04-24 20:15:22 CDT
(Odpověď na komentář #9)
> (In reply to comment #8)
> > I believe that the observed problem is related to the
> > LockProcess::checkDPMSActive. After activation DPMS screen saver is stopped -
> > it is very good. However, after a preset period of inactivity the screen saver
> > is started again... and then was stopped again due to still active DPMS. And so
> > over and over again.
> 
> Good work tracking this down!  I have committed several fixes to the DPMS
> handling code in GIT hash be61b99; please let me know if this resolves the
> problems noted.

Great, thank you, after activation DPMS screen saver now remains stopped.
Comment 11 Timothy Pearson 2013-04-24 20:56:44 CDT
(In reply to comment #10)
> Great, thank you, after activation DPMS screen saver now remains stopped.

So do the changes then resolve this bug report? :-)
Comment 12 Darrell 2013-04-24 20:59:45 CDT
Probably should wait until Kris (original reporter) tests the changes. :-)
Comment 13 Timothy Pearson 2013-04-24 21:29:42 CDT
(In reply to comment #12)
> Probably should wait until Kris (original reporter) tests the changes. :-)

OK, changing status to NEEDINFO.
Comment 14 Slávek Banko 2013-05-09 18:52:06 CDT
On my test machine now noticing strange anomaly.
In .xsession-errors is repeatedly listed:

QTime::setHMS Invalid time 05:24:60.000

...and screensaver is not activated.

Where should I start researching?
The system time is in order.
Was the leap second?
Comment 15 Slávek Banko 2013-05-09 19:29:52 CDT
Hmm, strange messages with time probably not related. When I tried using Ctrl + Alt + L to lock the screen, screen si successfully locked. And after that screen saver is working properly again.
Comment 16 Timothy Pearson 2013-06-08 02:12:08 CDT
Any progress on this?  Have the observed issues been resolved via the various GIT commits between the last bug report message and now?

Thanks!
Comment 17 Darrell 2013-07-31 20:26:49 CDT
The comments in this bug report awaiting further information or confirmation the patch resolved the problem are more than two months old. Should we close this report?
Comment 18 Timothy Pearson 2013-07-31 22:18:34 CDT
Yes.  The screensaver appears to work properly.