Ubuntu - turn monitor off after 5 minutes when no one is logged in
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
Quote:
Originally Posted by fenrisW0lf
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
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.
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.
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.