Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, I work on Ubuntu 9.04 and our application requirement is not to go to power saving mode when application is running. I added ServerFlags section to /etc/X11/xorg.conf Section ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2

    How to avoid power saving mode?

    Hi All,
    I work on Ubuntu 9.04 and our application requirement is not to go to power saving mode when application is running. I added ServerFlags section to /etc/X11/xorg.conf
    Section "ServerFlags"
    Option "blank time" "0"
    Option "standby time" "0"
    Option "suspend time" "0"
    Option "off time" "0"
    EndSection

    This didn't help.
    Then I tried following commands
    gconftool-2 -s /apps/gnome-power-manager/ac_sleep_display --type=int 0
    gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type=bool false

    I see that it works fine only if I change settings via Settings>ScreenSaver>Power Management in gnome. I wan to do this via script. Can I do this? Which file gets updated when I change display settings via Settings>ScreenSaver>Power Management.
    Immediate help would be highly appreciated.

    Thank You

  2. #2
    Just Joined!
    Join Date
    Mar 2008
    Posts
    28
    laxmi_p, try looking into the xset command.

    Maybe this might be your answer.

    Code:
     xset -dpms

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2
    I found the solution !
    When I change settings via Settings>Screensaver>Power Management in gnome, it edits %gconf.xml file under .gnome/apps/gnome-power-manager/timeout for display and computer sleep changes.

    If the above folder doesn't exist we need to create it and then run following commands -

    gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type=bool false
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_ac --type=int 0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_display_ac --type=int 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...