[SOLVED]Openbox-power management?

Hi,
I use Arch Linux with Openbox.Can someone tell me how to setup power management?I want to use suspend and hibernate.I only install "xfce4-power-manager" package and i want to know do i need to install something else or it's enough?
Sorry for my english.
Thanks.
Last edited by grobar87 (2011-06-28 09:54:30)

https://wiki.archlinux.org/index.php/CP … cy_Scaling
https://wiki.archlinux.org/index.php/Laptop-mode-tools
https://wiki.archlinux.org/index.php/Acpid
https://wiki.archlinux.org/index.php/Pm-utils
hth...

Similar Messages

  • [SOLVED] GNOME Power Manager Icon

    Hello,
    With the recent influx of GNOME 2.22 packages, gnome-power-manager has begun to behave strangely on my system.
    In gnome-power-preferences, I have specified that the notification area icon should only be displayed when my laptop battery is charging or discharging. Since I upgraded my GNOME packages, the icon has always appeared in my notication area upon login -- even if I am running on AC power. In that situation, the tooltip for the icon reads as follows:
    Computer is running on AC power
    Laptop batteries discharging (100%)
    Battery discharge time is currently unknown
    If I unplug the power cord from my computer,  the icon (strangely) disappears. If I then proceed to plug the cord back in, the icon will appear briefly (I assume to indicate that what little power was drained from the battery is being replenished) and then disappear once more.
    This problem is occurring on a Dell Inspiron 6400 (E1505). I feel that I might need to report this issue as a bug, but I'd first like to know if anyone else has noticed this oddity since the upgrade.
    Thanks!
    Edit:
    It seems as if gnome-power-manager thinks that I have two laptop batteries (though I have only one). Clicking on the notification icon lists two batteries: one with the usual "on AC power" icon and the other with the "discharging" (standard battery) icon.
    I do not think that there are any problems with ACPI: running acpi yields the following:
    Battery 1: charged, 100%
    I'm not quite sure where gnome-power-manager procures its information about the batteries)....
    Last edited by ssjlegendx (2008-04-20 18:34:53)

    I just updated to HAL 0.5.11rc2-2, and it seems that my problem has been solved!
    I didn't see the related bug report before starting this thread.... Thanks, JGC!
    Last edited by ssjlegendx (2008-08-02 20:44:41)

  • [Solved] KDE power managment fails

    Just did a fresh arch install on my laptop and put KDE on it but power-devil won't work like it should. It doesn't see the laptop battery and doesn't detect the cpu frequency scaling ability. I'm kind off clueless about this one since power managment used to work out of the box from KDE SC 4.2 throughout 4.4.
    Last edited by randomguy (2010-09-08 18:18:50)

    regarding cpu frequency scaling: http://forum.kde.org/viewtopic.php?f=22 … 36#p162731
    you don't need acpid. i don't have it and powerdevil works fine.

  • [Solved]Xfce4 Power Manager Settings

    Hi!
    I've got a little question, but i couldn't find the answer on google. What is the command line to get to the Xfce4-power-manager settings? Thanks in advance
    Edit: Found it xfce4-power-manager-settings
    Last edited by Roline (2010-01-21 13:06:14)

    Xfce is developed at a slow pace, they rarely make releases. Version of xfce4-power-manager from [extra] is 2 years old and doesn't have proper support for systemd and new version of upower. Update to version from [testing], it's a git snapshot, but it's been very stable for me. Here is bug report: https://bugs.archlinux.org/task/39893

  • [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?

  • [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] xfce4-power-manager broken in Xfce 4.10?

    EDIT: I found out that the “Lid closed”-event is apparently now also recognised as a “Sleep button”-event by the kernel. Both events triggered a suspend command when I closed the lid, which led to some weird shit.
    Last edited by IceHand (2012-06-18 14:23:17)

    I don't think it has anything to do with ConsoleKit, since I was and still am able to shut down, automount etc., but I'll humor you: My .xinitrc looks like this:
    exec ck-launch-session startxfce4
    I don't use a login manager.

  • Power Manager for Windows Vista - MIGR 67216 - Power Manager Utility for Vista

    I have been trying to install the Power Manager Utility for Windows Vista (MIGR 67216) hoping that this will solve my Power Manager error.  The Power Manager shuts down automatically whenever I start the computer or try to access the Power Manager.  Dow anyone have a solution?

     I have had the same issue, this is the work around that cleared it on the t61p
    a) downloaded TVT SU 3.14 exe package from Lenovo web site
     - http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-66956&selectarea=SUPPORT&tempsel​...
     - the vista sp2 patch http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-72758
    b) un installed  power management
    c) un installed TVT SU and cleared directory under  http://forums.lenovo.com/lnv/board/message?message​.uid=135306
    d) installed the TVT SU package
    e) launched the TVT SU and it downloaded TVT PM and other stuff

  • Power Manager claims "Battery not installed"

    System info:  T530, Windows 7 SP1, Power Manger 6.36, Power Managment driver 1.66
    Following a suggestion in another thread (to solve a Power Manager/Windows Explorer crash), I upgraded to Power Manager 6.36/driver 1.66.  Now Power Manager claims (via taskbar icon and within the Power Manager app itself) "Battery not installed"
    Solution, please.

    I'll try the download but I have a couple of concerns.  First, I upgraded to 6.32 in order to try and resolve another problem - Power Manager crashed when I tried execute a Windows Explorer "search"; it subsequently caused Windows Explorer to crash.  I'm not eager to just trade one problem for another.  Second, I need you to pass a message back up the management chain.
    As a customer, it frustrates me immensely to have to try test-and-debug procedures which ought to be done by Lenovo QA personnel.  I would feel a bit more positive if I could be certain that Lenovo QA had configured a machine like mine and tried to reproduce the problem themselves.  It's bad enough that I'm spending hours - of "vacation", time, no less - to try and resolve Lenovo product defects, but worse, I'm not getting paid for it.  (And yes, I do happen to know what qualified senior QA engineers get paid.)

  • How do I get gnome-power-manager working with standalone Openbox?

    I'm brand new to Arch, so sorry if this is a dumb question that's already been answered. I'm installing on a Thinkpad T410, and I want a battery icon in my system tray. I've installed Openbox as a standalone window manager, and I'm using tint2 for a panel and system tray. I need something in my system tray to show my battery status.
    I've looked around, and I don't really see any alternative to gnome-power-manager (I looked at trayfreq and batterymon), so I'm attempting to use that. I've installed it, but if I try to run it from a terminal I get this:
    GLib-GIO-ERROR **: Settings schema 'org.gnome.settings-daemon.plugins.power' is not installed
    aborting...
    Aborted
    After I get that, it quits and I really don't know what's going on there. Searching for "settings schema not installed" gets me nothing useful, so does anyone have an idea as to how to solve this problem?

    n1md4 wrote:This solution worked for me too.  I run a vanilla openbox install.  Although I now have the battery icon in the panel, when selecting preferences, nothing loads.  Any ideas?
    From this thread https://bbs.archlinux.org/viewtopic.php?id=118420 the user said it solved it installing gnome-control-center.

  • [SOLVED] Lid doesn't suspend anymore with xfce power manager

    The options "When laptop lid is closed" are set to suspend (and used to work), but still, when I close my lid, nothing happens. Using the logout dialog or the suspend button my keyboard works. Is it a problem with xfce-power-manager, or ACPI not registering the lid event anymore? Any idea how to fix that?
    [edit]
    I solved that problem by removing ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml, killing the power manager and reloging in my session to flush the settings. Then I reconfigured the lid closed action to suspend (and everything else to my liking).
    Last edited by benob (2009-07-08 17:36:47)

    Sorry to bother you again, but for some reason it doesn't work anymore...
    Somehow it can't lock the GNOME session, because when I enter the above line from /etc/acpi/handler.sh manually as root in TTY1, I get this error:
    ** Message: Failed to get session bus: Befehlszeile »dbus-launch --autolaunch=c9375f4ea0008d92177b28db000009ae --binary-syntax --close-stderr« brach mit von Null verschiedenem Beenden-Status 1 ab: No protocol specified\nAutolaunch error: X11 initialization failed.\n
    If I enter this command inside GNOME, everything works just fine, it locks the screen and suspends.
    EDIT:
    Setting the XAUTHORITY environment variable properly did the trick. Therefore, I borrowed some lines from here: https://wiki.archlinux.org/index.php/Su … losing_lid
    Thread marked as SOLVED again.
    Last edited by perpetrator (2011-10-17 14:25:11)

  • [SOLVED] Power Management in KDE doesn't work

    Hello world :-)
    I just installed Arch and everything works well except for Power Management in KDE. The Power Management settings in System Settings are completely grayed out and provided with following message:
    "Power Management configuration module could not be loaded. The Power Management Service appears not to be running. This can be solved by starting or scheduling it inside Startup and Shutdown."
    However the Power Management service is already running and if I restart it I get the message:
    "KDE Power Management System could not be initialized. The backend reported the following error: No valid Power Management backend plugins are available. A new installation might solve this problem. Please check your system configuration."
    I have this problem since KDE installation, Power Management just never worked. After two days of googling I becoming a little bit desperate :-) Any idea what's wrong here?
    Last edited by HungryMonster (2012-07-21 09:43:34)

    Thanks for your answers!
    arojas wrote:is the upower daemon running?
    Not sure about that. I installed upower but I don't know how to configure it or if any configuration is needed. If I understand official documentation correctly, upower daemon should be started automatically if some application needs it.
    cfr wrote:Are you sure that you installed everything necessary for that to work? Which parts of KDE did you install, for example?
    I have full KDE installation (# pacman -S kde-meta) so problem should be in my Arch installation, no in KDE itself. I have only installed Arch, Xorg, proprietary Nvidia drivers and KDE so far, so there is only small chance I break or messed up something - it's more likely something I didn't install yet or didn't know how to configure.
    Last edited by HungryMonster (2012-07-17 07:52:40)

  • [SOLVED] XFCE 4.12 - laptop lid ignores power-manager settings

    I just fresh installed Arch w/ XFCE 4.12
    In power manager, I set the lid switch to suspend on battery, lock on ac.  The setting worked initially, but after the first suspend, or a reboot, the lid switch triggers suspend no matter what.
    I tried setting HandleLidSwitch=ignore in /etc/systemd/logind.conf, as suggested in numerous online sources, but it didn't help
    I tried rm -rf .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml, which makes it work temporarily again, until a suspend or a reboot
    Does anyone know of a fix for this?  It's not a deal-breaker but it's a pain in the ass.
    Last edited by madscience (2015-04-13 03:10:33)

    I may have solved it.
    I edited the xml file directly and set <property name="logind-handle-lid-switch" type="bool" value="false"/>
    Now the options seem to work as intended.  I also noticed that if you launch the settings applet, it changes that key back to true every time it's opened.  The change can also be made through the settings editor.
    I'll test for 24 hours and mark as solved if it works.
    EDIT:
    That didn't work permanently, I'm back to suspending on lid close on AC.  I'm using TLP with battery thresholds enabled, and I'm starting to wonder if xfce-power-manager is reading the charge state of the battery instead of the power source directly.  When my battery is below the start charging threshold and is actually charging, it seems to be working as intended.  If my laptop is on AC but the battery is not actually charging, it acts like it's on battery.  I might be wrong, it's just a theory.
    Last edited by madscience (2015-04-13 02:44:48)

  • [solved] power management without HAL and pm-utils

    hi guys! i got rid of hal and pm-utils, but i'm having some troubles now with the powersaving settings.
    i'm using hibernate-script with uswsusp tools to hibernate etc, and laptop-mode-tools with acpi for the power management, but this looks like it isnt working anymore.
    for example the screen backlight wont shut down anymore when i close the lid, despite the acpi action scripts are all ok.
    far more importantly the cpu fan doen't ever start!! earlier this morning the cpu hit 77°C (while it's normally 40°) but the fan didn't kick in!
    what can i do?
    EDIT:
    wait, maybe it's just the new kernel i've installed this morning! it's some days now that i've uninstalled hal and i think i would have noticed before!
    Last edited by v43 (2011-02-23 11:25:10)

    disabling laptop-mode-tools temporarily solved the problem. i mean the fan is now spinning free ^^
    i'll try reinstalling it or downgrading the kernel later

  • [Solved] power management during kde startup not loading

    Hi,
    after solving one problem here comes another. From on side it's onying, but on the other side I lesrn a lot about my system.
    Well this time after the last kde update, I get the following message:
    KDE Power Management System could not be initialized. The backend reported the following error:
    No valid Power Management backend plugins are available. A new installation might solve this problem.
    Please check your system configuration.
    So I went to:System Settings>>Power Management and the pane on the right is greyed out and there is a message:
    Power Management configuration module could not be loaded. The Power Management Service appears not to be running.
    This can be solved by starting or scheduling it inside "Startup and Shutdown"
    System Settings>>Startup and Shutdown>>Service Manager, shows that Power management is running.
    If I try to start upower manually I get the following message:
    /usr/lib/upower/upowerd
    (upowerd:30849): UPower-WARNING **: Failed to acquire org.freedesktop.UPower: Connection ":1.77"
    is not allowed to own the service "org.freedesktop.UPower" due to security policies in the configuration file
    (upowerd:30849): UPower-WARNING **: Could not acquire name; bailing out
    I found this post: http://forums.opensuse.org/showthread.p … KDE-4-11-1
    where it states tha this was a bug in some previous kde releases.
    Well apparently it happened again here.
    I read somewhere that it could be because the policykit rules weren't update. I tried to understand policykit conf files but for no avail. I'm twice lefthanded on that matter.
    Any takers?
    PS.: Checking with journalctl -r I found that upowerd was masked, so I did;
    #systemctl unmask upower.service
    than I enabled it;
    #systemctl enable upower.service
    and if you want to start it right away than;
    #systemctl start upower.service
    Well that's it.
    Last edited by camarao (2014-03-12 14:48:20)

    Thanks for your answers!
    arojas wrote:is the upower daemon running?
    Not sure about that. I installed upower but I don't know how to configure it or if any configuration is needed. If I understand official documentation correctly, upower daemon should be started automatically if some application needs it.
    cfr wrote:Are you sure that you installed everything necessary for that to work? Which parts of KDE did you install, for example?
    I have full KDE installation (# pacman -S kde-meta) so problem should be in my Arch installation, no in KDE itself. I have only installed Arch, Xorg, proprietary Nvidia drivers and KDE so far, so there is only small chance I break or messed up something - it's more likely something I didn't install yet or didn't know how to configure.
    Last edited by HungryMonster (2012-07-17 07:52:40)

Maybe you are looking for

  • How to process a long movie in iMovie?

    I have a 28 min movie in Imovie, that I have had no problem processing once, but can't seem to do it again.  I am turning it into an mp4 file when I process, because it doesn't want to go through straight to YouTube either.  I have already edited the

  • LinkSys wired router set up advise?

    I recently bought a LinkSys BEFSR41 wired router w/4 port switch and I've been having trouble setting it up. I bought it so I could have a connection for an XBox 360, and possibly a PC laptop soon. It's working right now, but the IP in my system pref

  • FDM 9312 Variance Analysis report and columns 1 off in xls

    Hi, I have a variance analysis report in FDM and when i run in HTML and PDF, all the columns are aligned/formatted fine. But when i run it in xls, the columns are one off. Has anyone seen this before or experienced this. Thanks, Azmat Bhatti

  • ITunes, App Store, Internet

    Hi, I have an iPod 4th generation and the other day it was working fine and I was able to download off of iTunes and the App Store, as well as retrieving my email.  However, now even though I have a solid wifi connection it won't connect to anything

  • Newly authorised users unable to view host info via console.

    I've recently added a number of users to the /var/opt/SUNWsymon/cfg/esusers file on the SunMC server and ensured that they have groups acess to esadm and esdomadm. Unfortunately, when they double click on a server icon in the SunMC console, the windo