g-p-m always try to set the main policy to 'ondemand'

Bug #152808 reported by Eduardo Silva
12
Affects Status Importance Assigned to Milestone
gnome-power
Invalid
Undecided
Unassigned
Ubuntu
Expired
Low
Unassigned
Declined for Maverick by Chris Coulson

Bug Description

The main configuration of g-p-m is to keep the ondemand policy, when the system starts it uses the performance policy

/etc/init.d/ondemand will after 60 seconds of booting change the frequency scaler to 'ondemand'.

No consideration is taken to what the the user had previously selected as a scaler policy or if the AC power is connected or not. It is assumed that once logged in, all users will want 'ondemand' all of the time. This is clearly causing poor power management and performance issues.

Revision history for this message
Eduardo Silva (edsiper) wrote :

If we have our AC plugged we would like to use the max performance of our laptop, here' s a very simple patch.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, confirming, same issue here. An Ubuntu dev should take a look at the patch, thanks you Eduardo!

Changed in gnome-power-manager:
assignee: nobody → ogra
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Chris Jones (cmsj) wrote :

I like my laptop to not run at full speed (ie full temperature) when it's just sitting on the desk not being used.
ondemand brings in the performance when it is needed, so why change the default?
(also note that this is a gconf setting, so you can choose to override the default as you wish)

Revision history for this message
Eduardo Silva (edsiper) wrote : Re: [Bug 152808] Re: g-p-m always try to set the main policy to 'ondemand'

 I got your point but if we're talking about "Linux for human beings"
I don't think that gconf is a solution, old linux users know how to
fix it or give an special option, but would be good make the things a
bit easy for the other ones... not all laptops are so faster...

Ed.-

On Fri, Mar 7, 2008 at 8:54 AM, Chris Jones <email address hidden> wrote:
> I like my laptop to not run at full speed (ie full temperature) when it's just sitting on the desk not being used.
> ondemand brings in the performance when it is needed, so why change the default?
> (also note that this is a gconf setting, so you can choose to override the default as you wish)
>
>
>
> --
> g-p-m always try to set the main policy to 'ondemand'
> https://bugs.launchpad.net/bugs/152808
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Chris Jones (cmsj) wrote : Re: [Bug 152808] Re: g-p-m always try to set the main policy to 'ondemand'

Hi

Eduardo Silva wrote:
> I got your point but if we're talking about "Linux for human beings"
> I don't think that gconf is a solution, old linux users know how to

I think leaving it at "ondemand" is the solution. It will switch to full
performance when the system is busy, so users will get the performance
they expect from their hardware. Anyone who actually wants to change it
will already know what cpu scaling is and won't be scared of gconf, surely?

> fix it or give an special option, but would be good make the things a
> bit easy for the other ones... not all laptops are so faster...

my laptop is a 1.2ghz pentium m, so it's hardly the fastest thing in the
world, but I don't think there would be any benefit to not using
ondemand. It's not going to make the thing noticeably faster.
Can you demonstrate otherwise?

--
Chris Jones

Revision history for this message
Eduardo Silva (edsiper) wrote : Re: [Bug 152808] Re: g-p-m always try to set the main policy to 'ondemand'

> I think leaving it at "ondemand" is the solution. It will switch to full
> performance when the system is busy, so users will get the performance
> they expect from their hardware. Anyone who actually wants to change it
> will already know what cpu scaling is and won't be scared of gconf, surely?

I agree with that, my point is about people that don't know about cpu scaling...

> my laptop is a 1.2ghz pentium m, so it's hardly the fastest thing in the
> world, but I don't think there would be any benefit to not using
> ondemand. It's not going to make the thing noticeably faster.
> Can you demonstrate otherwise?

I open this bug because I feel that ondemand doesn't works as well as
I would like, it makes me feel my laptop a little slower... your
laptop is working properly, that's not my case... maybe will be useful
some feedback from another users. Here we have two points of view for
two different cases/machines... Maybe my problem is an isolated one,
maybe not... is there any forum where we can talk about this ?, more
opinions would be very useful.

Ed.-

>
> --
> Chris Jones
>
> --
>
>
> g-p-m always try to set the main policy to 'ondemand'
> https://bugs.launchpad.net/bugs/152808
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Eduardo Silva (edsiper) wrote :

Another comments:

if the computer is on the desk and don't being used, is the CPU being
used? , is there any big difference between ondemand and performance
on that case?

IIRC CPU scaling helps to save the battery life on the laptop cases,
but if I'm plugged to AC I would like to have my laptop working as
fast as possible. Final user needs to feel their laptop faster as they
want, this makes sense to me:

