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.

Similar Messages

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

  • How does power management work under Arch?

    So, my Arch install doesn't have Suspend to RAM working. While trying to fix it, I was trying to understand the application chain that deals with power events such as lid close. I have read
    https://wiki.archlinux.org/index.php/Acpid
    https://wiki.archlinux.org/index.php/Laptop_Mode_Tools
    https://wiki.archlinux.org/index.php/Po … CPI_events
    Now, I have XFCE4 with its default power manager installed. I'm quite confused as to what it is that I need along with that to get things to work.
    In short, which of the following configurations is *correct*, in the sense that it will work without manual configuration out of the box, or with minimal configuration, and has a graphical front-end controllable from XFCE?
    - xfce4-power-manager
    - systemd -> xfce4-power-manager
    - systemd -> acpid
    - systemd -> acpid -> xfce4-power-manager
    Also, if I want to use laptop-tools, then does this change?
    Lastly, how do I diagnose the suspend to RAM issue? How do I check whether suspend or resume from suspend is failing?

    ashrj wrote:So, my Arch install doesn't have Suspend to RAM working. While trying to fix it, I was trying to understand the application chain that deals with power events such as lid close. I have read
    Lastly, how do I diagnose the suspend to RAM issue? How do I check whether suspend or resume from suspend is failing?
    If you are using Xfce you don't need acpid and instead of laptop-tools try TLP which enabled successful suspend to ram on an older laptop I had, with Xfce on it.

  • Power manager

    Hello!
    Lenovo model:B575e
    Please help me.
    How to fix this message battery not installed lenovo.

    hi Matrix4478,
    It looks like you have a Thinkpad Power Management utility..
    If you're running Windows 7, can you try to:
    1. Navigate to Control Panel (large icon view) > Programs and Features and uninstall the Thinkpad Power Manager (reboot if necessary).
    2. After the reboot, install this Lenovo Power Management utility and observe:
    Lenovo Power Management Driver
    v1.67.04.05
    Article:
    IdeaPad - Power Manager reports NO BATTERY IS INSTALLED
    Let me know how it goes.
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Power Management with SM30X-102

    Hi,
    I want to use the Toshiba Power Management Utility with a non admin user account on notebook. If I try, I get the message that I have to be a admin. If I make a selection as a admin, the values are not used for the normal user account. So my notebook only works in full speed if I'm not a admin. Any idea if there is a setting under XP where I can change power management as non admin user ?
    thanx
    Peter

    Hi,
    I have discovered a workaround to this problem, but it's not a definitive solution. When you log in as a 'not administrator' user, you have to use the 'Run As' command of WinXP on the file (right button mouse click on it):
    "C:\Program Files\TOSHIBA\Power Management\CePMTray.exe"
    And then, you have to insert username and password of an administrator user. You have to do the same thing to the
    file:
    "C:\Program Files\TOSHIBA\E-KEY\CeEKey.exe"
    if you want to use the function key too, to change power profiles.
    The problem is that you have to do this each time you log in as limited user. If it was an Unix O.S. you could set a flag SUID in the files to execute them always as administrator. But this is Windows and I don't know if there is a way to do this!
    Anyway, there is another possibility. You can use SpeedSwitchXP tool (http://www.diefer.de/speedswitchxp), instead of the toshiba power management tool. This software is a power management tool that works from a limited user too, but you have to give write access at all users to the following reg keys:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Controls Folder\PowerCfg\GlobalPowerPolicy
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Controls Folder\PowerCfg\PowerPolicies
    These keys are necessary in order to modify power schemas. You can give write access to these reg keys with the standard tool 'regedit'.

  • Where has gnome-power-manager gone?

    I'm using Xmonad (without Gnome) and installed gnome-power-manager to manage the battery on my laptop. I can't find the binary:
    [me@laptop ~]$ pacman -Ss gnome-power-manager
    extra/gnome-power-manager 3.2.0-1 (gnome-extra) [installed]
    Power management tools.
    [me@laptop ~]$ gnome-<tab>
    gnome-autogen.sh gnome-power-statistics
    gnome-doc-common
    [me@laptop ~]$ which gnome-power-manager
    which: no gnome-power-manager in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl)
    Perhaps there were some wild and crazy changes due to Gnome 3? How do I find/use this thing?
    EDIT: After looking at "Package Contents" list on the package page:
    http://www.archlinux.org/packages/extra … r-manager/
    it appears gnome-power-manager is not installed, just gnome-power-statistics. How can this be? They are not the same thing AFAICT.
    Last edited by oops (2011-10-11 22:44:35)

    pacman -Ql gnome-power-manager
    will show you all the files within that package.
    pacman -Ql gnome-power-manager | grep /bin/
    should find some binaries.
    https://wiki.archlinux.org/index.php/FA … tart_it.3F
    Seems there's only /usr/bin/gnome-power-statistics.
    Last edited by karol (2011-10-11 22:45:26)

  • Power Manager and display brightness level

    Hello,
    In my settings (Power Manager v1.89) set is average level of display brightness (for Battery and AC settings) but for some reason after Switch User or after Stanby Mode the brightness becomes to maximum level, but not to my settings.
    Why?
    Best regards,
    Alex
    Lenovo ThinkPad Edge 13
    Windows XP SP3
    Solved!
    Go to Solution.

    Oh, but of course! Why wouldn't core Power Manager functionality not involving hotkeys depend upon the Hotkeys software? /s

  • Power Management with User Account

    On my T43p, I have the newest power management version installed and XP SP3. In the power management, I cannot change power profiles from within a user account. I can however change the power profile in the Windows control panel (this only after I changed the power policy registry keys). Is there a way to make power management do this?

    Hi,
    I have discovered a workaround to this problem, but it's not a definitive solution. When you log in as a 'not administrator' user, you have to use the 'Run As' command of WinXP on the file (right button mouse click on it):
    "C:\Program Files\TOSHIBA\Power Management\CePMTray.exe"
    And then, you have to insert username and password of an administrator user. You have to do the same thing to the
    file:
    "C:\Program Files\TOSHIBA\E-KEY\CeEKey.exe"
    if you want to use the function key too, to change power profiles.
    The problem is that you have to do this each time you log in as limited user. If it was an Unix O.S. you could set a flag SUID in the files to execute them always as administrator. But this is Windows and I don't know if there is a way to do this!
    Anyway, there is another possibility. You can use SpeedSwitchXP tool (http://www.diefer.de/speedswitchxp), instead of the toshiba power management tool. This software is a power management tool that works from a limited user too, but you have to give write access at all users to the following reg keys:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Controls Folder\PowerCfg\GlobalPowerPolicy
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Controls Folder\PowerCfg\PowerPolicies
    These keys are necessary in order to modify power schemas. You can give write access to these reg keys with the standard tool 'regedit'.

  • Wondering about power management with desktop computers

    I use Arch on my desktop computer, so there's no need to worry about conserving energy.
    But my computer has been much louder since installing Arch; I assume this is because it is running at max, and that is because I have no power management tools installed.
    Is running my computer at max speed all the time beneficial to the system? Or should I install something to scale the power on demand?

    solar impulse wrote:I use Arch on my desktop computer, so there's no need to worry about conserving energy...
    That is unfortunate.
    I disagree with some of the things being pushed by the greens;  A lot of what they push are thermodynamically or ecologically wrong when you look at the big picture. But, that said...
    We should take reasonable steps to conserve wherever we can.  There is no reason for a desktop to scream along at full speed running "Screen savers" that require significant GPU effort.  At the least, a desktop should be configured to reduce CPU speed, turn off the displays after a couple minutes of non-use, turn off the eye-candy screen savers and spin down disks after some reasonable amount of time.
    Look for peripherals that have low-power modes (especially printers)

  • Power Manager - Battery Maintenance: "Optimize for battery lifespan" question

    Having just had a battery failure after only 14 months and 77 cycles (seems some of the cells have failed as it now only lasts about 30 mins despite saying condition good and 3 hours to go - 30 mins later at 4% and takes only 30 mins to fully charge) I just bought a new battery and will be paying much closer attention to managing it using the Power Manager tool Battery Maintenance options.
    Have read a lot here and elsewhere about batt issues and thresholds for maximising life. Can live with the conflicting advice too, but what I really want to know is this:
    If I select the "Optimize for battery lifespan (automatically change for me)" option and check the box that says "Notify me when thresholds change" - is there any way this little app can be persuaded to tell me what the thresholds actually ARE at any time / at the outset?
    It is all very well letting it decide what thresholds for charging/discharging to implement but I would like to know what they are and nowhere can I see how to get this info. And I have not yet had a " they've changed" message and have no idea when I might.   I know I'm just the poor sap who pays for the batteries but surely I can be allowed to know what, in its wisdom, the Power Manager has deemed appropriate to implement if I give its own way?
    Anyone got any experience/clues as to how to track/monitor the automatic levels when these settings selected?
    Thanks.
    George
    PS On a T60 widescreen with Power Manager 1.33
    Message Edited by george57l on 03-17-2009 07:49 PM
    George
    T60 Widescreen: 6372-63G. XP Home SP2

    Hello George,
    it seems that the feature to manually adjust the thresholds has dissapeared in newer powermanager versions.
    The powermanager is now set to a full automatic and takes care of your battery health.
    Simply set it to automatic and relax.
    Also I recommend to leave your battery in your TP, it will not harm the battery.
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • Toshiba power management and BIOS-Satelite M30X

    Hi!
    I've just installed XP PRO with SP2. I tried to install Toshiba Power Management tool. At the end of installation blue screen appeared and system rebooted. I tried bios upgrade (windows flash)and just after flash procedure started system hanged.
    Icouldn't reboot even pressing poweroff button for several sec's. What is the problem? If possible reply also for private email [email protected]

    Hi,
    had you read the "Driver Update Information for Windows XP with Service Pack 2" which is available at http://eu.computers.toshiba-europe.com in the driver download section!
    For BIOS update I can only say, if the notebook doesn't start anymore after BIOS update, you have to contact a Toshiba Service Partner for diagnostics! When you see the red Toshiba logo at boot up you can try it again.
    At http://www.toshiba-tro.de/gcc/biosinfo/index.html you will find some further infomations about BIOS update procedures!
    Bye

  • Power Manager - big graphical footprint in taskbar + quick profile selection

    Is there any way to make the green battery and charger icons in the taskbar smaller?
    I run Win 7 Pro and have changed to the old classic desktop scheme.
    The taskbar should then be quite slim, but the height of the Lenovo Power Manager tool is made for the new Win 7 desktop theme with a slightly taller taskbar.
    To get a slim taskbar, I have to disable the Lenovo Power Manager tool all together. :-(
    Is there any way to configure the PM to use old WinXP style icons?
    Another change to the worse, compared to the Power Manager in WinXP, is that a single mouseclick on the green batterly in the taskbar no longer popup a quick selection meny with the different power schemas. Instead the entire lenovo Power manager application is started.
    Is there any way to get the quiick selection back?

    welcome to the community.
    which version of Power Manager are you running?
    the machine i've got in front of me right now, running the aero interface, is still on v6.07 and the PM "toolbar" icon doesn't change the taskbar size at all. my taskbar is set to use small icons, by default. also, on this machine, PM advanced options are set to open its power scheme selector with Fn+F3.
    i'll check another machine later today which is running PM v6.32 to see if it's different in some way.
    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 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.

  • Macbook (not pro) Core Duo power management

    Hey,
    I pretty new to Arch, but not new to linux. I fell in love with Arch the first time I booted it of the CD for installation.
    I decided to install Arch on my macbook, because I need linux for work. It works well, I don't have fan-speed problems or touchpad problems, but I do have power management issues. I have install and configured CPUFREQ, laptop-more, acpid and kpowersave and I made sure that all of those daemons are running and working. Powertop reports that with turned down backlight the wattage never drops below 17.8 which is too high. OSX uses about 11.
    Now I expect the wattage to drop to 11watts but I just don't understand what hardware is causing trouble. Even with the pure, standard installation of ARCH I still get 17-18 watts of power consumption without any programs running (except for cpufreq and backlight-control).
    It's driving me completely nuts. I recompiled kernels with all kinds of patches. Please, someone help me!
    Kenny
    P.S.: Now I heard that the new version of ubuntu uses fewer watts... what the hell is that all about??!
    Last edited by knysng (2008-05-11 01:19:41)

    CPU freq-scaling is working perfectly. I included cpufeq-info output while idling (doing absolutely nothing) and compiling a Kernel. The ondemand governor scales each CPU individually; sometimes CPU 1 is at 1.67 - 2.0 while CPU 2 is at 1.00 and visa versa every other second.
    I don't think frequency scaling is the answer to this problem I'm having. I think it's other hardware that is not properly supported by this flavor of linux at the moment. Here is a list of things I looked at:
    1. Bluetooth - subsystem removed from kernel; no modules running/installed that would interact with this piece of hardware
    2. Touchpad - Mactel patch removed the high number of interupts
    3. Wireless - uses about 1.7 - 2.2Watts; I don't want to/cannot turn this one off!
    4. Graphics - Intel 950G on board; xf86-Video-Intel driver installed. I know about the DRI issue eating up Watts. Would like to keep this on because of compiz. about 1.5 - 1.9 Watts... unsure about this one.
    5. iSight Camera - No drivers installed, not activated??!?!
    6. FireWire - Doesn't make a difference. Nothing attached to any of the ports!
    7. ......
    IDLE:
    cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which need to switch frequency at the same time: 0
    hardware limits: 1000 MHz - 2.00 GHz
    available frequency steps: 2.00 GHz, 1.83 GHz, 1.67 GHz, 1.50 GHz, 1.33 GHz, 1000 MHz
    available cpufreq governors: ondemand, powersave, performance
    current policy: frequency should be within 1000 MHz and 2.00 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 1000 MHz.
    analyzing CPU 1:
    driver: acpi-cpufreq
    CPUs which need to switch frequency at the same time: 1
    hardware limits: 1000 MHz - 2.00 GHz
    available frequency steps: 2.00 GHz, 1.83 GHz, 1.67 GHz, 1.50 GHz, 1.33 GHz, 1000 MHz
    available cpufreq governors: ondemand, powersave, performance
    current policy: frequency should be within 1000 MHz and 2.00 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 1000 MHz.
    KERNEL COMPILATION:
    cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which need to switch frequency at the same time: 0
    hardware limits: 1000 MHz - 2.00 GHz
    available frequency steps: 2.00 GHz, 1.83 GHz, 1.67 GHz, 1.50 GHz, 1.33 GHz, 1000 MHz
    available cpufreq governors: ondemand, powersave, performance
    current policy: frequency should be within 1000 MHz and 2.00 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 2.00 GHz.
    analyzing CPU 1:
    driver: acpi-cpufreq
    CPUs which need to switch frequency at the same time: 1
    hardware limits: 1000 MHz - 2.00 GHz
    available frequency steps: 2.00 GHz, 1.83 GHz, 1.67 GHz, 1.50 GHz, 1.33 GHz, 1000 MHz
    available cpufreq governors: ondemand, powersave, performance
    current policy: frequency should be within 1000 MHz and 2.00 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 1000 MHz.
    LSMOD:
    Module Size Used by
    ipv6 250052 10
    wlan_wep 6144 1
    i915 28160 2
    drm 72344 3 i915
    firewire_ohci 16512 0
    firewire_core 36928 1 firewire_ohci
    crc_itu_t 2304 1 firewire_core
    tpm_infineon 8744 0
    i2c_i801 9232 0
    tpm 12352 1 tpm_infineon
    ohci1394 28720 0
    pcspkr 2816 0
    tpm_bios 6144 1 tpm
    ieee1394 79160 1 ohci1394
    appletouch 9088 0
    i2c_core 19348 1 i2c_i801
    video 16656 0
    output 3200 1 video
    intel_agp 23740 1
    agpgart 28116 3 drm,intel_agp
    sg 27572 0
    joydev 10048 0
    evdev 9344 13
    hfsplus 73476 0
    acpi_cpufreq 7564 1
    snd_seq_oss 30208 0
    snd_hda_intel 335896 1
    snd_seq_midi_event 6656 1 snd_seq_oss
    snd_seq 48240 4 snd_seq_oss,snd_seq_midi_event
    snd_seq_device 6796 2 snd_seq_oss,snd_seq
    snd_hwdep 7428 1 snd_hda_intel
    snd_pcm_oss 38304 0
    snd_pcm 68868 2 snd_hda_intel,snd_pcm_oss
    snd_timer 19848 2 snd_seq,snd_pcm
    snd_page_alloc 8072 2 snd_hda_intel,snd_pcm
    snd_mixer_oss 14720 1 snd_pcm_oss
    snd 46244 11 snd_seq_oss,snd_hda_intel,snd_seq,snd_seq_device,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
    soundcore 6240 1 snd
    wlan_scan_sta 13440 1
    ath_rate_sample 14336 1
    ath_pci 231608 0
    wlan 224368 5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
    ath_hal 249824 3 ath_rate_sample,ath_pci
    sky2 40964 0
    rtc_cmos 9248 0
    rtc_core 15388 1 rtc_cmos
    rtc_lib 3072 1 rtc_core
    ext3 123400 1
    jbd 40724 1 ext3
    mbcache 7044 1 ext3
    usbhid 42944 0
    hid 39168 1 usbhid
    ff_memless 5128 1 usbhid
    sd_mod 23192 3
    sr_mod 15172 0
    cdrom 34080 1 sr_mod
    ehci_hcd 33932 0
    uhci_hcd 22288 0
    usbcore 129904 5 appletouch,usbhid,ehci_hcd,uhci_hcd
    ata_piix 17412 2
    ata_generic 5636 0
    pata_acpi 4992 0
    libata 141840 3 ata_piix,ata_generic,pata_acpi
    dock 7952 1 libata
    Last edited by knysng (2008-05-14 11:57:43)

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

Maybe you are looking for