Bug 291926

Summary: Screen turns off after exactly 10 minutes, regardless of power settings.
Product: [Unmaintained] solid Reporter: Garth Johnson <garth83>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED NOT A BUG    
Severity: normal CC: sven.burmeister
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: powermanagementprofilesrc
kded4 output

Description Garth Johnson 2012-01-19 07:31:09 UTC
Version:           unspecified (using Devel) 
OS:                Linux

My current power configuration is set to dim the display after 300 minutes, and then switch it off after 360.  Regardless of this, my screen will stubbornly power off after 10 minutes, even during movies.  I have tried many different configurations (e.g. dim after 200 minutes etc.) but all produce the same problem.

Reproducible: Always

Steps to Reproduce:
Set power management settings to anything.  Wait.

Actual Results:  
Screen turns off after 10 minutes.

Expected Results:  
Power settings respected.

Some hardware that I'm using that may be of use...

Asrock g31m-s motherboard
Nvidia gtx 260 graphics card

This bug was also present on an Nvidia 9600 gt card that I used to own.

I would be more than happy to provide any other information needed.
Comment 1 Dario Freddi 2012-01-19 12:00:15 UTC
Thanks for reporting. I need the following things to investigate:

1. Attaching your settings file - if you're using 4.8+, this is .kde/share/config/powermanagementprofilesrc
2. A log of kded4's execution, during which it would help if you plugged and unplugged your power adaptor. Note you need to enable all kdebug output (use kdebugdialog for that) for it to be meaningful.
Comment 2 Garth Johnson 2012-01-19 17:34:32 UTC
Created attachment 68013 [details]
powermanagementprofilesrc

I'm having trouble finding a kded4 log file.
Comment 3 Garth Johnson 2012-01-19 17:35:34 UTC
Also, this is a desktop.
Comment 4 Dario Freddi 2012-01-19 20:44:17 UTC
Unfortunately there is none. You should kill kded4 and run it from the terminal, piping its output to a file.
Comment 5 Garth Johnson 2012-01-19 22:42:29 UTC
Created attachment 68027 [details]
kded4 output
Comment 6 Dario Freddi 2012-01-19 22:51:14 UTC
Thanks for the information. I'll be on those in a few hours and will give you feedback.
Comment 7 Dario Freddi 2012-01-19 22:54:17 UTC
Actually, no - you are experiencing what appears to be a duplicate issue of bug 289760, but with different symptoms. Can you please update your installation to latest master and check again?
Comment 8 Garth Johnson 2012-01-19 23:58:26 UTC
(In reply to comment #7)
> Actually, no - you are experiencing what appears to be a duplicate issue of bug
> 289760, but with different symptoms. Can you please update your installation to
> latest master and check again?

I'm assuming the fix will be included in 4.8 final, or is there a fairly easy way to update to master in Kubuntu 11.10?
Comment 9 Dario Freddi 2012-01-20 00:25:27 UTC
Not that I know of. However yes, talking about released versions it'll be just in 4.8 final and not in any other pre-release
Comment 10 Dario Freddi 2012-01-20 00:25:55 UTC
Marking the bug as NEEDSINFO in the meanwhile
Comment 11 Garth Johnson 2012-01-20 00:41:33 UTC
(In reply to comment #10)
> Marking the bug as NEEDSINFO in the meanwhile

Thanks for your attention so far.  I'll report back here when 4.8 final is released.
Comment 12 Dario Freddi 2012-01-20 12:54:19 UTC
Before 4.8 final, there might be another thing you can do to let me at least verify if you are affected by the faulty behavior described in the other bug. You should do the following:

1. Log kded4 as you did before during all of these steps.
2. take note of the output of xset -q (just the last 3-4 lines, DPMS (Energy Star):, are useful)
3. uncheck "Power management enabled:" in the battery applet
4. take note of the output of xset -q as above
5. check "Power management enabled:" again
6. take note of xset -q

The three values of xset -q and the kded4 run while doing that might give a better insight on what's happening on your system
Comment 13 Garth Johnson 2012-01-20 18:14:54 UTC
New development.  You're gonna want to hit me, but it seems that this whole issue was being caused by nothing other than the screen saver.  I know that in the past that this actually WAS a power issue, as I made sure to disable screen saver before, but alas, it slipped my mind this time.  

This brings up a couple of points, though: 

1. Screen saver is not being inhibited by videos as it should, which I will file a new bug about. 

2. Why do we even need a blank screen, screen saver?  Should this not be replaced by the standby mode in power settings?  It seems to me that it would save alot of confusion to have display power management options also available in the Display and Monitors section of System Settings.

Very sorry for the headache, Dario.
Comment 14 Garth Johnson 2012-01-20 19:24:30 UTC
I filed a wishlist about this here...   https://bugs.kde.org/show_bug.cgi?id=292059
Comment 15 Dario Freddi 2012-01-20 21:04:29 UTC
Doesn't really surprise me tbh, the relationship between screensaver and power management has historically been troubled (and I'd love if screensavers were killed at all), and don't worry, I surely don't want to hit you :)

The good news, though, is that with some changes I've pushed to 4.8 this week (which SHOULD have been included in 4.8 final, but not sure) inhibition also inhibits the screensaver, and for example dragon player implements that (check http://drfav.wordpress.com/2012/01/18/some-news-and-improvements-in-inhibition/ ). Or, if you use the applet, you can uncheck the "enable power management box" and have the same effect. Now, I am quite confident this stuff was in time for 4.8.0, but in case it wasn't, it'll probably be available in 4.8.1.

Thanks for your report!
Comment 16 S. Burmeister 2012-09-18 12:14:20 UTC
For those who still experience this the following might work:

Edit ~/.kde4/share/config/kscreensaverrc and add:

DPMS-dependent=false

in the [ScreenSaver] section.