case 1: laptop plugged (AC) = use performance (we don't need to save anything)
case 2: laptop using battery as power resource = use ondemand

let's ask to the users... this is not a problem for geeks...

On Fri, Mar 7, 2008 at 10:05 AM, Eduardo Silva <email address hidden> wrote:
> > I think leaving it at "ondemand" is the solution. It will switch to full
> > performance when the system is busy, so users will get the performance
> > they expect from their hardware. Anyone who actually wants to change it
> > will already know what cpu scaling is and won't be scared of gconf, surely?
>
> I agree with that, my point is about people that don't know about cpu scaling...
>
>
> > my laptop is a 1.2ghz pentium m, so it's hardly the fastest thing in the
> > world, but I don't think there would be any benefit to not using
> > ondemand. It's not going to make the thing noticeably faster.
> > Can you demonstrate otherwise?
>
> I open this bug because I feel that ondemand doesn't works as well as
> I would like, it makes me feel my laptop a little slower... your
> laptop is working properly, that's not my case... maybe will be useful
> some feedback from another users. Here we have two points of view for
> two different cases/machines... Maybe my problem is an isolated one,
> maybe not... is there any forum where we can talk about this ?, more
> opinions would be very useful.
>
> Ed.-
>
> >
> > --
>
>
> > Chris Jones
> >
> > --
> >
> >
> > g-p-m always try to set the main policy to 'ondemand'
> > https://bugs.launchpad.net/bugs/152808
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>

Revision history for this message
Chris Jones (cmsj) wrote : Re: [Bug 152808] Re: g-p-m always try to set the main policy to 'ondemand'

Hi

Eduardo Silva wrote:
> I agree with that, my point is about people that don't know about cpu
> scaling...

If they don't know about it, they won't care about it because ondemand
will make their CPU fast when they need it.

> I open this bug because I feel that ondemand doesn't works as well as
> I would like, it makes me feel my laptop a little slower... your

Where are the numbers to prove the overhead of ondemand?

> laptop is working properly, that's not my case... maybe will be useful

That suggests there may be a bug with ondemand for your hardware perhaps.

> maybe not... is there any forum where we can talk about this ?, more
> opinions would be very useful.

I think more facts would be useful :)

--
Chris Jones

Revision history for this message
Eduardo Silva (edsiper) wrote : Re: [Bug 152808] Re: g-p-m always try to set the main policy to 'ondemand'

> If they don't know about it, they won't care about it because ondemand
> will make their CPU fast when they need it.

If they bought a 2.0GHz CPU laptop, ondemand just will going to scale
to 2.0 as were necessary, if I'm opening openoffice or something
similar, are u sure that ondemand will switch to 2.0 or 1.6 ? , why
the user need to experience a slower machine if he's connected to AC ?

Ondemand is a good solution for a lot of situations, here we're
talking about the 'Laptop connected to AC' case..

>
>
> > I open this bug because I feel that ondemand doesn't works as well as
> > I would like, it makes me feel my laptop a little slower... your
>
> Where are the numbers to prove the overhead of ondemand?

good question, but is not necessary to spent some time to get numbers
to see that our machines are a little slower with ondemand.

> I think more facts would be useful :)

It doesn't make sence to me to set a slower CPU when the laptop is
plugged, ondemand is very helpful but my point is performance.

I'm just proposing to change the AC policy from ondemand to
performance. Plug your laptop to AC and do some test using ondemand
v/s performance, which one is more faster ?, which one gives the best
user experience ?.

Eduardo.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Is there any progress here? or the bug needs to be reassigned? Thanks all.

Changed in gnome-power:
status: New → Invalid
Oliver Grawert (ogra)
Changed in gnome-power-manager (Ubuntu):
assignee: Oliver Grawert (ogra) → nobody
Revision history for this message
Ryu Kent (ryukent) wrote :

This should not be a low priority bug. It contributes to the headlines that Ubuntu has a worse battery life than windows. Netbook users who need battery life want to turn powersave on.

The problem is that /etc/init.d/ondemand will after 60 seconds of booting change the frequency scaler to ondemand. This one size fits all is terrible. It should set the frequency scaler to whatever it was set to at last shutdown. If you want performance, it should stay on performance. If you need battery life, it should stay on powersave.

At the moment, even if you change to powersave at login, after 60 seconds from boot, it will switch back to on demand. This is very annoying. The simple solution is to check the frequency scaler policy at shutdown. Save it. On boot performance should be selected until log in when the saved policy should be reinvoked.

Ryu Kent (ryukent)
tags: added: battery life
Ryu Kent (ryukent)
description: updated
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

This has nothing to do with gnome-power-manager - it doesn't do anything with the governor any more.

In addition to that, changing the governor doesn't really give you any gains anyway. Setting the governor to "powersave" just means your processor takes longer to do the work it needs to do, and doesn't spend as much time as it normally would in the lower power C-states.

affects: gnome-power-manager (Ubuntu) → ubuntu
Changed in ubuntu:
status: Triaged → New
tags: added: needs-reassignment
Robert Roth (evfool)
affects: ubuntu → gnome-power-manager (Ubuntu)
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Can somebody help me with this bug under which package it should be reassigned? Thank you!

affects: gnome-power-manager (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

Changed in ubuntu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.