You are not logged in.

#26 2010-03-30 09:31:36

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [Poll] Power Management Solution?

I used xscreensaver for years, but now I've reformed:
- pm-utils
- xset
- slock


To know or not to know ...
... the questions remain forever.

Offline

#27 2010-03-30 22:21:50

thiago907
Member
From: Brazil, Fortaleza
Registered: 2007-09-25
Posts: 28

Re: [Poll] Power Management Solution?

cpufrequtils and some tips from the wiki (laptop area)

Offline

#28 2010-03-30 23:12:08

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [Poll] Power Management Solution?

I guess I'm the only one who uses laptop-mode-tools and gnome-power-manager at the same time big_smile


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#29 2010-03-31 03:23:49

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [Poll] Power Management Solution?

tzervo wrote:

I am using pm-utils and cpufrequtils, together with a custom script to put my pc to sleep when battery is low...

...still I can't find a solution to substitute my scripts (which are megacrap - I just want a good tool to monitor my battery)

You could try sleepd-git, which I put into AUR.

Offline

#30 2010-06-26 21:16:09

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Poll] Power Management Solution?

I just set up a new power management solution:

laptop-mode-tools
acpid
cpufrequtils
pm-utils

I've got a couple of question, though:
1. After setting up cpufrequtils via /etc/acpi/handler.sh (as the wiki says) I realized it was possible to use it by just loading the acpi-cpufreq module in /etc/rc.conf and then configure it through /etc/laptop-mode/conf.d/cpufreq.conf. Am I right or I am missing something?
2. The only thing I miss is to suspend my laptop after a certain amount of time when I'm on battery. Is sleepd the only solution? In that case it would be nice to have also a stable package in the AUR other than sleepd-git.

Thanks!


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#31 2010-06-27 04:32:39

uncholowapo
Member
From: US
Registered: 2009-03-29
Posts: 238

Re: [Poll] Power Management Solution?

pm-utils
cpufrequtils
phc-intel

Undervolting my laptop with phc-intel has increased my battery life by 1/4. I love it. My Core 2 Duo can go as low as 35 degrees idling.

Offline

#32 2010-06-27 07:24:33

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Poll] Power Management Solution?

uncholowapo wrote:

pm-utils
cpufrequtils
phc-intel

Undervolting my laptop with phc-intel has increased my battery life by 1/4. I love it. My Core 2 Duo can go as low as 35 degrees idling.

I don't really see the point in phc-utils. Isn't voltage automatically decreased when CPU frequency is scaled down by cpufrequtils?
Can you have different phc-utils setups depending if you're on battery or on AC?


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#33 2010-06-27 11:40:46

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: [Poll] Power Management Solution?

For my netbook:

acpid
cpufrequtils
pm-utils

and the following in rc.local

# CPU frequency threshold
echo 67 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

# SATA ALPM
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo min_power > /sys/class/scsi_host/host1/link_power_management_policy
echo min_power > /sys/class/scsi_host/host2/link_power_management_policy
echo min_power > /sys/class/scsi_host/host3/link_power_management_policy

