Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
An hour less of battery life on and off intel_pstate?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Tue Jul 29, 2014 5:54 pm    Post subject: An hour less of battery life on and off intel_pstate? Reply with quote

I was on battery life with the intel_pstate enabled on the laptop and I had at least an hour of battery life or more less that I should have. Then I recompiled the kernel without the intel_pstate driver and the battery life looked about the same. Any tips or tricks to get that battery life back up to where it should be?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3723
Location: Hamburg

PostPosted: Tue Jul 29, 2014 6:08 pm    Post subject: Reply with quote

Maybe OT, but do you want to play with the pstate or just want to save power? B/C there are well established other alternatives in the kernel IMO, eg. ondemand is a stable and working governor.
And the last time I looked at pstate it was flaky and buggy and not usable here at a x86 Gentoo at a ThinkPad (with just internal i915 graphic).
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Tue Jul 29, 2014 6:17 pm    Post subject: Reply with quote

Whatever works best is what I'm going with :) Currently I have the pstate not on the kernel, need to figure out how to set the default governor.
Back to top
View user's profile Send private message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 56
Location: On the banks of the Pontchartrain

PostPosted: Tue Jul 29, 2014 6:57 pm    Post subject: Reply with quote

You can set the default governor here:

Code:
CPU Frequency scaling  --->
    Default CPUFreq governor (performance)
    <*> 'performance' governor
    x86 CPU frequency scaling drivers  --->
      [*] Intel P state control


j_d
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 198
Location: New Zealand

PostPosted: Tue Jul 29, 2014 7:35 pm    Post subject: Reply with quote

Quote:
CONFIG_X86_INTEL_PSTATE: │
│ │
│ This driver provides a P state for Intel core processors. │
│ The driver implements an internal governor and will become │
│ the scaling driver and governor for Sandy bridge processors. │
│ │
│ When this driver is enabled it will become the perferred │
│ scaling driver for Sandy bridge processors.
│ │
│ If in doubt, say N.


Do you have a Sandy bridge cpu?
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Tue Jul 29, 2014 8:03 pm    Post subject: Reply with quote

shazeal wrote:
Quote:
CONFIG_X86_INTEL_PSTATE: │
│ │
│ This driver provides a P state for Intel core processors. │
│ The driver implements an internal governor and will become │
│ the scaling driver and governor for Sandy bridge processors. │
│ │
│ When this driver is enabled it will become the perferred │
│ scaling driver for Sandy bridge processors.
│ │
│ If in doubt, say N.


Do you have a Sandy bridge cpu?

I believe so.
john_deaux wrote:
You can set the default governor here:

Code:
CPU Frequency scaling  --->
    Default CPUFreq governor (performance)
    <*> 'performance' governor
    x86 CPU frequency scaling drivers  --->
      [*] Intel P state control


j_d
Ok, is that the only location to manually set it?
Back to top
View user's profile Send private message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 56
Location: On the banks of the Pontchartrain

PostPosted: Tue Jul 29, 2014 8:50 pm    Post subject: Reply with quote

MarioMaster100 wrote:
shazeal wrote:
Quote:
CONFIG_X86_INTEL_PSTATE: │
│ │
│ This driver provides a P state for Intel core processors. │
│ The driver implements an internal governor and will become │
│ the scaling driver and governor for Sandy bridge processors. │
│ │
│ When this driver is enabled it will become the perferred │
│ scaling driver for Sandy bridge processors.
│ │
│ If in doubt, say N.


Do you have a Sandy bridge cpu?

I believe so.
john_deaux wrote:
You can set the default governor here:

Code:
CPU Frequency scaling  --->
    Default CPUFreq governor (performance)
    <*> 'performance' governor
    x86 CPU frequency scaling drivers  --->
      [*] Intel P state control


j_d
Ok, is that the only location to manually set it?


Not sure, I set mine to performance in the kernel. I think the default was "powersave" or something like that.

You can easily modify the kernel to change this.

j_d
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Wed Jul 30, 2014 8:25 pm    Post subject: Reply with quote

I think I forgot to set cpupower to powersave when I took off intel_pstate, looks about right with pstate not in the kernel and powersave governor >_< Maybe I'll check with intel_pstate again and set the cpu governor and see.

Edit: nope problem not solved


Last edited by MarioMaster100 on Wed Jul 30, 2014 11:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Wed Jul 30, 2014 10:56 pm    Post subject: Reply with quote

Alright I don't know what to believe anymore. I'm starting to think battery_time for conky is wildly inaccurate... Is there a more accurate way to measure battery time remaining preferably a conky method that I can just add a variable to my dzen2 script?
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Fri Aug 01, 2014 3:23 am    Post subject: Reply with quote

Well both conky and acpi are flipping battery life remaining a bit more than they should be...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum