LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2011, 12:19 AM   #1
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Rep: Reputation: 0
Question Inevitable suspend in 10 minutes


Computer suspends in 10 minutes of inactivity no matter if Configure Desktop --> Power Management --> Power Profiles --> Suspend Session is checked or not. No matter what time is set there.
Does anyone have this problem? Is it a bug? I'll hardly need the suspend feature at all.
 
Old 11-24-2011, 01:00 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Check this: http://www.linuxquestions.org/questi...set+kde+screen

jlinkels
 
Old 11-24-2011, 08:49 AM   #3
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
I've read that thread, but I don't have the /etc/X11/Xsession.d. folder. I've got xorg.conf, though.
Where is it better to put the following?
Code:
xset -dpms s off

Last edited by Lixt; 11-26-2011 at 01:02 AM.
 
Old 11-24-2011, 10:02 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Xsession and xorg don't have a relationship in that sense.

First try that command on the command line and see if it resolves your problem.

If it does, you can create the /etc/X11/xsession.d folder, and create a script file which executes the command. Name the script 95dpms-set and the contents is:
Code:
#! /bin/bash
xset -dpms s off
If that doesn't work, you can also put this command xset -dpms s off in /etc/rc.local and it will be run at startup. That is, in many distributions. I don't know how your distro handles this, but it is easy to google.

jlinkels
 
1 members found this post helpful.
Old 11-25-2011, 06:59 AM   #5
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
It seems that this method works, but only one time. After the second 10 minutes period of inactivity computer suspends. A screensaver is set to run in 4 minutes of inactivity. I don't know if it's related.
The counterpart of /etc/rc in openSUSE is possibly /etc/init.d/after.local.
Code:
# /etc/init.d/after.local
#
# script with local commands to be executed from init after all scripts
# of a runlevel have been executed.
#
# Here you should add things, that should happen directly after
# runlevel has been reached.  Common environment
# variables for this are:
#  RUNLEVEL  -- The current system runlevel.
#  PREVLEVEL -- The previous runlevel (useful after a runlevel switch).

Last edited by Lixt; 11-26-2011 at 01:00 AM.
 
Old 11-28-2011, 04:51 AM   #6
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
Finally, I used the following command to change the suspend time to 1 hour.
Code:
xset dpms 3600 3600 3600
It can be placed ether in:
Configure Desktop --> Startup and Shutdown --> Autostart --> Add Programm
or in:
/home/username/.kde4/Autostart/filename
 
Old 12-21-2011, 09:07 PM   #7
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Rep: Reputation: Disabled
Running Debian Squeeze on a Gateway SX-2841.
I thought I would add my experience to this 'solved' thread because the thread did not quite answer my needs. So I explored. Here is what I found ..
Code:
xset -dpms
made no difference. The problem was not solved until I set
Code:
xset s off
This sets the Screen Saver Timeout to 0. It seems that the dpms status was not related. (I do not understand why, but that's what I found.) As for a place to put the command, I chose to add a line to '.bashrc'. That would not be a good solution for someone who runs a long time without ever starting a terminal window. But in my case, I spend most of the time with the terminal up. So it works.
Thanks to everyone for the help solving this nagging issue.

Last edited by LloydRice; 12-21-2011 at 09:17 PM. Reason: I did the [code] brackets wrong.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: BYOD: The inevitable reality LXer Syndicated Linux News 1 10-21-2011 06:30 AM
LXer: ODF: The inevitable format LXer Syndicated Linux News 0 07-26-2007 03:16 PM
What to do when you run into the inevitable problems... kryptobs2000 Linux - Software 14 12-15-2006 10:49 AM
suspend2 to suspend after computer is idle after x minutes frankie_DJ Linux - Software 0 09-17-2006 04:47 PM
LXer: Microsoft Office for Linux 'inevitable' LXer Syndicated Linux News 0 08-18-2006 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration