You are not logged in.

#301 2012-10-21 08:10:10

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 807

Re: 3x+ battery life

You have to change that value through kernel line in grub. Users can no more change it, neither admin can.
Read here: http://git.kernel.org/?p=linux/kernel/g … 2c565c6b0d .

Offline

#302 2012-10-21 10:58:05

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

nierro wrote:

You have to change that value through kernel line in grub. Users can no more change it, neither admin can.
Read here: http://git.kernel.org/?p=linux/kernel/g … 2c565c6b0d .

That's important IMO. Should be taken account in powerdown development.


K.i.s.s. <3

Offline

#303 2012-10-23 11:10:59

Lockheed
Member
Registered: 2010-03-16
Posts: 1,429

Re: 3x+ battery life

I just wanted to say how extremely BAD of an idea is to update this package in AUR = upon update all the custom changes get lost!
Damn it, now I have to do all the work again. What an annoying concept...

I suggest everyone to blacklist this package in pacman.conf

Last edited by Lockheed (2012-10-23 11:13:20)


Laptop: ThinkPad W500, C2D P9500, 8GB, Radeon RV635 (HD3650), Arch | Server/fw: Zotac AQ01, A4-5000 Kabini, 4GB, Arch/pfSense VM

Offline

#304 2012-10-23 14:04:36

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

True. So true.
That's why I'm about to commit a patch that add function to load variables from .conf file(s).


K.i.s.s. <3

Offline

#305 2012-10-24 12:30:05

SuperBo
Member
Registered: 2012-02-20
Posts: 45

Re: 3x+ battery life

Do I need to disable laptop-mode-tools or cpupower to run this package?
Does anyone compare this package to laptop-mode-tools?

Last edited by SuperBo (2012-10-24 12:33:04)

Offline

#306 2012-10-24 12:59:28

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 807

Re: 3x+ battery life

Both yes.
Read here: https://bbs.archlinux.org/viewtopic.php … 6#p1108536 .
EDIT: Point 6 is now fixed (with the udev rule.) and it's even better.

Last edited by nierro (2012-10-24 13:01:09)

Offline

#307 2012-10-24 16:35:33

SuperBo
Member
Registered: 2012-02-20
Posts: 45

Re: 3x+ battery life

Thanks!
One more question.
If I use kernel 3.6, do I need to add "i915.i915_enable_rc6=1" to boot parameters.
And, What is rc6 mode?

Offline

#308 2012-10-25 09:56:38

renodesper
Member
From: Bandung
Registered: 2010-12-26
Posts: 30
Website

Re: 3x+ battery life

Mine showing this error log when executing powerdown, anyone know why?

[powerdown] cannot write powersave to /sys/module/pcie_aspm/parameters/policy
[powerdown] cannot run iw dev wlan0 set power_save on

Keep It Simple Stupid!

Offline

#309 2012-10-25 10:02:14

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 807

Re: 3x+ battery life

1: you should set "pcie_aspm=force" in your kernel grub line.
2 : May be your wireless card does not support powersave. Try "iwconfig wlan0" from root in terminal and post here the output. (sorry for not using code tag but i'm from my smartphone smile  )

Offline

#310 2012-10-25 17:27:18

djipey
Member
Registered: 2011-07-30
Posts: 78

Re: 3x+ battery life

Hello.

Ok, i've uninstalled and disabled laptop-mode-tools, upower, and I put "pcie_aspm=force" and "i915.i915_enable_rc6=1" on my boot line. But it does not seems to have any effect on my battery, I'm still stuck at ~ 1h30 when I run powerdown. But I'm not sure about the way to use the command. Do I only have to launch it in a terminal ? No special configuration ?

Offline

#311 2012-10-25 17:34:50

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 807

Re: 3x+ battery life

It should be ran automatically during startup, thanks to a udev rule...so no user input is mandatory smile

Offline

#312 2012-10-25 17:56:32

djipey
Member
Registered: 2011-07-30
Posts: 78

Re: 3x+ battery life

Ok, now I see, it decreases the light on battery. So, no more optimizations are possible ? No packages to install, just powerdown and go ?

By the way, I have an error when I run it in a shell:

[powerdown] cannot write 1 to /sys/module/i915/parameters/i915_enable_rc6

Offline

#313 2012-10-25 18:08:46

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 807

Re: 3x+ battery life

For the error: add ""i915.i915_enable_rc6=1" to the kernel grub line.
In powerdown there are lots of optimization regarding battery drain...you can't do much more, i guess...

Offline

#314 2012-10-25 18:11:33

djipey
Member
Registered: 2011-07-30
Posts: 78

Re: 3x+ battery life

Ok. Is there any documentation about this project ? I didn't find anything on the repo. Like, what does it do ? Does it also spin down the disks, like lmt + hdparm ?

Offline

#315 2012-10-25 18:13:16

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

Re: 3x+ battery life

djipey wrote:

Ok. Is there any documentation about this project ? I didn't find anything on the repo. Like, what does it do ? Does it also spin down the disks, like lmt + hdparm ?

Yes, it spins down your harddrive. There's no documentation, but you can find all the information you need when Googling. It's what I did


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#316 2012-10-25 18:54:28

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 807

Re: 3x+ battery life

It does what lmt does, virtually.
You should have a look at the powerdown script to really understand what it does, but as I said, it is the same as laptop-mode-tools, may be with some more tweaks too.

Offline

#317 2012-10-26 07:28:04

djipey
Member
Registered: 2011-07-30
Posts: 78

Re: 3x+ battery life

Ok, I read it. A bunch of stuff, indeed. I haven't seen the directory where the logs are stored, it wouldbe usefull to know where they go, to check if every command is well executed.

Offline

#318 2012-10-26 07:37:00

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Re: 3x+ battery life

There is a wiki-page that holds all necessary info.

Offline

#319 2012-10-26 07:58:26

djipey
Member
Registered: 2011-07-30
Posts: 78

Re: 3x+ battery life

Where ?? I googled it before asking my questions, I did not find anything.

Offline

#320 2012-10-26 08:19:33

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Re: 3x+ battery life

The first resource you should check at all times, the Archlinux wiki. Specifically for powerdown: https://wiki.archlinux.org/index.php/Powerdown

Offline

#321 2012-10-26 09:09:19

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

Re: 3x+ battery life

That page does now describe all the functions it uses, and for that you need to use Google.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#322 2012-10-26 09:18:28

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Re: 3x+ battery life

Unia wrote:

That page does now describe all the functions it uses, and for that you need to use Google.

Correct, but the question was if there was any documentation available for this project.

Offline

#323 2012-10-26 09:31:25

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

Re: 3x+ battery life

^ Ah, I misunderstood the question then smile I went with "what does it do?" and for that one needs the Google. Apologies wink


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#324 2012-10-27 00:50:25

SuperBo
Member
Registered: 2012-02-20
Posts: 45

Re: 3x+ battery life

After taking a look at powerup and powerdown script. I think it's better to set default governnor when power-on to ondemand.
On wiki page, it's recommend to use ondemand or conservative (on laptop).
I also write a script to config powerdown, it help you customize setting.
At the present it's supporting change governor and brightness only. I'll update other feature later.

Use:

powerconfig init

to run wizard
or you cant set normally

powerconfig set up_govern ondemand

Download
https://docs.google.com/open?id=0BxF4gA … zdxNDZVZjQ

Last edited by SuperBo (2012-10-27 00:51:29)

Offline

#325 2012-10-28 16:42:44

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: 3x+ battery life

Hey, I've updated the wiki a bit, althogh I'm not sure I like the way you have to be careful about updates. But thanks for this tool anyway!

Offline

Board footer

Powered by FluxBB