LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2009, 09:08 AM   #1
fenrisW0lf
LQ Newbie
 
Registered: Dec 2005
Posts: 16

Rep: Reputation: 0
Ubuntu - turn monitor off after 5 minutes when no one is logged in


Hi all,

When I lock the work station my monitor turns off properly after 30 minutes. When I log out and no one else logs in the monitor turns off after 30 minutes. I suspect that it is controlled by the settings that I use in my account.

I would like to shorten the time to 5 minutes before the monitor is turned off when no one is logged in. Is this possible?

I am running Ubuntu 9.10.

cheers,
Troy
 
Old 11-08-2009, 09:20 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by fenrisW0lf View Post
Hi all,

When I lock the work station my monitor turns off properly after 30 minutes. When I log out and no one else logs in the monitor turns off after 30 minutes. I suspect that it is controlled by the settings that I use in my account.

I would like to shorten the time to 5 minutes before the monitor is turned off when no one is logged in. Is this possible?

I am running Ubuntu 9.10.

cheers,
Troy
That 30 minutes is controlled bij the power management .
30 minutus is the default
 
Old 11-08-2009, 11:15 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
I'm running Kubuntu 8.04 (so KDE 3) and the monitor's power saving settings are set under
System Settings -> Monitor -> Power saving

There must be something similar for gnome, you'll just have to look for it.
 
Old 11-08-2009, 12:01 PM   #4
fenrisW0lf
LQ Newbie
 
Registered: Dec 2005
Posts: 16

Original Poster
Rep: Reputation: 0
I can control the power settings fine (system/preferences/power management) from the desktop. This only seems to be a global setting. If I change it from 30 minutes to 5 minutes. This affects the login screen as well as when I lock the workstation.

What I would like to do is have a separate time to turn off the monitor. One time when I lock the computer (i.e. I am still logged in but have used the lock screen option). I also want another time for when no one is logged into the computer. I would like that time to be 5 minutes.

I was wondering if this was possible? I thought that the power management settings that I alter from my desktop would only affect me. It seems to affect the login screen.

Any ideas would be appreciated. If it isn't possible, or too difficult then that is fine too.

Thanks for the replies!
 
Old 11-08-2009, 01:06 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
I am guessing that the timeout for the login screen will be the same as the timeout selected by the last user to logout. You could create another user, with a different timeout value and test this.

I don't think there's a simple way to achieve what you'd like, but there's always the soucecode available for you to have a look at, see how it works, and either improve on it, or just hack it until it behaves as you'd like.
 
Old 11-09-2009, 05:45 PM   #6
fenrisW0lf
LQ Newbie
 
Registered: Dec 2005
Posts: 16

Original Poster
Rep: Reputation: 0
tredegar, thanks for confirming.

I had suspected as much. I am sure that it wouldn't be as difficult as hacking the code. I think it involves figuring out the user that owns the login session and using xset as that user.

It is probably not difficult, it's probably not apparent .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ubuntu bizarre boot sequence--- Boot hangs unless I turn off monitor Theoldras Linux - Hardware 4 07-13-2009 11:37 AM
LXer: Turn Your Linux Machine into an Application Server in 10 Minutes LXer Syndicated Linux News 0 12-10-2008 07:00 PM
laptop monitor shuts off after a few minutes icepack Mandriva 2 03-19-2006 04:11 PM
monitor switches off after 10 minutes?! joel b Linux - Newbie 2 09-11-2004 06:27 AM
how to monitor who's logged in on apache? _MD_ Linux - Networking 1 04-08-2004 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration