Power-management: a systemd-aware pm-utils replacement (TLP NIH)

I'm not a big fan of complicated power management systems like TLP or laptop-mode-tools. IMO, they tend to override too many things at once (like TLP's rfkill state auto-save) and require careful reading and introspection to determine what exactly do you need. Or you may just say that I've got a NIH syndrome.
As a result, I've been using pm-powersave (part of pm-utils) with custom hooks to manage various kernel tunables. With systemd advent, pm-suspend / pm-hibernate turned useless, and I've felt that it would be good to split pm-powersave into a separate entity and rewrite it to make use of systemd.
Release early, release often... So here it is, on github and AUR.
It consists of:
a bunch of shell-written hooks, ran on battery events via udev rule -> systemd target -> systemd templated unit -> shell-written wrapper
a bunch of other udev rules, configuring per-device things like PCI runtime power management
Current hooks include:
HDD standby timeout and APM via hdparm
filesystem readahead via blockdev
cpufreq governor via sysfs interface (works with intel_pstate as well as acpi_cpufreq: tries conservative/ondemand, then falls back to powersave/performance)
x86 performance bias via cpupower
journal commit time on ext2/3/4 filesystems via mount -o remount,commit=%d
module remove/insert (by default, uvcvideo is removed, override this if you use webcam while on battery)
WLAN power saving via iw dev %s set power_save
PCI Express ASPM via sysfs interface (make sure to pass pcie_aspm=force to your kernel cmdline if you have a broken ACPI implementation (you probably do))
SATA ALPM via sysfs interface
sysctl tunables (by default, vm.laptop_mode and xfs tunables are touched)
Current udev rules include:
PCI and USB runtime power management via /sys/bus/{pci,usb}/devices/**/power/control
USB autosuspend via /sys/bus/usb/devices/**/power/autosuspend, the default timeout is 150 seconds
Wake-on-LAN via ethtool (for now, WOL is unconditionally disabled, you may want to override this). I'm planning to make this "disable when on battery" at some point.
The default settings are rather prototypish, so I'm ready for suggestions.
Last edited by intelfx (2014-06-07 14:17:08)

mordoc, what exactly is the problem your having?
Since I made the original post I have actually succeeded in creating the setup I described, i.e. I have removed laptop-mode-tools and have pm-utils do all suspend, hibernate and power management functions using acpid.  This required adding a very simple custom hook to pm-powersave to deal with all the power-saving functions of laptop-mode-tools that pm-powersave does not (yet) replace OOTB.

Similar Messages

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

  • ThinkVantage Power Management Driver v1.55 link broken

    I would like to update some drivers that require the updating of ThinkVantage Power Management Driver to v1.55.  Unfortunately, the link for that driver seems broken.  Here is the link. It  says:
    Our apologies
    There is a problem retrieving the document MIGR-4GXPEG
    Does anyone know the deal with this or who the correct person at Lenovo would be to report this to?
    Thanks.
    X200 tablet 7448CTO - Running XP until I get around to updating to Windows 7

    Hi,
    you can donwload Poewr Management driver 1.55 from this link:
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/6hku07ww.exe
    btw: make sure, that when you have the latest version of Power management driver, then also install the latest versions of :
    Power Manager
    System Interface driver
    Hotkey utility
    Cheers

  • Power management: laptop-mode-tools and pm-utils confusion

    There have been a few threads recently that touch on this topic, but I'm still somewhat confused as to how best to use these two tools for power management.
    As I understand it, laptop-mode-tools is a set of scripts and config files for controlling various aspects of power saving, while pm-utils started as a tool for managing suspend/hibernate.  However, newer versions of pm-utils have begun to include general power management features that conflict with those of laptop-mode-tools, and respond to the pm-powersave command.
    Ideally, I would like to control power management in the following way: Have acpid as the only running daemon (rather than acpid and laptop-mode-tools as I have now), which then calls pm-suspend, pm-hibernate and pm-powersave in the appropriate circumstances. 
    The wiki has a brief guide on how to insert pm-powersave as an acpi event; however, it seems to me that pm-utils is not able to replicate all the functions of laptop-mode-tools yet, for example in controlling the eeepc's SHE.
    In this thread: https://bbs.archlinux.org/viewtopic.php?pid=784969, einhard seems to suggest that its quite a simple process to modify some hooks from laptop-mode-tools to make them work with pm-utils.  I would be eternally grateful if somebody could post an example of how to carry out this modification.  I have very minimal knowledge of bash, which means that I can't get going on my own but I think I could modify the rest of the hooks on my own if I had an example, a template, to guide me. 
    Of course if anyone has any other suggestions regarding how best to mix these tools for power management it would be very good to hear them.  I am aware of this thread: https://bbs.archlinux.org/viewtopic.php?id=88011&p=2, in which takedown suggests writing some dummy hooks to pm-utils to prevent any conflict, but I'm not entirely clear about which hooks I should apply this to, i. e. just the hooks in power.d or those in sleep.d, too?

    mordoc, what exactly is the problem your having?
    Since I made the original post I have actually succeeded in creating the setup I described, i.e. I have removed laptop-mode-tools and have pm-utils do all suspend, hibernate and power management functions using acpid.  This required adding a very simple custom hook to pm-powersave to deal with all the power-saving functions of laptop-mode-tools that pm-powersave does not (yet) replace OOTB.

  • Power Management Systemd & ACPI

    Hi,
    I am having a lot of trouble configuring my power management. I basically want my monitor to go off  when I close my lid and disable suspend completely.
    Since the time I have switched over to systemd, this has become a nuisance.
    Following are my configuration files:
    /etc/acpi/handler.sh
    #!/bin/sh
    # Default acpi script that takes an entry for all actions
    # NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
    # modify it to not use /sys
    #minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
    #maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
    #setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
    #set $*
    case "$1" in
    button/power)
    #echo "PowerButton pressed!">/dev/tty5
    case "$2" in
    PBTN|PWRF) logger "PowerButton pressed: $2" ; poweroff ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/suspend)
    # sudo pm-suspend
    button/sleep)
    case "$2" in
    SLPB) echo -n mem >/sys/power/state ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    case "$4" in
    00000000)
    echo -n $minspeed >$setspeed
    #/etc/laptop-mode/laptop-mode start
    00000001)
    echo -n $maxspeed >$setspeed
    #/etc/laptop-mode/laptop-mode stop
    esac
    *) logger "ACPI action undefined: $2" ;;
    esac
    battery)
    case "$2" in
    BAT0)
    case "$4" in
    00000000) #echo "offline" >/dev/tty5
    00000001) #echo "online" >/dev/tty5
    esac
    CPU0)
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/lid)
    case $(cat /proc/acpi/button/lid/LID/state | awk '{print $2}') in
    closed) xset dpms force off ;;
    open) xset dpms force on ;;
    esac
    #echo "LID switched!">/dev/tty5
    #logger "ACPI group/action undefined: $1 / $2"
    esac
    /etc/systemd/logind.conf:
    [Login]
    #NAutoVTs=6
    #ReserveVT=6
    #KillUserProcesses=no
    #KillOnlyUsers=
    #KillExcludeUsers=root
    #Controllers=
    #ResetControllers=cpu
    #InhibitDelayMaxSec=5
    HandlePowerKey=ignore
    HandleSuspendKey=ignore
    HandleHibernateKey=ignore
    HandleLidSwitch=ignore
    #PowerKeyIgnoreInhibited=no
    #SuspendKeyIgnoreInhibited=no
    #HibernateKeyIgnoreInhibited=no
    #LidSwitchIgnoreInhibited=no
    The following is very puzzling as it is a dmesg output after uninstalling pm-utils and disabling systemd-logind service, and systemd-suspend service. My system still wants to go to sleep when the sleep button is pressed and the log show messages from "PM:*" , whatever that is. I initially thought this was a pm-util message, but this persists even after uninstalling pm-utils. Please shed some light on this.
    [ 59.777378] hid-generic 0003:0A5C:4502.0004: input,hidraw1: USB HID v1.11 Keyboard [Broadcom Corp] on usb-0000:00:1a.0-2.2/input0
    [ 59.843893] usb 3-2.3: new full-speed USB device number 9 using uhci_hcd
    [ 59.975457] input: Broadcom Corp as /devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2.3/3-2.3:1.0/input/input17
    [ 59.975706] hid-generic 0003:0A5C:4503.0005: input,hidraw2: USB HID v1.11 Mouse [Broadcom Corp] on usb-0000:00:1a.0-2.3/input0
    [ 243.521043] PM: Syncing filesystems ... done.
    [ 243.934712] PM: Preparing system for mem sleep
    [ 245.898047] Freezing user space processes ... (elapsed 0.01 seconds) done.
    [ 245.910239] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
    [ 245.923674] PM: Entering mem sleep
    [ 245.923700] Suspending console(s) (use no_console_suspend to debug)
    [ 245.927021] sd 2:0:0:0: [sda] Synchronizing SCSI cache
    [ 245.927282] sd 2:0:0:0: [sda] Stopping disk
    [ 245.965636] ACPI handle has no context!
    [ 246.390201] PM: suspend of devices complete after 465.500 msecs
    [ 246.391048] PM: late suspend of devices complete after 0.839 msecs
    [ 246.433291] ehci_hcd 0000:00:1d.7: wake-up capability enabled by ACPI
    [ 246.446362] uhci_hcd 0000:00:1d.2: wake-up capability enabled by ACPI
    [ 246.449432] uhci_hcd 0000:00:1d.1: wake-up capability enabled by ACPI
    [ 246.452498] uhci_hcd 0000:00:1d.0: wake-up capability enabled by ACPI
    [ 246.455804] ehci_hcd 0000:00:1a.7: wake-up capability enabled by ACPI
    [ 246.469627] uhci_hcd 0000:00:1a.1: wake-up capability enabled by ACPI
    [ 246.472608] uhci_hcd 0000:00:1a.0: wake-up capability enabled by ACPI

    This is my new handler.sh:
    #!/bin/sh
    # Default acpi script that takes an entry for all actions
    # NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
    # modify it to not use /sys
    #minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
    #maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
    #setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
    #set $*
    case "$1" in
    button/power)
    #echo "PowerButton pressed!">/dev/tty5
    case "$2" in
    PBTN|PWRF) logger "PowerButton pressed: $2" ; poweroff ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    # button/suspend)
    ## sudo pm-suspend
    # button/sleep)
    # case "$2" in
    ## SLPB) echo -n mem >/sys/power/state ;;
    # *) logger "ACPI action undefined: $2" ;;
    # esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    case "$4" in
    00000000)
    echo -n $minspeed >$setspeed
    #/etc/laptop-mode/laptop-mode start
    00000001)
    echo -n $maxspeed >$setspeed
    #/etc/laptop-mode/laptop-mode stop
    esac
    *) logger "ACPI action undefined: $2" ;;
    esac
    battery)
    case "$2" in
    BAT0)
    case "$4" in
    00000000) #echo "offline" >/dev/tty5
    00000001) #echo "online" >/dev/tty5
    esac
    CPU0)
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/lid)
    case $(cat /proc/acpi/button/lid/LID/state | awk '{print $2}') in
    closed) xset dpms force off ;;
    open) xset dpms force on ;;
    esac
    #echo "LID switched!">/dev/tty5
    logger "ACPI group/action undefined: $1 / $2"
    esac
    Even with the relevant lines commented out and a system restart, my system still wants to suspend
    Its become a mystery now. According to me I don't have anything other thatn systemd and acpid which cause automatic standby, but somehow there's some 3rd party involved.
    With regards to the lid switch, I will try to put what acpi_listen gives as the acpi call.
    And I already tried toggling the LidSwitchIgnoreInhibited option. Not working.
    PS: I just temporarily disabled and stopped the logind service to check what is causing this mysterious suspend.
    Edit:
    This is my acpid log(tail part):
    Feb 3 21:02:40 localhost acpid: client connected from 492[0:0]
    Feb 3 21:02:40 localhost acpid: 1 client rule loaded
    Feb 3 21:02:55 localhost acpid: client 492[0:0] has disconnected
    Feb 3 21:02:55 localhost acpid: client 492[0:0] has disconnected
    Feb 3 21:02:59 localhost acpid: client connected from 492[0:0]
    Feb 3 21:02:59 localhost acpid: 1 client rule loaded
    Feb 3 21:03:01 localhost acpid: client connected from 492[0:0]
    Feb 3 21:03:01 localhost acpid: 1 client rule loaded
    Feb 3 21:03:18 localhost acpid: client 492[0:0] has disconnected
    Feb 3 21:03:18 localhost acpid: client 492[0:0] has disconnected
    Feb 3 21:03:19 localhost acpid: client connected from 492[0:0]
    Feb 3 21:03:19 localhost acpid: 1 client rule loaded
    Feb 3 21:03:20 localhost acpid: client connected from 492[0:0]
    Feb 3 21:03:20 localhost acpid: 1 client rule loaded
    I dunno if this behaviour is correct. It seems like it is just connecting and disconnecting. No events like lid close, suspend are being logged.
    Last edited by theta (2013-02-03 15:35:41)

  • Wikis: pm-utils, cpufrequtils, acpid (Core Power Management Tools)

    http://wiki.archlinux.org/index.php/Pm-utils
    http://wiki.archlinux.org/index.php/Cpufrequtils
    http://wiki.archlinux.org/index.php/Acpid
    I'm working on 3 new wikis that will hopefully cover all of the core power management features commonly sought after by users.  When all three are finalized, I'll put together a general wiki explaining the three tools at a glance and how they relate to each other.
    These wikis will help you configure:
    * Suspend/hibernate
    * CPU frequency scaling (aka speedstepping)
    * Daemonized ACPI functions such as laptop lid closures and power/sleep button customizations
    To help clear up some commonly asked questions....
    * Powersave is no longer available, it has been replaced by pm-utils, a project led by the OpenSUSE community
    * pm-utils does not provide CPU frequency scaling, unlike powersave...use cpufrequtils instead
    * Triggered events (e.g. suspend-on-lid-closure) can be easily configured with the acpid daemon
    Comments are welcome, and if anyone would like to add anything, please do.
    Last edited by thayer.w (2007-08-29 18:00:11)

    I have one more set of utilities to throw into the mix.
    innkeeper wrote:Now I come to situation when I want my laptop to suspend when battery is low :-)
    extra/laptop-mode-tools
    this handles events in coordination with kernel (laptop-mode being a kernel feature since 2.6.6) and acpid (it inserts events and actions that are executed additionally to what acpi's handler.sh specifies). Therefore maybe it would be cool to have it integrated on the acpid page. Based on battery level threshold it can - sync your hdd, switch to a more powerfriendly cpu frequency, hibernate/suspend, and more.
    references: laptop-mode-tools homepage, Linux Journal Article and a forum thread.
    When I get to it, I will try to add something about it in the three wiki pages you mentioned, thayer.w -- if you agree, that is.
    HTH,
    Andreas
    PS. Innkeeper, could you try to make a list of what features there are that you expect from a powersave-replacement?
    laptop-mode and software suspend are two examples of features where the heavy lifting is provided by the kernel, and you only need something to trigger the right thing - can be a daemon (like acpid, cpufreq, powersave) or a userspace resident program that does the polling or subscribes to some kernel notification and triggers whatever it thinks appropriate (such as kpowersave, gnome-power-manager). I am not sure into what category falls the original powersave.

  • Portege M800-107: Power Management & HDD Protection Utility questions!

    Hi all,
    I own a Toshiba Portege M800-107, I have recently installed windows 7 (ultimate edition), which enhanced my laptop capabilities. The only problems I face are:
    1) The Power Management utility, where I have install the required drivers from the official page of Toshiba, the problem is that the Value Added package is installed without the power management. For now I over come the problem by using the power options offered by Windows 7.
    2) The most important problem is the HDD Protection Utility which every time I try to install the driver from the official site, it stops the installation with the reason that this "hardware is not supported by this computer"
    Apart those problems the laptop is working perfectly and faster.
    If any one could assist me with my problems I would be very appreciated.

    > 1) The Power Management utility, where I have install the required drivers from the official page of Toshiba, the problem is that the Value Added package is installed without the power management. For now I over come the problem by using the power options offered by Windows 7.
    There is no special Power Saver tool for Win 7. The Value added package provides some additional options which you can find in Win 7/Vista power management.
    Check this HowTo:
    http://forums.computers.toshiba-europe.com/forums/ann.jspa?annID=41
    > 2) The most important problem is the HDD Protection Utility which every time I try to install the driver from the official site, it stops the installation with the reason that this "hardware is not supported by this computer"
    The HDD Protection Utility using the acceleration sensor built in the computer.
    The point is that there are different M800 on the market and possibly your M800 does not support the acceleration sensor. This could be the reason why you cannot install this tool.

  • Problem installing Power Manager Utility

    Hello, X60, I intalled a new  XP SP 3 system and I wanted
    to reinstall Power Manager Utility (I had istalled PM driver previously).
    I downloaded the file fie g6u710ww.exe. But no go.
    The system asks for Microsoft .NET 3 or later.
    Well, the problem is that I istalled  Microsoft . NET 4 (which is clearly later then 3).
    Anyway, It won't install the Power Manager Utility.
    What should I do?
    Thank you

    I had the same issue with some sw earlier on my laptop with Win7/64 bit. That sw didn't want to be installed and needed the old .NET vesion. At the same time my system restricted old version .NET environment installtion process from M$ site or from sw installation package as I had up to date .NET. The result was I couldn't avoid that strange behaviour.
    x220 | i5-2520m | Intel ssd 320 series | Gobi 2000 3G GPS | WiFi
    x220 | i5-2520m | hdd 320 | Intel msata ssd 310 series | 3G GPS | WiFi
    Do it well, worse becomes itself
    Русскоязычное Сообщество   English Community   Deutsche Community   Comunidad en Español

  • Satellite A135-SP4088: Need XP drivers for power management and Hotkey utility

    Hello
    I couldn't find drivers for the toshiba A135-SP4088, we bought 3 of them for the office and it's almost impossible to use with vista, so we go to XP SP2, and manage to get almost all of the drivers from other models, but i cannot find 2 utilities that work with this machine, they are:
    Toshiba Power Management (the bulb in the task bar, remember?) :D
    Hotkey Utility (so I can change Screen brightness, and go to hibernation (Fn+F4)
    I have al the rest working, quite nicely but these two are a real problem, none of the ones I tested worked, some even crash the XP and have to go back to a previous restore point.
    also, I didn't install any ACPI drivers, are they required?, which ones show I look for? since the model doesn't exist in csd.toshiba.com site.
    Now, How one of the greatest notebooks manufacturers in the world can build such a nice computer without making drivers for the most widely used operating system?, can anyone explain me this because i sincerely don't understand it.
    thanks a lot!.
    Indkt.

    Hi
    The Satellite A135-SP4088 seems to be designed for the US market so you should use the Toshiba US driver page for the driver download!!!!
    But why you need the Toshiba power saver for XP? The XP supports an own power options and also the hibernation option. This option must be enabled in the control panel -> power options -> hibernate tab
    > didn't install any ACPI drivers, are they required
    Toshiba page does not provide any special ACPI drivers. The OS uses own Microsoft drivers and the installation of any 3rd applications is not necessary!!!!
    regards

  • Satellite 1900-102: Power Management Utility won't install in XP SP2

    Hi,
    Wondering if anyone has came across thi problem before:
    I had to uninstall the Toshiba power management utility (version 1.3 for Satellite 1900-102 running XP SP2). When I tried to re-install the setup launches and I get a message box saying "Invalid Handle" followed by the error "You cannot install this version of toshiba power management utility to your system" and the setup aborts.
    Any help is appreciated.

    Hi
    Why did you reinstall this utility?
    As far as I know on the Toshiba website are to drivers. One for Win2k and one for WinXp.
    Did you try to install the right driver?
    Check this link:
    http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp
    Here you can download the advanced power management
    Best regards

  • 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

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

  • Strange problem on ThinkPad Edge E540 with lenovo power manager utility

    hi all
    I bought a new laptop    the lenovo thinkpad edge e540 with win 7  64 pro os
    and after the first update from the lenovo update utility
    the power managmet tool icon on the taskbar  is  half down
    so  it is not normally  and i try to   uninstall and install again the power manager tool
    and after it   the problem not solovd  and still show half down on the taskbar
    i attach the picture of the problem
    i will appriciate if someone can help me with this issue
    and also  someone from lenovo company can take a  look on this problem
    thanks

    Good day.
    Please have a look at this thread:
    forums.lenovo.com/t5/T400-T500-and-newer-T-series/T430s-Error-in-how-the-Power-Manager-icon-displays...
    and try the steps that richk describes in the last message.
    Hope it works for you.
    Regards.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • Power Manager utility for Windows 8 (third-par​ty)

    Hi...
    I wrote a small utility that might be interesting for ThinkPad owners running Windows 8 who miss the "old" battery indicator and power manager. It's pretty limited by now, but I'm planning to add more features in the future.
    What's implemented by now:
    - system power status monitoring (a.k.a. battery indicator) on the desktop
    - charge control, which lets you customize battery charge thresholds
    What's planned:
    - display more useful battery information (battery manufacturer, manufacture date, charge cycles, etc.)
    - auto-switch power scheme on power event (AC line connect/disconnect, etc.)
    Well, to cut the chase, here's the link if you're interested...
    http://thinkutils.wordpress.com/collection/power-m​anager

    goretsky wrote:
    Hello,
    Are there any plans to make Power-Manager run on the Windows Taskbar as a toolbar?
    Regards,
    Aryeh Goretsky
    There are no plans to run it in the taskbar as a toolbar, sorry.
    I'm planning to make the Desktop tile draggable so that you can place it anywhere on the screen (or another monitor, for example), maybe with auto-snapping in the corners. But that's a feature with low priority.
    I will change the licensing model of Power-Manager to GPL in an upcoming release, and make its core and presentation APIs reusable as separate components.

  • Power Manager utility for Windows 8 (third-party)

    Hi... I wrote a small utility that might be interesting for ThinkPad owners running Windows 8 who miss the "old" battery indicator and power manager. It's pretty limited by now, but I'm planning to add more features in the future. What's implemented by now:- system power status monitoring (a.k.a. battery indicator) on the desktop- charge control, which lets you customize battery charge thresholds What's planned:- display more useful battery information (battery manufacturer, manufacture date, charge cycles, etc.)- auto-switch power scheme on power event (AC line connect/disconnect, etc.) Well, to cut the chase, here's the link if you're interested...http://thinkutils.wordpress.com/collection/power-manager

    goretsky wrote:
    Hello, Are there any plans to make Power-Manager run on the Windows Taskbar as a toolbar? Regards, Aryeh Goretsky There are no plans to run it in the taskbar as a toolbar, sorry.I'm planning to make the Desktop tile draggable so that you can place it anywhere on the screen (or another monitor, for example), maybe with auto-snapping in the corners. But that's a feature with low priority. I will change the licensing model of Power-Manager to GPL in an upcoming release, and make its core and presentation APIs reusable as separate components.

Maybe you are looking for