Author Topic: [SOLVED] Screen goes black after ~20mins  (Read 1421 times)

Offline AnotherUser

  • Full Member
  • ***
  • Posts: 92
[SOLVED] Screen goes black after ~20mins
« on: December 10, 2012, 05:35:09 PM »
Hello,

I'm running KDE MiniMe 2012.08 on a Dell Inspiron I5R laptop. It is fully updated in Synaptic and running 3.2.18-pclos2.pae.bfs kernel. Everything works fine except for one annoying behavior. When I watch online streaming video content (presumably using flash), my screen goes blank after about 20 minutes of not touching the keyboard or mouse.

I have checked to make sure that my KDE power savings settings (Configure Your Desktop --> Hardware --> Power Management) are not turning my monitor off in both powered and battery mode. I also made sure that my KDE screensaver is turned off (Configure Your Desktop --> Hardware --> Display and Monitor --> Screen Saver). I have even make sure that my BIOS is up to date. What else can be turning off my screen?
« Last Edit: December 13, 2012, 05:48:19 AM by AnotherUser »

Offline AnotherUser

  • Full Member
  • ***
  • Posts: 92
Re: Screen goes black after ~20mins
« Reply #1 on: December 11, 2012, 04:54:27 PM »
at the risk of bumping this post, I am surprised that no one has chimed in yet. Are there really no suggestions?

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12524
Re: Screen goes black after ~20mins
« Reply #2 on: December 11, 2012, 05:38:12 PM »
open a konsole terminal and type xset -dpms and see if that works or not.


Thanks to everyone who donates. You keep the servers running.

Offline AnotherUser

  • Full Member
  • ***
  • Posts: 92
Re: Screen goes black after ~20mins
« Reply #3 on: December 13, 2012, 05:48:03 AM »
open a konsole terminal and type xset -dpms and see if that works or not.


Wow - a word of wisdom from Texstar himself! I have to admit it, you were right on the money.

For the sake of betterment of the community, here's what this all means (based on my newly found knowledge mostly driven by http://www.shallowsky.com/linux/x-screen-blanking.html). Apparently, some power settings and screensaver settings are driven by X, rather than any application (i.e. KDE) running on top of X. To find out what those settings are currently set for, all I did was run xset -q and found that Display Power Management Signalin, better known as DPMS, was indeed enabled. Running the command xset -dpms turns off DPMS. Running xset +dpms turns it back on. And indeed, when I turn off DPMS on my system, then my screen no longer goes blank when I watch online content.

P.S. Interestingly enough, DPMS settings appear to be automatically re-enabled whenever power is applied/removed to the laptop.

Offline Nish

  • Sr. Member
  • ****
  • Posts: 384
    • SMQ's Adventures in Linux
Re: [SOLVED] Screen goes black after ~20mins
« Reply #4 on: December 13, 2012, 07:34:31 AM »
I developed the same problem after the last big KDE update.  I have a desktop and use Caffeine to stop my screensaver (which it did and was still doing) but something else is blacking out the screen when I was watching streaming content too.  My desktop is my TV, I don't have cable TV so I do a lot watching streaming content.  After checking all the power save settings I gave up and just put my mouse on the sofa cushion next to me so every any little shift of my body would move the cursor

Going to give this a try, a lot easier. ;)
Never borrow time.  The interest will kill you - signed Mastercard & Visa

Embrace the Bird.  http://www.smqlinux.com - an old lady's adventures in linuxdom

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1916
  • Certified Windows Hater
Re: [SOLVED] Screen goes black after ~20mins
« Reply #5 on: December 13, 2012, 08:18:03 AM »
Also check if you have kde4-noblank installed...
For the whole world, you are someone.
For someone, you are the whole world.

Offline AnotherUser

  • Full Member
  • ***
  • Posts: 92
Re: [SOLVED] Screen goes black after ~20mins
« Reply #6 on: December 13, 2012, 04:51:04 PM »
Also check if you have kde4-noblank installed...
Just checked - kde4-noblank is installed

Offline Nish

  • Sr. Member
  • ****
  • Posts: 384
    • SMQ's Adventures in Linux
Re: [SOLVED] Screen goes black after ~20mins
« Reply #7 on: December 13, 2012, 06:54:54 PM »
well, xset -dpms works for me but only until the next boot, then has to be reset too on this desktop.  I checked and do not have kde4-noblank installed.  Can try it but would would also like to  find a way to have dpms shut off for good
Never borrow time.  The interest will kill you - signed Mastercard & Visa

