[Gnome 3] gnome-power-manager suspend timeout

When I set "System Settings > Power > Put the computer to sleep when inactive" to 5 min. Nothing ever happens.
I have searched and looked in dconf-editor but been unable to discover anything useful.
edit; just changed the title think it is better in this case (:
edit
Just changed the titel again it was more sane the first time around...
Still broked as of gnome-power-manager 3.0.2-1, patch still good...
Last edited by cell (2011-05-31 21:18:13)

I found this https://bugzilla.redhat.com/show_bug.cgi?id=675005 nonbug so...but any chance this is a matter of privileges when it comes to power settings?
I am running gnome 3 on my desktop never had any problems with suspend before. I did create a new user and deleted the old user before installing gnome 3, so maybe I missed something in that process.
Taking a look at the power settings on my netbook with gnome 2.32.1 they sure did slim down them settings.
This is the output if I run gnome-control-center -
libnm-glib.so.4: cannot open shared object file: No such file or directory
Failed to load module: /usr/lib/control-center-1/panels/libnetwork.so
Error getting primary device: GDBus.Error:org.gnome.PowerManager.Failed: There is no primary device to reflect system state (don't show any UI)
If I press the suspend button from the user menu I suspend just fine btw so thats a bit weird.

Similar Messages

  • Gnome-power-management: /etc/group question

    gnome-power-management suspending works great for me as root , but not as unprivileged user:
    # groups
    root bin daemon sys adm disk wheel log
    # su print
    $ groups
    wheel video audio power noah thinkpad
    Wondering why this is?  (pm-suspend works as unprivileged user)
    TIA,
    print

    well, have a look at error messages (users.log, errors.log, messages.log, pm-suspend.log, ecc...). Did you log out after adding the "power" group to your user?

  • Gnome-power-manager 2.26 does not suspend on idle

    I got a problem with gnome-power-manager 2.26 (several Versions 2.26.0 2.26.1 2.26.2 (original PKGBUILD)). I can suspend from the applet menu. It does hibernate on critical bat level, but i does not suspend on idle, regardless what timeout values I set in screensaver and gnome-power-manager. Display sleep seems to work though. First I thought, this might be only an issue on my particular notebook, as I could not find anything on google about this, but it is the same behavior on my freshly installed desktop system.
    gnome-power-manager --verbose outputs nothing about going to standby.
    I built gnome-power-manager and gnome-screensaver from 2.24 and they do work porperly, except the notebook will not hibernating on crit bat level.
    Hardware:
    Notebook: HP Pavilion dv3550eg (centrino2 - Nvidia 9300M GS)
    Desktop: GB AMD 790XT, Phenom 720, Nvidia GTX 260
    Software:
    Arch64
    Might this be an Policy issue? Nevertheless if anyone out there has has this problem, let me know and i am goning to file a bug report.

    uwinkelvos wrote:I filed a bugrepoert about this: http://bugs.archlinux.org/task/15038
    anyone willing and able to have a look at the sources is welcome... i just do not have the skills and tools to get to the right conclusion.
    is a well know upstream problem. you should have been fill/comment on bugzilla bugtracker because is not archlinux fault.
    http://bugzilla.gnome.org/buglist.cgi?q … r-manager+
    http://blogs.gnome.org/hughsie/2009/05/ … tableness/

  • Pm-suspend quirks works - not gnome power manager

    I installed Arch on my Thinkpad R61 once before, but the suspend 2 ram stuff didn't work. Well, I installed again with the goal of figuring it out, and I did. If I add the line
    DISPLAY_QUIRK_S3_BIOS="true"
    to /etc/pm/config.d/config
    Then type sudo pm-suspend in the console and my computer gracefully goes to sleep and wakes up exactly how it should. However if I try to make my computer sleep through any other method, such as closing the lid or pressing the sleep button (Fn+F4) or using the gnome power icon, I just get the screen saver login window and when I return to the main desktop I see "Sleep Problem' popup from the gnome power icon. I'm wondering if there is another file I need to configure to make it all work. I'm really close and this is the last issue I have to solve to have a perfectly working arch install on my laptop, which would make me happy!

    same problem here..
    Acer 5920G T7300, Nvidia 8600GT, Intel 3945abg wifi card..running standard 2.6.25-ARCH from testing
    if I call "sudo pm-suspend" from the console, it works without problems
    if I try to suspend from the gnome-power-manager icon, it get me to the screen saver, and the "Sleep Problem" message popups.
    I have only installed pm-utils, and made the "resume=/path/to/swap" modify in grub's menu.lst .. no other configs or modifications made by me..
    edit I've just tried hibernate (sudo pm-hibernate) and it works fine too.. obviously it doesn't work by the gnome-power-manager icon.
    Last edited by Berseker (2008-05-13 11:30:52)

  • SOLVE strange problem with suspend and resume with gnome-power-manager

    I have pm-utils and gnome installed.
    Suspending and hibernation works well from the command line ($ pm-hibernate and $ pm-suspend).  Resuming works without any problems.
    Suspending from gnome "Shutdown dialog" works perfectly as well.
    However, if suspending is initiated by gnome-power-manager something strange happens:  After pressing the power button resuming switches to hibernation and my laptop turns off.  Resuming from disk works fine again.
    Now, suspending works fine again if I change and save any config file in /etc/pm/.
    Here comes the strange thing:  It doesn't really matter what I change as long as I save it.
    However, as soon as I reboot resuming fails again the way I described above.
    Anyone have a clue what's going on?
    I get no error messages and I've tried all sorts of boot entries.
    Last edited by mehldutt (2007-12-26 19:42:31)

    After some try and error my guess is that "HAL" is responsible for this problem:
    I deinstalled ACPID and 'pm-utils' and switched to 'uswsusp'.
    I made the appropriate changes to the appropriate hal-scrips
    usr/lib/hal/scripts/hal-system-power-suspend:
    #!/bin/sh
    /sbin/s2ram --force
    usr/lib/hal/scripts/hal-system-power-hibernate:
    #!/bin/sh
    /sbin/s2disk
    After these changes I still have the same problem:  immidiatly after resuming form suspend (via power-button) my laptop hibernates (s2disk).
    However, if I delete all entries in "usr/lib/hal/scripts/hal-system-power-hibernate" resuming from suspend works fine again, but hibernate doesn't of course.  So, some script must be calling "usr/lib/hal/scripts/hal-system-power-hibernate" emmediatly after resuming from suspend.
    A couple of weeks ago everything worked fine.  My guess is that one of the recent hal-updates is causing this.
    How can I figure what script is calling "usr/lib/hal/scripts/hal-system-power-hibernate" after resuming from suspend?

  • [SOLVED] gnome-power-manager ignores dpms_method_ac

    There's no way (it seems ) 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...
    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)

    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

  • [Solved] Systemd - Overrides settings of Gnome-Power-Manager?

    Hello!
    I've always used the following to lines to tell Gnome-Power-Manager not to suspend my laptop, when the lid is closed:
    org.gnome.settings-daemon.plugins.power lid-close-ac-action 'blank'
    org.gnome.settings-daemon.plugins.power lid-close-battery-action 'blank'
    I remember a huge (and regular...) discussion around Gnome 3, because the developers resisted to re-implemented a button for this in the UI of Gnome3. Well, the two lines above done their job all the time. Since the last update of Systemd this seems to be ignored:
    Oct 09 01:19:58 cupcake systemd-logind[273]: Lid closed.
    Oct 09 01:19:58 cupcake systemd-logind[273]: Suspending...
    Oct 09 01:19:58 cupcake systemd[1]: Starting Sleep.
    Oct 09 01:19:58 cupcake systemd[1]: Reached target Sleep.
    Oct 09 01:19:58 cupcake systemd[1]: Starting Suspend...
    Is anyone other affected? Looks like a real problem for me. If I close the lid I want to close my lid, nothing more an especially not suspend
    /var/log/pacman.log
    [2012-10-08 21:59] upgraded systemd (193-1 -> 194-1)
    [2012-10-08 21:59] upgraded systemd-sysvcompat (193-1 -> 194-1)
    Last edited by hoschi (2012-10-08 23:53:06)

    pablox wrote:
    hoschi wrote:
    Nope. Found it five minutes ago. My shame! Thank you
    https://wiki.archlinux.org/index.php/Sy … th_systemd
    This is driving me crazy. I've read the article, but I still don't understand what I'm supposed to do. I have tried changing values from logind.conf *IgnoreInhibited to yes to no, but the laptop still suspend when the lid is closed .
    All you need to do is set HandleLidSwitch=ignore in logind.conf, this will make systemd ignore the lid switch completely, and leave gnome to handle it. Its pretty self explanatory... You can also set the other similar options to ignore, like HandlePowerKey, HandleSuspendKey, HandleHibernateKey if you want only gnome to handle them.
    Last edited by bwat47 (2012-10-10 22:02:54)

  • Gnome-power-manager with networkmanager_sleep option

    I have a wireless device using the ipw2200 module. I have always found it extremely annoying that gnome-power-manager asks NetworkManager to sleep before suspending, since, first of all, the ipw2200 module doesn't need to be unloaded and, secondly, because I always have to wait the extra few seconds it takes for NM to send the dhcp request after resuming. I made a patch that adds an option to turn the NM-sleep call on or off via a gconf entry (networkmanager_sleep). The patch has been accepted upstream and included in CVS. However, I've made a patch that applies cleanly to gnome-power-manager 2.16.1 as well. Here it is:
    diff -Naur gnome-power-manager-2.16.1/data/gnome-power-manager.schemas.in gnome-power-manager-2.16.1-new/data/gnome-power-manager.schemas.in
    --- gnome-power-manager-2.16.1/data/gnome-power-manager.schemas.in 2006-07-30 14:51:52.000000000 +0200
    +++ gnome-power-manager-2.16.1-new/data/gnome-power-manager.schemas.in 2006-10-05 11:56:10.000000000 +0200
    @@ -571,6 +571,17 @@
    <long>This is the laptop panel screen brightness used when the session is idle. Only valid when use_time_for_policy is true.</long>
    </locale>
    </schema>
    + <schema>
    + <key>/schemas/apps/gnome-power-manager/networkmanager_sleep</key>
    + <applyto>/apps/gnome-power-manager/networkmanager_sleep</applyto>
    + <owner>gnome-power-manager</owner>
    + <type>bool</type>
    + <default>true</default>
    + <locale>
    + <short>If Networkmanager should disconnect.</short>
    + <long>Chooses whether Networkmanager should disconnect from the network before suspending.</long>
    + </locale>
    + </schema>
    </schemalist>
    </gconfschemafile>
    diff -Naur gnome-power-manager-2.16.1/src/gpm-manager.c gnome-power-manager-2.16.1-new/src/gpm-manager.c
    --- gnome-power-manager-2.16.1/src/gpm-manager.c 2006-09-17 22:33:51.000000000 +0200
    +++ gnome-power-manager-2.16.1-new/src/gpm-manager.c 2006-10-05 12:03:22.000000000 +0200
    @@ -1172,6 +1172,7 @@
    gboolean allowed;
    gboolean ret;
    gboolean do_lock;
    + gboolean nm_sleep;
    gpm_manager_allowed_hibernate (manager, &allowed, NULL);
    @@ -1190,7 +1191,12 @@
    gpm_screensaver_lock (manager->priv->screensaver);
    - gpm_networkmanager_sleep ();
    + nm_sleep = gconf_client_get_bool (manager->priv->gconf_client,
    + GPM_PREF_NETWORKMANAGER_SLEEP, NULL);
    + if (nm_sleep) {
    + gpm_networkmanager_sleep ();
    + }
    +
    ret = gpm_hal_hibernate (manager->priv->hal);
    manager_explain_reason (manager, GPM_GRAPH_EVENT_RESUME,
    @@ -1230,7 +1236,12 @@
    if (do_lock) {
    gpm_screensaver_poke (manager->priv->screensaver);
    - gpm_networkmanager_wake ();
    + nm_sleep = gconf_client_get_bool (manager->priv->gconf_client,
    + GPM_PREF_NETWORKMANAGER_SLEEP, NULL);
    + if (nm_sleep) {
    + gpm_networkmanager_wake ();
    + }
    +
    sync_dpms_policy (manager);
    @@ -1257,6 +1268,7 @@
    gboolean allowed;
    gboolean ret;
    gboolean do_lock;
    + gboolean nm_sleep;
    GpmPowerStatus status;
    char *message;
    int charge_before_suspend;
    @@ -1279,7 +1291,12 @@
    gpm_screensaver_lock (manager->priv->screensaver);
    - gpm_networkmanager_sleep ();
    + nm_sleep = gconf_client_get_bool (manager->priv->gconf_client,
    + GPM_PREF_NETWORKMANAGER_SLEEP, NULL);
    + if (nm_sleep) {
    + gpm_networkmanager_sleep ();
    + }
    +
    /* We save the current charge in mWh so we can see how much power we
    lost or gained over the suspend cycle */
    @@ -1348,7 +1365,12 @@
    if (do_lock) {
    gpm_screensaver_poke (manager->priv->screensaver);
    - gpm_networkmanager_wake ();
    + nm_sleep = gconf_client_get_bool (manager->priv->gconf_client,
    + GPM_PREF_NETWORKMANAGER_SLEEP, NULL);
    + if (nm_sleep) {
    + gpm_networkmanager_wake ();
    + }
    +
    sync_dpms_policy (manager);
    diff -Naur gnome-power-manager-2.16.1/src/gpm-prefs.h gnome-power-manager-2.16.1-new/src/gpm-prefs.h
    --- gnome-power-manager-2.16.1/src/gpm-prefs.h 2006-07-30 14:51:54.000000000 +0200
    +++ gnome-power-manager-2.16.1-new/src/gpm-prefs.h 2006-10-05 12:05:15.000000000 +0200
    @@ -55,6 +55,9 @@
    #define GPM_PREF_CAN_HIBERNATE GPM_PREF_DIR "/can_hibernate"
    #define GPM_PREF_LOCK_USE_SCREENSAVER GPM_PREF_DIR "/lock_use_screensaver_settings"
    +
    +#define GPM_PREF_NETWORKMANAGER_SLEEP GPM_PREF_DIR "/networkmanager_sleep"
    +
    /* These are only effective if the system default is turned off. See bug #331164 */
    #define GPM_PREF_LOCK_ON_BLANK_SCREEN GPM_PREF_DIR "/lock_on_blank_screen"
    #define GPM_PREF_LOCK_ON_SUSPEND GPM_PREF_DIR "/lock_on_suspend"
    It would be great if this could be added to the official package, but I'm not expecting it

    Have a look in gconf-editor to see if there's a setting for that? (I can't check now, I'm using XFCE.) Also, check that you didn't keep the default "put computer to sleep when the lid is closed", but I suppose you've done it already...

  • Hal gnome-power-manager hibernate scripts

    Hi All,
    I'm having issues hibernating to disk using gnome-power-manager. My user is in the "power" group and I can suspend from a terminal using "sudo hibernate". However, when I attempt to hibernate with gnome-power-manager, i recive an error "Hal failed to hibernate - please see FAQ". When I run g-p-m with no-daemon, it gives an "unspecified error: failed to hibernate". I have the necessary hibernate scripts in /usr/share/hal/scripts (is this the default dir?) and the hal-system-power-hibernate looks as follows:
    #!/bin/bash
    POWERSAVED_SUSPEND2DISK="dbus-send --system --dest=com.novell.powersave \
    --print-reply /com/novell/powersave \
    com.novell.powersave.action.SuspendToDisk"
    unsupported() {
    echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported >&2
    echo No hibernate script found >&2
    exit 1
    if [ -x "/usr/sbin/hibernate" ] ; then
    echo "wtf"
    hibernate
    RET=$?
    else
    unsupported
    fi
    #Refresh devices as a resume can do funny things
    for type in button battery ac_adapter
    do
    devices=`hal-find-by-capability --capability $type`
    for device in $devices
    do
    dbus-send --system --print-reply --dest=org.freedesktop.Hal \
    $device org.freedesktop.Hal.Device.Rescan
    done
    done
    exit $RET
    Please let me know what I'm missing or what necessary config files need to be tweaked.

    Does suspend to RAM work with gnome-power-manager? On my system I installed powersave from unstable, which is the daemon used by SuSE to do suspend to RAM and suspend to disk.

  • [SOLVED] gnome-power-manager issues since update?

    Since maybe an update (I'm not sure), gnome-power-manager isn't launched anymore. No battery applet, suspend and hibernation buttons.
    acpid, pm-utils are on.
    By launching it in terminal, it gives:
    ~$ gnome-power-manager
    (gnome-power-manager:3238): libupower-glib-WARNING **: Couldn't enumerate devices: Launch helper exited with unknown return code 127
    TI:17:42:09 TH:0x10cf090 FI:gpm-engine.c FN:gpm_engine_coldplug_idle_cb,834
    - failed to get device list: Launch helper exited with unknown return code 127
    Traceback:
    gnome-power-manager() [0x419a64]
    gnome-power-manager() [0x41904e]
    /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f3) [0x7f72b683abf3]
    /usr/lib/libglib-2.0.so.0(+0x423d0) [0x7f72b683b3d0]
    /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x182) [0x7f72b683ba42]
    gnome-power-manager() [0x40f11b]
    /lib/libc.so.6(__libc_start_main+0xfd) [0x7f72b6239c3d]
    gnome-power-manager() [0x407a49]
    So would libupower-glib bug?
    Last edited by feNNec (2011-01-16 19:03:59)

    yes there is:
    $ ./upowerd start
    ./upowerd: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory
    libusb-1.0.8-1 is installed
    What's this daemon for?

  • Gnome power manager upgrade - nvidia sedmentation error

    I am trying to use the rolling update model properly and check the web page for issues before doing my pacman Syu.
    I updated gnome-power-manager (along with the other available updates) today amd immediately noticed different behaviour. 
    The laptop (Dell Inspiron 1720) no longer suspended when I shut the lid.  I still had the shutdown menu option but... when I used it it intermittently caused segmentation fault errors in nvidia settings and stuff like Google Earth no longer worked.  My graphics card is geForce 8600M GT. 
    Downgrading the gnome-power-manager package restored everything to working order.
    Maybe I did something daft, but I'd like to know if there is something else I should have checked or if there is a problem with this package.  In the meantime I've added it to IgnorePkg

    i just pointing out that you can try to fix it yourself(until is fixed in our repo) by compiling gnome-power-manager using abs and add that option to the ./configure within PKGBUILD.
    Last edited by wonder (2009-04-14 20:26:39)

  • Gnome-power-manager woes

    Hi all.  I've been having a few problems with gnome-power-manager on my Dell Vostro since upgrading to Gnome 2.26.  I was just wondering if anyone else has been experiencing the same issues:
    - When unplugging my laptop, I no longer get any notifications.  Gconf is correctly configured.
    - When plugging my laptop into the mains, I (usually) get a notification which says words to the effect of: you have unplugged your laptop and it is now discharging.  The icon is is correct.
    - Closing the lid won't suspend the laptop, unless the laptop has been suspended at least once since coming up using the suspend options from the g-p-m menu or the system->shutdown menu.
    I've tried a new gconf setup (removing ~/.gconf* and ~/.gnome*).
    Any ideas?

    Here is my semi solution:
    lid_open.sh
    #!/bin/sh
    if cat < /proc/acpi/button/lid/LID0/state | grep -q closed
    then
    sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool false
    #lid has been opened
    else
    sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool true
    #lid has been closed
    fi
    lid_closed.sh
    #!/bin/sh
    sleep 3
    if cat < /proc/acpi/button/lid/LID0/state | grep -q open
    then
    sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool false
    #lid has been opened
    else
    sudo hal-set-property --udi /org/freedesktop/Hal/devices/computer_logicaldev_input_3 --key button.state.value --bool true
    #lid has been closed
    fi
    Does the job... but still
    I would be very thankful if anyone would be able to post a better solution, or, at least, how to make this work automaticaly.
    Last edited by Void_Walker (2009-06-29 23:27:36)

  • Gnome-power-manager update causes backlight to power off frequently

    After the upgrade to gnome-power-manager 2.26.1-1 today, my laptop screen backlight is being powered off constantly, after only about 1 minute. It's not the screen blanking, but the backlight going off. It comes right back up if I do anything on the keyboard.
    My power management preferences haven't changed though. They're all set (as before the upgrade) to never dim the display and never put the display to sleep. So why is the backlight going off anyway?
    Also, this pretty distinctly seems to have to do with Gnome and not X. If I leave the laptop for an extended period at the GDM login screen, the backlight is never powered off. The problem only develops after I have logged into Gnome.
    Thanks for any help.
    Last edited by cb474 (2009-04-23 07:14:55)

    Thanks, I looked for bugs on this, but didn't find that one on the backlight for some reason. I was about to issue my own bug report. Anyway, so I added my comments to the bug report, but it has been marked "fixed" already (because it was really addressing a slightly different issue with DPMS), so I don't know if I need to start a new bug report or not. I'll wait and see what kind of reply I get. (In fact, it seems like the fix to the problem in the backlight bug report may have caused the problem addressed in this thread.)
    That said, I found a work around, if you want to completely disable the backlight ever going off. You can issue the command:
    xset -dpms
    This disables entirely the display power management system (which I'm guessing gnome-power-manager operates as a frontend for). Of course, if you want your screen to be put to sleep after some set point of time this won't work. But you may be able to configure this directly with other xset commands or in xorg.conf (see links below).
    To disable dpms at startup. I found oddly that it didn't work to add it to my .xinitrc. So instead I went to System > Preferences > Startup Applications. Added an a program in the "Startup Programs" tab, named it "DPMS (disable)" and for the command put:
    xset -dpms
    This is working.
    You can also configue DPMS in xorg.conf, but I'm not using xorg.conf so I didn't fiddle with it. See: http://wiki.archlinux.org/index.php/DPMS and http://www.shallowsky.com/linux/x-screen-blanking.html.
    Hope that helps.
    Last edited by cb474 (2009-04-24 08:26:23)

  • Gnome Power Manager Applet

    Hi all,
    since the last update, the gnome power manager applet is gone. I can change the preferences with the gnome-power-preferences tool, but the applet in the system bar is gone... Any idea?
    Acker

    Master One wrote:
    So what's going on?
    I do not assume, that users of other distros have such problems, at least in Foresight Linux the applet is working as supposed to, which confirms that it's not an upstream problem. There is a bug open, but no info about any progress.
    Is anybody working on a fix?
    Jan de Groot has been assigned to this task a few days ago. Jan works on 580 open tasks, most of which have a higher priority then this bug.
    As seen from the screenshot threads, quite some Arch users are on Gnome, so that's surely not something just a minority is in need of.
    What's with the Gnome 2.18.1 updates (though the working version of the Gnome Power Manager in Foresight Linux is 2.18.2 as well)?
    Oh my, an icon is not shown, man the life boats. The gnome-power-manager works perfectly -- at least for me -- it just doesn't show an icon in the notification area. If you absolutely need the icon, deploy Iloeki's script. It should do the job.

  • Changing brightness in gnome-power-manager has no effect

    Well it's mostly all in the title. When I change the brightness slider in gnome-power-manager it has no affect on brightness. However the fn key combo for changing the brightness does have change the brightness yet it brings up the volume like dialog for brightness yet no change is registered on the slider (despite brightness increasing). This erratic behavior is not seen in Fedora or Ubuntu so I know it can be made to work. I have a Dell Inspiron 640m.

    thunderogg wrote:Maybe a stupid question: Are you a member of the power group? I had a similar problem when I forgot to add my user to the power group.
    I am now. But it hasn't fixed anything. I restarted X after adding my user to the group.
    However when I started gnome-power-manager as root.  It wouldn't let me access the preference dialog BUT when I increased or decreased the brightness it showed me the proper progressbar indicator. I will restart and see what happens.
    edit:
    After a restart all is working well as far as I can tell. Thank you very much for all your help. It seems it was in fact an issue with the groups.
    Last edited by ihavenoname (2008-09-09 05:26:13)

Maybe you are looking for

  • Need help in understanding native VLAN or PVID concent

    Hi: I am fairly new to VLANs. I can't seem to understand how native VLAN or PVID concept works. I found descriptions for native VLAN. But what I donot understand is the following scenario: Letz say a port is a member of VLANs 1 and 2. The PVID for th

  • Macbook Pro can only start up in safe mode

    Hi, My Macbook Pro has recently been freezing on a blue screen when I try and start up. I seem to only be able to start up in safe mode. I have followed some instructions found regarding the blue screen issue: deleting some files out of library/start

  • I lost my ipod touch on the bus 4th generation and i cant locate it i have no apps to do that help!

    i lost my ipod on the bus im only 13 and my freinds called it and someone answered it and said this is my ipod now and i cried plz help

  • WLC 4402

    Hi All, I have a problem with a WLC 4400.  I cannot get one wireless client to talk to another wireless client that is on the same SSID.  Can anyone help on what I am missing? Thanks! Chris

  • Survey Repository???

    Dear all, In Survey Suite->Survey Repository->Parameter XML’s----->bsp How to create a new file(Parameter) Can any body tell me the content of parameter and how to set it? Thanks jayesh