Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: DPMS (Power Mgmt Sys) is Not Working

  1. #1
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,285
    Distro
    Kubuntu

    DPMS (Power Mgmt Sys) is Not Working

    I have a 6-year old laptop with an ATI Radeon video chip-set, which I believe is the X1100 (maybe X1300). The only information I have about it is the following:
    Code:
    ATI Technologies Inc Radeon RV250 [Mobility FireGL 9000] (rev 01)
    A few weeks ago, the DPMS (or something related) stopped working, possibly due to an Ubuntu 9.10 update. The external monitor I use is no longer placed in it's "sleep" mode after a certain period of inactivity.

    Can someone please point me in a direction where I can sort this issue out? I want to stop wasting power, and hence money, when the monitor (and my system) are not in use.

    This is my xorg.conf file, which IMO is not very helpful:
    Code:
    Section "Monitor"
            Identifier      "Configured Monitor"
            Option          "DPMS" "true"
    EndSection
    
    Section "Screen"
            Identifier      "Default Screen"
            Monitor         "Configured Monitor"
            Device          "Configured Video Device"
            SubSection "Display"
                    Virtual 2560 800
            EndSubSection
    EndSection
    
    Section "Device"
            Identifier      "Configured Video Device"
    EndSection
    The current "xset -q" results are:
    Code:
    Keyboard Control:
      auto repeat:  on    key click percent:  0    LED mask:  00000000
      auto repeat delay:  660    repeat rate:  25
      auto repeating keys:  00ffffffdffffbbf
                            fadfffefffedffff
                            9fffffffffffffff
                            fff7ffffffffffff
      bell percent:  0    bell pitch:  400    bell duration:  100
    Pointer Control:
      acceleration:  2/1    threshold:  4
    Screen Saver:
      prefer blanking:  yes    allow exposures:  yes
      timeout:  0    cycle:  0
    Colors:
      default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
    Font Path:
      /usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins
    DPMS (Energy Star):
      Standby: 0    Suspend: 0    Off: 0
      DPMS is Enabled
      Monitor is On
    I have edited the screensaver and power management options via the Gnome utility to be enabled 5 minutes after no user activity is detected. The screensaver works, however the monitor remains on. These settings do not seem to be listed in the "xset -q" results above; can anyone explain this?

    P.S. The monitor is an Acer LCD X203H which supports DPMS.

  2. #2
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,285
    Distro
    Kubuntu

    Re: DPMS (Power Mgmt Sys) is Not Working

    <bump>

    Does anyone have any ideas/suggestions to resolve, or even investigate this issue I reported a week ago?

    My external monitor is placed into standby-mode when I log out of my account, but it will not enter this mode when I am logged in.

    Is it possible that my personal power-management configuration is different from the system's? Where are these config settings stored??

  3. #3
    Join Date
    Aug 2006
    Beans
    156
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DPMS (Power Mgmt Sys) is Not Working

    You might get a better response in the general support forums as this is above the level of normal support needed in Absolute Beginners.

  4. #4
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,285
    Distro
    Kubuntu

    Re: DPMS (Power Mgmt Sys) is Not Working

    I finally came up with the correct Google search words, and found a link that offered sane advice on how to enable the DPMS. Basically, it boils down to the following:
    Code:
    xset +dpms            # enable DPMS
    xset dpms 0 0 300     # 5 minute timeout
    I ran both of these commands as root and it worked like a charm; thus I decided to place them in a script (within /usr/local/bin), so that it can be called via /etc/rc.local each time the system is rebooted.

  5. #5
    Join Date
    Oct 2010
    Location
    Canada
    Beans
    48
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: DPMS (Power Mgmt Sys) is Not Working

    Quote Originally Posted by dwhitney67 View Post
    I finally came up with the correct Google search words, and found a link that offered sane advice on how to enable the DPMS. Basically, it boils down to the following:
    Code:
    xset +dpms            # enable DPMS
    xset dpms 0 0 300     # 5 minute timeout
    I ran both of these commands as root and it worked like a charm; thus I decided to place them in a script (within /usr/local/bin), so that it can be called via /etc/rc.local each time the system is rebooted.
    Hi,

    I'm having the same problem you were having. I've gone ahead and ran

    Code:
    xset dpms 0 0 1800    # I wanted a 30 minute delay before screen powers off
    as root. How do I set the computer up so that the setting is maintained after reboot? I'm a total linux n00b so I don't know how to make a script.

    Also, why doesn't Ubuntu just do what I asked it to do in System->Preferences->Power Management??

  6. #6
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,285
    Distro
    Kubuntu

    Re: DPMS (Power Mgmt Sys) is Not Working

    Since I last posted on this thread, I have found that part of the solution that I wrote about did not work as I would have hoped.

    I did finally find a good solution, but I forgot to come back to this thread.

    Here's what I did...

    Step 1: Create a shell-script called /usr/local/bin/enable_dpms.
    Code:
    sudo vi /usr/local/bin/enable_dpms
    The script contains the following:
    Code:
    #!/bin/bash
    
    sleep 20        # arbitrary delay to allow Gnome (ie Power Mgr) to fully start up.
    
    if [ "$DISPLAY" != "" ]
    then
            timeout=`xset -q | grep Off | awk '{print $6}'`
    
            while [ $timeout -eq 0 ]
            do
                    xset -display $DISPLAY +dpms            # enable DPMS
                    xset -display $DISPLAY dpms 0 0 300     # turn off display after 5 minutes of idling
    
                    if [ $? -eq 0 ]
                    then
                            break
                    else
                            sleep 10
                    fi
            done
    fi
    After the file has been saved, exit the editor, and then set the appropriate permissions:
    Code:
    sudo chmod 755 /usr/local/bin/enable_dpms
    Step 2: Enable a start up program under Gnome. Here's how...
    Code:
    a) Choose System->Preferences->Startup Applications
    
    b) Select Add
    
    c) Complete the fields in the dialog box; for the Name, enter Enable DPMS; for the command, enter /usr/local/bin/enable_dpms.  Insert a comment if you wish.
    Step 3: Logout of Gnome.

    Step 4: Log back in.

    Voilà!


    P.S. The script probably could be written better. I was not seeking a Pulitzer, thus the mere fact that it works is good enough for me.
    Last edited by dwhitney67; November 11th, 2010 at 02:21 AM.

  7. #7
    Join Date
    Dec 2010
    Beans
    4

    Re: DPMS (Power Mgmt Sys) is Not Working

    thanks for putting that script together. However I believe you left out a timeout variable set in while which will create an infinite loop. Here's my corrected version, pardon the style change.

    #!/bin/bash

    sleep 20 # arbitrary delay to allow Gnome (ie Power Mgr) to fully start up.

    if [ "$DISPLAY" = "" ]; then exit 1
    fi

    timeout=`xset -q | grep Off | awk '{print $6}'`

    while [ $timeout -eq 0 ]; do

    xset -display $DISPLAY +dpms # enable DPMS
    xset -display $DISPLAY dpms 0 0 300 # turn off display after 5 minutes of idling

    if [ $? -eq 0 ]; then break
    else sleep 10
    fi

    timeout=`xset -q | grep Off | awk '{print $6}'`
    done

    i tried it on this laptop Dell Inspiron B130 running ubuntu 10.10 and it works. I wonder what the real problem is since I don't see this issue on my newer Asus laptop.

  8. #8
    Join Date
    Mar 2011
    Beans
    1

    Re: DPMS (Power Mgmt Sys) is Not Working

    Quote Originally Posted by Mark124 View Post
    thanks for putting that script together. However I believe you left out a timeout variable set in while which will create an infinite loop. Here's my corrected version, pardon the style change.

    #!/bin/bash

    sleep 20 # arbitrary delay to allow Gnome (ie Power Mgr) to fully start up.

    if [ "$DISPLAY" = "" ]; then exit 1
    fi

    timeout=`xset -q | grep Off | awk '{print $6}'`

    while [ $timeout -eq 0 ]; do

    xset -display $DISPLAY +dpms # enable DPMS
    xset -display $DISPLAY dpms 0 0 300 # turn off display after 5 minutes of idling

    if [ $? -eq 0 ]; then break
    else sleep 10
    fi

    timeout=`xset -q | grep Off | awk '{print $6}'`
    done

    i tried it on this laptop Dell Inspiron B130 running ubuntu 10.10 and it works. I wonder what the real problem is since I don't see this issue on my newer Asus laptop.
    This worked excellent for me. THanks!!

  9. #9
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,285
    Distro
    Kubuntu

    Re: DPMS (Power Mgmt Sys) is Not Working

    Quote Originally Posted by Mark124 View Post
    thanks for putting that script together. However I believe you left out a timeout variable set in while which will create an infinite loop.
    The intent was to have an repeating loop, with a 10-second period of sleep between iterations. The loop would have exited when the xset -display command was successful. Reseting the timeout variable, as you have done, was not necessary.

    P.S. Something like this would have been better:
    Code:
    ...
    
    if [ $timeout -eq 0 ]
    then
            while [ true ]
            do
                    ...
            done
    fi
    Last edited by dwhitney67; March 19th, 2011 at 05:29 PM.

  10. #10
    Join Date
    Sep 2007
    Beans
    3

    Re: DPMS (Power Mgmt Sys) is Not Working

    [Post deleted. My solution was ineffective.]
    Last edited by dalban; March 5th, 2012 at 10:31 AM. Reason: Ineffective suggestion.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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