# USB Autosuspend
for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done
for i in /sys/bus/usb/devices/*/power/level; do echo auto > $i; done

# Intel HDA power saving
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller
echo 10 > /sys/module/snd_hda_intel/parameters/power_save

# VM power saving
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo 5 > /proc/sys/vm/laptop_mode

The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#34 2010-06-27 16:06:15

uncholowapo
Member
From: US
Registered: 2009-03-29
Posts: 238

Re: [Poll] Power Management Solution?

rent0n wrote:
uncholowapo wrote:

pm-utils
cpufrequtils
phc-intel

Undervolting my laptop with phc-intel has increased my battery life by 1/4. I love it. My Core 2 Duo can go as low as 35 degrees idling.

I don't really see the point in phc-utils. Isn't voltage automatically decreased when CPU frequency is scaled down by cpufrequtils?
Can you have different phc-utils setups depending if you're on battery or on AC?

There's a difference between CPU scaling and undervolting. CPU scaling doesn't touch the voltage of a processor. It just changes the processor speed. You have to configure the voltage yourself if you want to undervolt and have a given limit as to how low you can lower it, which in my case, I can lower it to the lowest level with no speed decrease at all. It's perfectly safe if you do your testing. I even do it on Windows with CPUGenie (cost me a little extra because RMClock doesn't support the Penryn series, but the extra battery life and quieter laptop is well worth it). Did I mention that my laptop fans rarely come on anymore? big_smile

It also doesn't change CPU frequency so there is no point in having different setups whether if you're on AC or battery. Thats the job of cpufrequtils. All it does is change the voltage supplied to the processor, which in turn decreases temperature of the CPU and increases battery life because of the less your CPU needs to draw to power itself.

Offline

#35 2010-06-27 16:32:17

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Poll] Power Management Solution?

uncholowapo wrote:
rent0n wrote:
uncholowapo wrote:

pm-utils
cpufrequtils
phc-intel

Undervolting my laptop with phc-intel has increased my battery life by 1/4. I love it. My Core 2 Duo can go as low as 35 degrees idling.

I don't really see the point in phc-utils. Isn't voltage automatically decreased when CPU frequency is scaled down by cpufrequtils?
Can you have different phc-utils setups depending if you're on battery or on AC?

There's a difference between CPU scaling and undervolting. CPU scaling doesn't touch the voltage of a processor. It just changes the processor speed. You have to configure the voltage yourself if you want to undervolt and have a given limit as to how low you can lower it, which in my case, I can lower it to the lowest level with no speed decrease at all. It's perfectly safe if you do your testing. I even do it on Windows with CPUGenie (cost me a little extra because RMClock doesn't support the Penryn series, but the extra battery life and quieter laptop is well worth it). Did I mention that my laptop fans rarely come on anymore? big_smile

It also doesn't change CPU frequency so there is no point in having different setups whether if you're on AC or battery. Thats the job of cpufrequtils. All it does is change the voltage supplied to the processor, which in turn decreases temperature of the CPU and increases battery life because of the less your CPU needs to draw to power itself.

Thanks for the very clear and detailed explanation. I will certainly give phc a try!

The reason why I asked is that I am still abit confused about this paragraph on the archwiki: http://wiki.archlinux.org/index.php/PHC … lting_CPUs hmm


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#36 2010-06-27 16:46:22

uncholowapo
Member
From: US
Registered: 2009-03-29
Posts: 238

Re: [Poll] Power Management Solution?

I edited the part and now displays the right information. Your welcome smile

Offline

#37 2010-06-27 19:34:03

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [Poll] Power Management Solution?

uncholowapo wrote:

CPU scaling doesn't touch the voltage of a processor. It just changes the processor speed.

Not sure if that's what you meant, but this is mostly wrong: most CPU scaling solutions nowadays do change the voltage as the same time as the frequency. (acpi-cpufreq does, but not p4-clockmod)
However this is not "undervolting", since undervolting consists of running the processor at a lower voltage than the processor maker recommends...

My power management solutions:

echo conservative >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 55 >/sys/devices/system/cpu/cpufreq/conservative/down_threshold

echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

echo 1 > /sys/module/snd_ac97_codec/parameters/power_save
echo 1 > /dev/dsp

And a custom speedstep-centrino module so that cpufreq works, with lower voltages.

I'd like to switch my USB HDs off when not in use, but hdparm doesn't work on them and usb autosuspend seems to mess with my trackball...

Edit: forgot about .xinitrc:

xset s off dpms 0 0 300

Last edited by stqn (2010-06-28 02:17:39)

Offline

#38 2010-06-28 00:24:56

uncholowapo
Member
From: US
Registered: 2009-03-29
Posts: 238

Re: [Poll] Power Management Solution?

Oops, your right. I should have said default voltages. roll

Offline

#39 2010-07-01 17:07:29

einhard
Member
From: Poland
Registered: 2010-01-05
Posts: 89

Re: [Poll] Power Management Solution?

-Laptop-mode-tools (generally for HDD power managment)
-pm-utils (Wifi, soundcard, bluetooth, cd-polling and sleep suspend)
- PoverDevil - Am I the only one using it? In the future it will be probably the best power management utility available. It only lacks hdparm support.

Offline

#40 2010-07-01 17:30:49

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [Poll] Power Management Solution?

---Cpupowerd to undervolt my proccy
---xscreensaver for monitor power management

Offline

#41 2010-07-01 19:40:59

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: [Poll] Power Management Solution?

As I understand, new version of pm-utils have conflict with laptop-mode-tools

1.4.0 Release Announcement in http://pm-utils.freedesktop.org/wiki/
We include some basic power management hooks. The individual hooks can conflict with the ones provided by the laptop-mode-tools scripts, so you should either just remove laptop-mode-tools entirely or pick and choose between which package should handle what powersaving functionality. More hooks to handle powersave functionality we do not currently handle are welcome, provided they are general enough to apply across a wide range of use cases.

After update pm-utils, my laptop can´t suspend to ram normally... So, after think and think, I tried removing the laptop-mode-tools daemon, and now all work ok again.

Offline

#42 2010-07-02 08:46:54

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Poll] Power Management Solution?

takedown wrote:

As I understand, new version of pm-utils have conflict with laptop-mode-tools

1.4.0 Release Announcement in http://pm-utils.freedesktop.org/wiki/
We include some basic power management hooks. The individual hooks can conflict with the ones provided by the laptop-mode-tools scripts, so you should either just remove laptop-mode-tools entirely or pick and choose between which package should handle what powersaving functionality. More hooks to handle powersave functionality we do not currently handle are welcome, provided they are general enough to apply across a wide range of use cases.

After update pm-utils, my laptop can´t suspend to ram normally... So, after think and think, I tried removing the laptop-mode-tools daemon, and now all work ok again.

Uhm...too bad.
I would like to have pm-utils just to suspend/hibernate and laptop-mode-tools to control power management.
Isn't this possible anymore?


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#43 2010-07-02 14:38:32

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: [Poll] Power Management Solution?

You can create void hook that replace the original pm-utils hook, like this:
touch /etc/pm/power.d/journal-commit

In this way, you avoid the original hook, preventing this function.

The original hooks are in:
/usr/lib/pm-utils/power.d
/usr/lib/pm-utils/sleep.d

You can overwrite this hooks under:
/etc/pm/power.d
/etc/pm/sleep.d

Offline

#44 2010-07-03 09:34:33

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Poll] Power Management Solution?

takedown wrote:

You can create void hook that replace the original pm-utils hook, like this:
touch /etc/pm/power.d/journal-commit

In this way, you avoid the original hook, preventing this function.

The original hooks are in:
/usr/lib/pm-utils/power.d
/usr/lib/pm-utils/sleep.d

You can overwrite this hooks under:
/etc/pm/power.d
/etc/pm/sleep.d

I see, thanks, that's a nice workaround. big_smile


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#45 2010-07-03 09:35:32

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Poll] Power Management Solution?

takedown wrote:

You can create void hook that replace the original pm-utils hook, like this:
touch /etc/pm/power.d/journal-commit

In this way, you avoid the original hook, preventing this function.

The original hooks are in:
/usr/lib/pm-utils/power.d
/usr/lib/pm-utils/sleep.d

You can overwrite this hooks under:
/etc/pm/power.d
/etc/pm/sleep.d

I see, thanks, that's a nice workaround. big_smile
Though, I must say that I'm not having any problems with suspend / hibernate up to now.


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#46 2010-12-30 14:26:52

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: [Poll] Power Management Solution?

So I see that everyone uses cpufrequtils...

But isn't it a pain to slow down your processor when you're trying to work? Is there a lag/overhead that comes from it switching frequencies?

I'm getting decent enough battery life, but more is always better.

Offline

#47 2010-12-30 14:36:35

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: [Poll] Power Management Solution?

/etc/rc.local wrote:

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1 > /sys/module/snd_ac97_codec/parameters/power_save

and undervolted CPU (patched speedstep-centrino kernel module)
wink

Last edited by SiD (2010-12-30 15:07:32)

Offline

Board footer

Powered by FluxBB