You are not logged in.

#1 2009-07-28 10:15:09

euLinux
Member
From: Italy
Registered: 2009-07-17
Posts: 18

[SOLVED] gnome-power-manager ignores dpms_method_ac

There's no way (it seems hmm) to make gnome-power-manager 2.26.3-1 to work fine...
i'd like to put my monitor in standby after a while instead of simply blank and so i set dpms_method_ac  in gconf accordingly... but with no success... sad

i don't know where to find a solution...

my laptop is a HP pavillion dv5 1210el and thisi is my actual xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Wed May 27 03:15:36 PDT 2009

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Synaptics Touchpad" "SendCoreEvents"
    InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "InputDevice"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "Auto"
    Option "ZAxisMapping" "4 5"
    Identifier "USB Mouse"
    Driver "mouse"
    Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
    Identifier "Synaptics Touchpad"
    Driver "synaptics"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "SHMconfig" "on"
    Option      "LeftEdge"          "1700"  # x coord left
     Option      "RightEdge"         "5300"  # x coord right
       Option      "TopEdge"           "1700"  # y coord top
       Option      "BottomEdge"        "4200"  # y coord bottom
       Option      "FingerLow"         "25"    # pressure below this level triggers release
       Option      "FingerHigh"        "30"    # pressure above this level triggers touch
       Option      "MaxTapTime"        "180"   # max time in ms for detecting tap
       Option      "VertEdgeScroll"    "true"  # enable vertical scroll zone
       Option      "HorizEdgeScroll"   "true"  # enable horizontal scroll zone
       Option      "CornerCoasting"    "true"  # enable continuous scroll with finger in corner
       Option      "CoastingSpeed"     "0.30"  # corner coasting speed
       Option      "VertScrollDelta"   "100"   # edge-to-edge scroll distance of the vertical scroll
       Option      "HorizScrollDelta"  "100"   # edge-to-edge scroll distance of the horizontal scroll
    Option      "AccelFactor"       "0.0020"    # acceleration factor for normal pointer movements
       Option      "VertTwoFingerScroll"   "true"  # vertical scroll anywhere with two fingers
       Option      "HorizTwoFingerScroll"  "true"  # horizontal scroll anywhere with two fingers
       Option      "EmulateTwoFingerMinZ"  "120"    # this may vary between different machines
       Option      "TapButton1" "1"
       Option      "TapButton2" "2"
       Option      "TapButton3" "3"
EndSection

Section "InputDevice"
        Identifier     "Keyboard0"
        Driver         "kbd"
        Option         "XkbModel" "hpdv5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "Unknown"
        HorizSync       28.0 - 33.0
        VertRefresh     43.0 - 72.0
 EndSection

Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        Option         "RenderAccel" "true"
        Option         "DamageEvents" "True"
        Option         "NoLogo" "true"
      Option         "AddARGBGLXVisuals" "True"
    Option         "DisableGLXRootClipping" "True"
        Option         "OnDemandVBlankInterrupts" "True"
        Option         "RegistryDwords""PowerMizerEnable=0x1; PerfLevelSrc=0x2233; PowerMizerDefault=0x3"
        Option         "BackingStore" "True"
        Option         "TripleBuffer" "True"
        Option         "DPMS" "true"
EndSection

Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        SubSection     "Display"
            Depth       24
        EndSubSection
EndSection

Section "Module"
    Load "glx"
    Load "synaptics"
EndSection

thanx!

Last edited by euLinux (2009-07-29 07:02:14)

Offline

#2 2009-07-28 10:56:21

miau
Member
Registered: 2009-05-06
Posts: 202

Re: [SOLVED] gnome-power-manager ignores dpms_method_ac

I think the DPMS Option has to be put in the Monitor Section not the Device Section. You can also put the blanking option including the dpms settings in your Xorg.conf in the ServerLayout Section.

Last edited by miau (2009-07-28 10:56:37)

Offline

#3 2009-07-28 22:00:31

euLinux
Member
From: Italy
Registered: 2009-07-17
Posts: 18

Re: [SOLVED] gnome-power-manager ignores dpms_method_ac

hi miau!
i changed my xorg.conf to match your suggestions... Option "DPMS" "true" moved in Monitor section and blanking and dpms settings in ServerLayout:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Synaptics Touchpad" "SendCoreEvents"
    InputDevice    "USB Mouse" "CorePointer"
    Option "BlankTime" "0"
    Option "StandbyTime" "10"
    Option "SuspendTime" "15"
    Option "OffTime" "20"
EndSection

i guess you suggested me to do this way, isn't it?
unfortunately it still doesn't work!

it seems that after login gnome-power-manager resets all the settings about dpms in xorg.conf... every section i put them in...
this is part of the output of xset q just after login:

Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
  /usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/TTF,/usr/share/fonts/Type1,built-ins
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

any other idea?
thanx

Offline

#4 2009-07-29 00:32:08

miau
Member
Registered: 2009-05-06
Posts: 202

Re: [SOLVED] gnome-power-manager ignores dpms_method_ac

I can't come up with a soltuion right now, because i'm not using gnome-power-manager. Does DPMS work for you(You can test it in a shell with this command

 sleep 1 && xset dpms force off

. What happens if you set the values manually with xset after you logged into gnome?

Last edited by miau (2009-07-29 00:32:49)

Offline

#5 2009-07-29 07:01:00

euLinux
Member
From: Italy
Registered: 2009-07-17
Posts: 18

Re: [SOLVED] gnome-power-manager ignores dpms_method_ac

maybe i omitted something important... i didn't installed gnome-screensaver and probably gnome-power-manager needs it to work well...
now it's all ok: gnome-screensaver blanks the monitor and gnome-power-manager turn it off...

thank you, miau, for your help! big_smile

just for answering to your question... i could set dpms options manually and turn off the monitor, but once timeout had past gnome-power-manager turned backlights on again...

Offline

#6 2009-07-29 07:29:25

miau
Member
Registered: 2009-05-06
Posts: 202

Re: [SOLVED] gnome-power-manager ignores dpms_method_ac

Ah...nice to hear, that it is finally working :-)

Offline

Board footer

Powered by FluxBB