LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing GNOME Power Manager Settings from the command line (http://www.linuxquestions.org/questions/linux-general-1/changing-gnome-power-manager-settings-from-the-command-line-887473/)

KonfuseKitty 06-21-2011 02:04 AM

Changing GNOME Power Manager Settings from the command line
 
On my Ubuntu 10.10 system I have the computer set to sleep after 1 hour of inactivity. I set this with the GUI Gnome Power Manager preference panel.

I want to create a bash script to alter the setting to Never, do some lengthy processing overnight (Blender rendering), then when the processing is done, set the preference back to "sleep after 1 hour of inactivity".

Bash commands gnome-power-manager and gnome-power-preferences offer no settable options, and my searches for an alternative have come up blank.

How can I get this done?

16pide 06-21-2011 04:01 AM

Quote:

Originally Posted by KonfuseKitty (Post 4391444)
do some lengthy processing overnight (Blender rendering)

Is your PC going asleep in the middle of the rendering process?

KonfuseKitty 06-21-2011 07:19 AM

Yes, it is. Aparently inactivity is defined as no mouse and keyboard action, not taking account of CPU activity. That's why I need to change the setting before and after the rendering.


All times are GMT -5. The time now is 11:18 PM.