[SOLVED] Screen goes to sleep after 10 minutes of idle time.

Forums for the KDE Edition
Forum rules
Before you post please read this

[SOLVED] Screen goes to sleep after 10 minutes of idle time.

Postby bwsmith25 on Tue Mar 27, 2012 1:31 am

I recently installed LM 12 KDE, and upgraded via backports to KDE 4.8.1.

Anytime I let my computer sit idle for 10 minutes my monitor goes to sleep, no matter how many times I change the settings in power management, and no matter how many time I change the screensaver options.

Does anyone have a fix to prevent this from happening? It's starting to drive me nuts.

Any help would be greatly appreciated.

Note: If you have instructions on how to fix this problem, please keep in mind that I'm a KDE noob (switching from gnome), and any instructions would need to be in simplified form since I'm not familiar with KDE.
Last edited by bwsmith25 on Tue Mar 27, 2012 7:27 pm, edited 1 time in total.
bwsmith25
Level 1
Level 1
 
Posts: 15
Joined: Mon Jan 17, 2011 3:43 pm

Linux Mint is funded by ads and donations.
 

Re: How to stop screen from going to sleep after 10 minutes?

Postby slider on Tue Mar 27, 2012 3:17 am

Hi bwsmith25

Seems like I can remember fixing this problem before on an LMDE (been quite awhile back) install that is on another HDD.

Take a look at
Code: Select all
man xset
This when set manually only lasts while you are logged in then resets.

I used
Code: Select all
xset s off
to test and after it worked then added that to a start up app. That was Gnome, though you should be able to do the same in KDE.

Or a small shell script in "/etc/init.d?" then updated should work as well to auto-start at boot it seems to me....

S :)
"In the beginning of a change the patriot is a scarce man, brave and hated and scorned. When his cause succeeds the timid join him for then it costs nothing to be a patriot."
Mark Twain
slider
Level 5
Level 5
 
Posts: 567
Joined: Wed May 07, 2008 2:08 pm
Location: Sliding around somewhere!

Re: How to stop screen from going to sleep after 10 minutes?

Postby bwsmith25 on Tue Mar 27, 2012 9:03 am

@slider: How would I add that to a start up app? I'm not familiar with that procedure. Thanks for your help!
bwsmith25
Level 1
Level 1
 
Posts: 15
Joined: Mon Jan 17, 2011 3:43 pm

Re: How to stop screen from going to sleep after 10 minutes?

Postby slider on Tue Mar 27, 2012 12:38 pm

I take it that xset command worked for you as a test?

@slider: How would I add that to a start up app? I'm not familiar with that procedure.
I am a KDE and a Gnome user (when on that type of DE), but the KDE (my main system) that I use is the older "3.5.x" version. Newer KDE may be a bit different (?) and I haven't tried or used it for quite awhile.

Check in "~/.kde/Autostart/" (/home/user-name/.kde/Autostart/) to see if it still exists.

If so create a text file as your regular user (you can name it whatever you like) and paste this in:
Code: Select all
#!/bin/bash
xset s off
Make the file executable (right click > permissions).

If I remember correctly xset works on a per user basis so no root involvement is needed. If I am wrong (far as on your system) let me know and we'll fix that.

Reboot your system and test.

We should be able to do this with a script in "/etc/init.d/" as well, but this is a little more involved and requires root. This would be a global approach with the former being a local one. Try the above first.

Let us know.

S
"In the beginning of a change the patriot is a scarce man, brave and hated and scorned. When his cause succeeds the timid join him for then it costs nothing to be a patriot."
Mark Twain
slider
Level 5
Level 5
 
Posts: 567
Joined: Wed May 07, 2008 2:08 pm
Location: Sliding around somewhere!

Re: How to stop screen from going to sleep after 10 minutes?

Postby bwsmith25 on Tue Mar 27, 2012 7:25 pm

slider wrote:I take it that xset command worked for you as a test?


Yes, the xset command worked as a test.

I am a KDE and a Gnome user (when on that type of DE), but the KDE (my main system) that I use is the older "3.5.x" version. Newer KDE may be a bit different (?) and I haven't tried or used it for quite awhile.

Check in "~/.kde/Autostart/" (/home/user-name/.kde/Autostart/) to see if it still exists.

If so create a text file as your regular user (you can name it whatever you like) and paste this in:
Code: Select all
#!/bin/bash
xset s off
Make the file executable (right click > permissions).

If I remember correctly xset works on a per user basis so no root involvement is needed. If I am wrong (far as on your system) let me know and we'll fix that.

Reboot your system and test.

We should be able to do this with a script in "/etc/init.d/" as well, but this is a little more involved and requires root. This would be a global approach with the former being a local one. Try the above first.

Let us know.

S


I created the text file as you instructed and it fixed the issue! Now my screen doesn't go blank after sitting idle for 10 minutes!

THANK YOU so much for your help!
bwsmith25
Level 1
Level 1
 
Posts: 15
Joined: Mon Jan 17, 2011 3:43 pm


Return to KDE

Who is online

Users browsing this forum: No registered users and 4 guests