Embrace the Bird.  http://www.smqlinux.com - an old lady's adventures in linuxdom

Offline AnotherUser

  • Full Member
  • ***
  • Posts: 92
Re: [SOLVED] Screen goes black after ~20mins
« Reply #8 on: December 13, 2012, 06:58:02 PM »
well, xset -dpms works for me but only until the next boot ...

I think this is understandable. There is something in power up, power down, power plug-in, power unplug which resets the setting back to DPMS=on. One thing you can do is create a simple shell script with "xset -dpms" and place it in the autostart directory.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10667
  • MLUs Forever!
Re: [SOLVED] Screen goes black after ~20mins
« Reply #9 on: December 13, 2012, 07:33:03 PM »
Make a backup of the /home/user/.kde4/Autostart/noblank.sh  file

Edit it to have the following as contents


Code: [Select]
#!/bin/sh

xset s noexpose
xset s noblank
xset s 0 0

xset s off
xset dpms 0 0 0
xset -dpms

See if that helps.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12524
Re: [SOLVED] Screen goes black after ~20mins
« Reply #10 on: December 13, 2012, 09:37:37 PM »
well, xset -dpms works for me but only until the next boot, then has to be reset too on this desktop.  I checked and do not have kde4-noblank installed.  Can try it but would would also like to  find a way to have dpms shut off for good

The xset -dpms was just to test if that was the reason for the original posters problem. To turn it off for good, try to edit as root /etc/X11/xorg.conf and change the DPMS line to false and reboot.

Section "Device"
    Identifier "device1"
    VendorName "ATI Technologies Inc"
    BoardName "ATI Radeon HD 2000 and later (radeon/fglrx)"
    Driver "fglrx"
    Option "DPMS" "false"
EndSection


Thanks to everyone who donates. You keep the servers running.

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: [SOLVED] Screen goes black after ~20mins
« Reply #11 on: December 14, 2012, 12:46:22 AM »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Nish

  • Sr. Member
  • ****
  • Posts: 384
    • SMQ's Adventures in Linux
Re: [SOLVED] Screen goes black after ~20mins
« Reply #12 on: December 14, 2012, 02:16:57 PM »
well, xset -dpms works for me but only until the next boot, then has to be reset too on this desktop.  I checked and do not have kde4-noblank installed.  Can try it but would would also like to  find a way to have dpms shut off for good

The xset -dpms was just to test if that was the reason for the original posters problem. To turn it off for good, try to edit as root /etc/X11/xorg.conf and change the DPMS line to false and reboot.

Section "Device"
    Identifier "device1"
    VendorName "ATI Technologies Inc"
    BoardName "ATI Radeon HD 2000 and later (radeon/fglrx)"
    Driver "fglrx"
    Option "DPMS" "false"
EndSection

Thank you, Texstar - mine was a little different but I got the idea.

Section "Device"
    Identifier "device1"
    VendorName "nVidia Corporation"
    BoardName "NVIDIA GeForce 6100 to GeForce 360"
    Driver "nvidia"
    Option "DPMS" "false"
    Option "DynamicTwinView" "false"
    Option "AddARGBGLXVisuals"
EndSection

PS - I will perhaps shortly be asking a really stupid question about updating nowadays.  Please be gentle - I had a bad accident and was very hurt and now unemployed (IOW I am a pathetic Train Wreck, take pity on me if I have not been following the latest in PCLinuxOS and my forum searching skills suck moose).  Perhaps OP will come to my damsel in distressness I was intently watching for his return  :-*

Thanks again
Never borrow time.  The interest will kill you - signed Mastercard & Visa

Embrace the Bird.  http://www.smqlinux.com - an old lady's adventures in linuxdom

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1521
    • PCLinuxOS.nl
Re: [SOLVED] Screen goes black after ~20mins
« Reply #13 on: January 26, 2013, 04:37:26 AM »
To find another (for me) working solution as on:
http://www.pclinuxos.com/forum/index.php/topic,112662.msg961812.html#msg961812

my /home/[user]/.kde4/Autostart/noblank.sh

#!/bin/sh
xset s 0 0
xset dpms 0 0 0

Just for you to check and possible add to the WiKi ;)