You are not logged in.

#1 2012-01-26 14:52:23

ccom
Member
Registered: 2011-06-28
Posts: 30

power.d from pm-utils

I'm running Gnome, which needs upower, which needs pm-utils. However, power.d is quite assuming: why does it disable all power saving when on AC? (It also doesn't enable all suggestions from powertop.)

So: how can I disable power.d from ever running? Best would be to completely disable all actions that are taken on AC/battery changes. I know that I could delete the files from /usr/lib/pm-utils/power.d, but that would violate package management.

Offline

#2 2012-01-26 15:13:32

ccom
Member
Registered: 2011-06-28
Posts: 30

Re: power.d from pm-utils

I noticed that so pm-utils doesn't seem to be actively developed.

At least the sched_powersave script is outdated (/sys/devices/system/cpu/sched_*_power_savings does not exist anymore). I guess I'll file a bug.

Offline

#3 2012-01-26 15:43:34

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: power.d from pm-utils

There's two ways to disable the various hooks from running:
1) Putting a file on /etc/pm/config.d/config with for example:

# disable this hooks from running
HOOK_BLACKLIST="hal-cd-pooling laptop-mode pcie-aspm readahead wireless xfs_buffer"
HOOK_BLACKLIST="00logging 00powersave 01grub 11netcfg 48bluetooth 90clock 94cpufreq 95led 98video-quirk-db-handler 99video"

2) Or like it says on the man page putting empty files with the same name on the folders /etc/power.d and sleep.d.

All the code that runs seems to ne on /usr/lib/pm-utils.

Offline

#4 2012-01-27 10:00:07

ccom
Member
Registered: 2011-06-28
Posts: 30

Re: power.d from pm-utils

Thanks for your answer. I didn't know about this.

I tried to find the man page, but gave up after a few tries. I do realize now that I could have found them with pacman -Ql pm-utils.

Thanks again,  CC

Offline

#5 2012-01-27 10:04:14

ccom
Member
Registered: 2011-06-28
Posts: 30

Re: power.d from pm-utils

I guess pm-utils is a great idea if it were easier and better to configure (and up to date regarding powertop). IMHO, a commented config file that controls its behaviour should always be placed into /etc.

I'll get in contact with the pm-utils developers and try to actually implement some of my ideas. It could be worthwhile for people to not having to configure powersaving stuff themselves, except for a few knobs.

Last edited by ccom (2012-01-27 10:09:05)

Offline

Board footer

Powered by FluxBB